Need help with lavalair V2 tease-n-plz script
Started on the old forum in May 2010 · view the original in the archive · old links redirect here
Detah wrote: 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.
it should be in /core/functions.inc anyway but if it isnt add this
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();
}
}
}
Detah wrote: Every time i upload functions.php it disappears on me could that be my problem?? if so how do i fix it
how are you uploading it? try a different method and yes that will be your problem the script wont work without that file