View Single Post
  #91  
Old 21st January 2009, 18:26
fox_tgz fox_tgz is offline
Member
 
Join Date: Jan 2009
Default
Posts: 1
Default
Code:
Fatal error: Cannot redeclare check_banned_emails() (previously declared in /var/www/localhost/htdocs/torrents/include/user_functions.php:2) in /var/www/localhost/htdocs/torrents/include/user_functions.php on line 10
I have this error


Code:
function check_banned_emails($email) 
{
    $expl = explode("@", $email);
    $wildemail = "*@".$expl[1];
    /* Ban emails by x0r @tbdev.net */
    $res = mysql_query("SELECT id, comment FROM bannedemails WHERE email = ".sqlesc($email)." OR email = ".sqlesc($wildemail)."") or sqlerr(__FILE__, __LINE__);
    if ($arr = mysql_fetch_assoc($res))
    stderr("Sorry..","This email address is banned!<br /><br /><strong>Reason</strong>: $arr[comment]", false);
}

Last edited by fox_tgz; 21st January 2009 at 19:15.
Reply With Quote