close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Login, Restricted Area, &randomStringRegistration group

Thread began 2/26/2013 5:50 am by deanmale2001272549 | Last modified 3/02/2013 9:20 am by deanmale2001272549 | 5553 views | 15 replies |

deanmale2001272549

Login, Restricted Area, &randomStringRegistration group

Thank You!

login.php

Fatal error: Call to undefined function WA_Auth_RulePasses() in /home/content/32/9092632/html/login.php on line 126

This is Line 126: <?php if(WA_Auth_RulePasses("Validated form")){ // Begin Show Region ?>

------------------------------------------------------------------------------

preferences.php (My Name for User Area- Restricted Access) which resolved to:

userupdate.php?accesscheck=%2Fpreferences.php%3F
userupdate.php

May be missing missing closing bracket around Line 122? (On userupdate.php)

Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/content/32/9092632/html/userupdate.php on line 122

------------------------------------------------------------------------------

Can you tell me where to eliminate the '&randomStringRegistration group' parts? I only want username and password to be forwarded to new users.

Getting this from the 'Please verify your email address', (Blank.php) email:


&randomStringRegistration group Email: joe@website.com
&randomStringRegistration group Password: userpassword
&randomStringRegistration group Confirm: userpassword
&randomStringRegistration group First Name: Joe
&randomStringRegistration group Last Name: Jones
&randomStringRegistration group Address: 222 main st
&randomStringRegistration group Address 2: 222 1st ave
&randomStringRegistration group City: margaritaville
&randomStringRegistration group State: fl
&randomStringRegistration group 10 Zip: 99208
&randomStringRegistration group 11 Country: United States
&randomStringRegistration group 1 Phone:
&randomStringRegistration group 1 Fax: 5555551212
&randomStringHidden Field:
&randomStringRegistration submit: Register

Attached Files
Fix Issues 2.26.13 2.zip
Sign in to reply to this post

Jason ByrnesWebAssist

add the following code at line 1 of the login page:

php:
<?php require_once( "webassist/security_assist/helper_php.php" ); ?>




the code near the end of line 122 has some hyphens that should not be there, see the attached screen shot.

in blank.php, change line 47:

php:
<th style="font-size: 12px; width: 134px; text-align: right; padding: 3px 10px 3px 3px; font-weight: bold;">&amp;randomString<?php echo(str_replace("_"," ",$pkey)); ?>:</th>



to:

php:
<th style="font-size: 12px; width: 134px; text-align: right; padding: 3px 10px 3px 3px; font-weight: bold;"><?php echo(str_replace("_"," ",$pkey)); ?>:</th>



for details on removing some of the fields from the email message, see the "Customize the elements in your form-generated emails" tutorial on the data bridge support page:
data-bridge/

Sign in to reply to this post

deanmale2001272549

Good until Login, then errors.

Hello Jason!
All (Registration, Email, Verify) worked good until I got to login.php, after successful verification.

Then the following errors after attempted Login:


Warning: Cannot modify header information - headers already sent by (output started at /home/content/32/9092632/html/login.php:3) in /home/content/32/9092632/html/login.php on line 33

Warning: Cannot modify header information - headers already sent by (output started at /home/content/32/9092632/html/login.php:3) in /home/content/32/9092632/html/login.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at /home/content/32/9092632/html/login.php:3) in /home/content/32/9092632/html/login.php on line 53

Warning: Cannot modify header information - headers already sent by (output started at /home/content/32/9092632/html/login.php:3) in /home/content/32/9092632/html/login.php on line 58

Warning: Cannot modify header information - headers already sent by (output started at /home/content/32/9092632/html/login.php:3) in /home/content/32/9092632/html/webassist/security_assist/helper_php.php on line 56

Sign in to reply to this post

Jason ByrnesWebAssist

make sure that there are no blank lines or spaces between php tags

the error is reporting the problem around line 3. most likely when you added the code i suggested at line 1, you left a blank space at the end. see this thread for details:
showthread.php?t=19285

Sign in to reply to this post

deanmale2001272549

Thanks! All working.

Boy, I'm loving these lightning quick 6:00 a.m. in the morning replies!!!

Thanks again!

Weird about the space on header. Thanks for the tip. Learned something.

Sign in to reply to this post

deanmale2001272549

Sorry Jason,
Maybe one more thing for now. I press the 'forgot password' link on login.php to re- send login credentials. Nothing sends and this error message comes on the forgotpassword.php page:

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/content/32/9092632/html/webassist/security_assist/helper_php.php on line 106

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/content/32/9092632/html/webassist/security_assist/helper_php.php on line 122

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/content/32/9092632/html/webassist/security_assist/helper_php.php on line 125

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the forgot password page please.

Sign in to reply to this post

deanmale2001272549

forgotpassword.php attachment

(please see attached.)

Attached Files
forgotpassword.zip
Sign in to reply to this post

Jason ByrnesWebAssist

edit the security assist email password behavior, and change it from using the locahost connection to use the remotehost connection.

Sign in to reply to this post

deanmale2001272549

Would that be forgotpassword_email.php in the Security Assist Folder?

There is no localhost there.

(webassist/security_assist/) -folder hierarchy. Only thing I can come up with is an 'include' on Line 1, forgotpassword_email.php?

Example: <?php require_once( "webassist/security_assist/forgotpassword_email.php" ); ?>

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...