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

#lavalair-v2

4 replies · 454 views · started 16 years ago · 1 min read

3 participants
Detah Newbie · 2 posts #1

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.

something else Fellow · 2,296 posts #2

just comment the line blocked_ip() out eg: // blocked_ip();

woody Developer · 176 posts #3

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 Newbie · 2 posts #4

Every time i upload functions.php it disappears on me could that be my problem?? if so how do i fix it

woody Developer · 176 posts #5

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

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close