Automatic Reported Pm

Started on the old forum in June 2007 · view the original in the archive · old links redirect here

6 replies · 713 views · started 19 years ago · 1 min read

3 participants
alesh Lead · 604 posts #1

hello

does any1 knws whr i cn add more words 4 auto report PM?

4 now its just http:// but i wanna add also .com .net .org etc

but i dnt knw whr i cn add tht i tried in core like this

////////////////////////////////////////////Spam filter

function isspam($text) { $sfil[0] = "www."; $sfil[1] = "http:"; $sfil[2] = ".com"; $text = str_replace(" ", "", $text); $text = strtolower($text); for($i=0;$i<count($sfil);$i++) {

but thts nt it..... or i made mistake..

any1 knws please

eeeeerrr....

amylee Principal · 1,092 posts #2

yeah thats how you add it, but adding just basic tld's wont stop spamming as for example .c0m/.n3t/.0rg etc etc i can get around that with ease i know more about lavalair spam filter than anyone

alesh Lead · 604 posts #3

hmmm i add tht but it wont work......

i tried 2 register a new user and i send url but it didnt reported spam....

i knw it cn b pass around but still it would report sum ...

cuz no1 sends an url with http anymore lol

BUT IT WONT WORK....

WHY???

eeeeerrr....

alesh Lead · 604 posts #4

is there sumthng wrong here????????? cuz it wont report at all.....

////////////////////////////////////////////Spam filter

function isspam($text) { $sfil[0] = "www."; $sfil[1] = "http:"; $text = str_replace(" ", "", $text); $text = strtolower($text); for($i=0;$i<count($sfil);$i++) {

$nosf = substr_count($text,$sfil[$i]);
if($nosf>0)
{
  return true;
}

}

return false; }


or here... its at inbox.php

if(isspam($pmtext)) { if(($pminfo[4]=="0") && ($pminfo[1]!=1)) { mysql_query("UPDATE ibwf_private SET reported='1' WHERE id='".$pmid."'"); } } echo $pmtext; echo " ";

is evrythng okay????

eeeeerrr....

alesh Lead · 604 posts #5

okay please sum1 tell me is there anythng wrong in tht code???

eeeeerrr....

metulj Super moderator Principal · 1,726 posts #6

in core.php

////////Spam filter

function isspam($text) { $sfil[0] = "www"; $sfil[1] = "http"; $sfil[2] = ".com"; $sfil[3] = ".net"; $sfil[4] = ".org"; $sfil[5] = ".biz"; $sfil[6] = ".info"; $sfil[7] = ".tk"; $sfil[8] = ".co.uk"; $sfil[9] = ".ru";

$text = str_replace(" ", "", $text); $text = strtolower($text); for($i=0;$i<count($sfil);$i++) {

$nosf = substr_count($text,$sfil[$i]);
if($nosf>0)
{
  return true;
}

}

return false; }

this works for sure.. im not coder, but this one was tested and works fine

i dont use this anymore.. but was fun for test External image (may be gone)

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

alesh Lead · 604 posts #7

in core.php ////////Spam filter

function isspam($text) { $sfil[0] = "www"; $sfil[1] = "http"; $sfil[2] = ".com"; $sfil[3] = ".net"; $sfil[4] = ".org"; $sfil[5] = ".biz"; $sfil[6] = ".info"; $sfil[7] = ".tk"; $sfil[8] = ".co.uk"; $sfil[9] = ".ru";

$text = str_replace(" ", "", $text); $text = strtolower($text); for($i=0;$i<count($sfil);$i++) {

$nosf = substr_count($text,$sfil[$i]);
if($nosf>0)
{
  return true;
}

}

return false; } this works for sure.. im not coder, but this one was tested and works fine

i dont use this anymore.. but was fun for test External image (may be gone)

lol thanx but i found better solution..... ill take the code from wizards funmobile and ill place it in my script lol

eeeeerrr....

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