UBB.Dev
Posted By: Slawek_L Ban email (help me) - 01/24/2004 2:26 AM
I think about option in admin menu: 'ban email'

I create new position in w3t_banned > B_Email (text value) and I creted new file (edited dobanuser.php)

Code
 <br /><?<br />   require ("../main.inc.php");<br />   require ("$thispath/languages/${$config['cookieprefix']."w3t_language"}/admin/dobanuser.php");<br />   require ("$thispath/languages/${$config['cookieprefix']."w3t_language"}/admin/generic.php");<br />   $Cat		= get_input("Cat","post");<br />   $Banby	      = get_input("Banby","post");<br />   $Who		= get_input("Who","post");<br />   $Reason	      = get_input("Reason","post");<br />   $userob        = new user;<br />   $user          = $userob -> authenticate();<br />   $html          = new html;<br />   $Reason_q   = addslashes($Reason);<br />   $Who_q      = addslashes($Who);<br />   $Status = "";<br />   $query = "<br />    SELECT B_Uid,B_Hostname,B_Reason,B_Email<br />    FROM  {$config['tbprefix']}Banned<br />    WHERE $Selector = '$Uid'<br />   ";<br />   $sth = $dbh -> do_query($query);<br />   list($Usercheck,$hostcheck,$Reasonquote,$emailcheck) = $dbh -> fetch_array($sth);<br />   $dbh -> finish_sth($sth);<br />   if ( ($Usercheck) || ($emailcheck) || ($hostcheck) ){<br />      $html -> not_right("$Selector {$ubbt_lang['BENNBANNED']}: $Reasonquote",$Cat);<br />   }<br />   $query = "<br />      INSERT INTO {$config['tbprefix']}Banned<br />      (B_Uid,B_Hostname,B_Reason,B_Email)<br />      VALUES ('$Uid','$Hostname_q','$Reason_q','$Email_q')<br />   ";<br />   $dbh -> do_query($query);<br />   $query = "<br />      UPDATE {$config['tbprefix']}Users<br />      SET U_Banned = '1'<br />      WHERE U_Number='$Uid'<br />   ";<br />   $dbh -> do_query($query); <br />?><br /> 

[b]
Were I made mistake?
Posted By: omegatron Re: Ban email (help me) - 01/24/2004 11:08 PM
Okay but what are you trying to do?
Posted By: Slawek_L Re: Ban email (help me) - 01/25/2004 1:19 AM
In ban form we can ban user or host. I want to ban email adrress too.
Posted By: slayer60 Re: Ban email (help me) - 01/26/2004 7:28 PM
Doesn't "Bad Email" allow you that functionality?
Posted By: Slawek_L Re: Ban email (help me) - 01/27/2004 1:40 AM
after registartion, try change email i your profile
Bad mail not work in this situation.
© UBB.Developers