View Single Post
Old 03-14-2010, 05:15 PM  
wdsguy
Ryde or Die
 
Industry Role:
Join Date: Dec 2002
Location: California-Shanghai
Posts: 19,568
Quick Php Question

I'm hoping someone can help me with a quick php question

I have the following on my signup

if($ip=getIp()){
if(!in_array($ip,$CFG['skipipcheck'])&&sign_up_check_ip($ip))
error_quit( "You already have an account.");
}


basically it grabs the users signup ip and then checks if it already exists in the system - if it does it will not let them signup.

How would I modify it to check against an array of ips? I want it to check if the users signup ip matches a couple of blacklisted ips and if it does i don't want them to be able to signup.


Thanks
wdsguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote