Previous Thread
Next Thread
Print Thread
Rate Thread
#267877 01/23/2004 7:26 PM
Joined: Jan 2003
Posts: 338
Enthusiast
Enthusiast
Offline
Joined: Jan 2003
Posts: 338
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?

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Okay but what are you trying to do?

Joined: Jan 2003
Posts: 338
Enthusiast
Enthusiast
Offline
Joined: Jan 2003
Posts: 338
In ban form we can ban user or host. I want to ban email adrress too.

Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
Doesn't "Bad Email" allow you that functionality?

Joined: Jan 2003
Posts: 338
Enthusiast
Enthusiast
Offline
Joined: Jan 2003
Posts: 338
after registartion, try change email i your profile
Bad mail not work in this situation.

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)