Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 08.01.2007, 02:49   #11
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  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 20:14.