Need help with lavalair V2 tease-n-plz script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need help with lavalair V2 tease-n-plz script

    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.

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

    Comment


      #3
      Originally posted by Detah View Post
      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



      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


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

        Comment


          #5
          Originally posted by Detah View Post
          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

          Comment

          Working...
          X