Help

Started on the old forum in September 2008 · view the original in the archive · old links redirect here

3 replies · 382 views · started 18 years ago · 1 min read

2 participants
ionutxp Developer · 137 posts #1

this is the error that apear to the users when they sent PM :External image (may be gone) an here is the function:

///////////////////////////////////////////Is site blocked

function isblocked($str,$sender)
{
  if(ismod($sender))
  {
    return false;
  }
  $str = str_replace(" ","",$str);
  $str = strtolower($str);
    $res = mysql_query("SELECT site FROM lib3rtymrc_blockedsite");
while ($row = mysql_fetch_array($res)) 
{
   $sites[] = $row[0];
}
  for($i=0;$i<count($sites);$i++)
  {
        $nosf = substr_count($str,$sites[$i]);
    if($nosf>0)
    {
      return true;
    }
  }
  return false;
}

here give error : "$nosf = substr_count($str,$sites[$i]);"

plz help me fix the problem 😢

Hate romains that take codes from here and tell to all that they had made that External image (may be gone)

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