Previous Thread
Next Thread
Print Thread
Rate Thread
#209742 04/04/2001 10:11 PM
Joined: Mar 2001
Posts: 9
Newbie
Newbie
Offline
Joined: Mar 2001
Posts: 9
If a user enters a completely invalid email address (i.e. no @ symbol anywhere in the line), the board shows an error message (Bad Message destination in ..../adduser.php on line 274) and continues to register the username. I think there should be some checking here.


Sponsored Links
ActionMan #209743 04/13/2001 3:22 AM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
add this to adduser.php around like 49 or 50 after it check to see if there is a username and email but before it checks the db to see if the username is registered

// ------------------------------------------------------------
// checks email format
if(!ereg("^([0-9,a-z,A-Z]+)([.,_]([0-9,a-z,A-Z]+))*[@]([0-9,a-z,A-Z]+)([.,_,-]([0-9,a-z,A-Z]+))*[
.]([0-9,a-z,A-Z]){2}([0-9,a-z,A-Z])?$",$Email)){
$html -> not_right("$lang[BAD_EMAIL2]",$Cat);
}



aslo add BAD_EMAIL2 to the adduser.php for the default language of your board in tle languages directory

btw i got the email validation code from the link below i think its pretty good i think its public domain there is an explantion of it here http://devhome.net/php/tips/4.html


Anonymous #209744 04/13/2001 3:27 AM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
i cant seem to edit my above post to fix teh link it keeps giving me an error
http://devhome.net/php/tips/4.html

Edited by Mywc123 on 04/13/01 03:29 AM.


Anonymous #209745 04/13/2001 4:12 AM
Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
Great. Thanks.

Carl

----------
http://www.colour-ize.de/forum (test entry: user: 'test' pw: 'test')

Anonymous #209746 04/19/2001 7:41 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
It works great, and I love it...

I had to dump my user DB after 300+ had signed up. Of course they didn't know and I had to hand fix dozens of accounts where they just blindly entered their (non-existant) username and password into the new user boxes.

Thanks!!

-joe

Hybrid Forums
See bio for wwwthreads change list

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,823
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)