![]() |
|
|
#11 |
|
Архивный участник
Join Date: Sep 2006
Posts: 36
|
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); Code:
if (isEmailAddress($email) == FALSE)
{
echo "falat Error msg";
exit();
}
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;
}
}
^^ |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|