View Single Post
  #2 (permalink)  
Old 01-23-2008, 04:33 PM
blokey blokey is offline
WMG Resident Alien
 
Join Date: Mar 2007
Posts: 93
iTrader: (0)
blokey is on a distinguished road
Default

The multiple IP code can be rewritten more efficiently like this:
--
$banned_addrs = array(
'nnn.nnn.nnn.nnn',
'nnn.nnn.nnn.nnn',
);
if (in_array($_SERVER['REMOTE_ADDR'], $banned_addrs))
die('<p>You are banned.</p>');
--
I attempted to wrap that in a CODE or PHP block but vBulletin seems to be a bit broken.
Reply With Quote
Sponsored Links
Register and sign in to hide this ad block