Thread: L2CP Reborn.
View Single Post
Old 08.01.2007, 02:49   #55
WooCry
Архивный участник
 
Join Date: Sep 2006
Posts: 36
Default

Another problem, now i saw that all registered acc has no e-mail adress, so I changed your script:
in file register.php replace:

Code:
	$email = isEmailAddress($email);
for

Code:
	if (isEmailAddress($email) == FALSE)
	{
		echo "falat Error msg";
		exit();
	}
ps: Trying to register true or false as e-mail

and replace e-mail check function at functions.php:

Code:
function isEmailAddress($strEmail) {
        $chars = "/^([a-z0-9+_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,6}\$/i";
        if(strstr($strEmail, '@') && strstr($strEmail, '.')) {
                if (preg_match($chars, $strEmail)) {
                        return TRUE;
                } else {
                        return FALSE;
                }
        } else {
                return FALSE;
        }
}

^^
WooCry is offline