Hiya i need help with the named script mainly because all im getting is function errors im getting a Fatal Error Call to undefined function blocked_ip() anyone care to help me with this i have tried everything i can do. any help greatly appreciated.
Need help with lavalair V2 tease-n-plz script
Collapse
X
-
Originally posted by Detah View PostHiya i need help with the named script mainly because all im getting is function errors im getting a Fatal Error Call to undefined function blocked_ip() anyone care to help me with this i have tried everything i can do. any help greatly appreciated.
it should be in /core/functions.inc anyway but if it isnt add this
Code:function blocked_ip($str,$uid) { $ipaddress=mysql_query("SELECT * FROM blocked WHERE ipaddress='".$str."' AND ipaddress!='NULL'"); if(mysql_num_rows($ipaddress)>0){ while($row_ipaddress=mysql_fetch_array($ipaddress)){ $opt=0; if(isuser($uid)){$opt=1;} echo head_tag("Error!!!",$opt,getnick_uid($uid)); $title="<img src=\"./images/error.gif\" alt=\"x\"/><br/> <b>Error!!!</b>"; $main="<p align=\"center\"> <b>Your Ip-Address $row_ipaddress[ipaddress] Is Blocked</b><br/> If You Think This Should Be Lifted... Tough **** HaHa<br/> <br/> <b>Ip:</b> ".ip()."<br/> <b>Reason</b> $row_ipaddress[reason] </p>"; echo xhtml($sid,$title,0,0,0,0,0,0,0,0,0,$main); echo foot_tag(); exit(); } } }
Comment
Comment