added invalid email address handling

This commit is contained in:
following
2013-02-17 20:17:18 +01:00
parent e8655ec75b
commit b7b51eab81
12 changed files with 221 additions and 5 deletions

View File

@ -95,6 +95,17 @@ function __autoload($class_name)
if (function_exists('post_config'))
post_config();
// check for email address problems
// use direct database access instead of user class for performance reasons - need not
// to include user.class.php in any script
if (!isset($verifyemail) &&
$login->userid > 0 &&
sql_value("SELECT `email_problems` FROM `user` WHERE `user_id`='&1'", 0, $login->userid) != 0)
{
header("Location: verifyemail.php?page=" . basename($_SERVER['REQUEST_URI']));
exit;
}
// normalize important settings
function normalize_settings()
{