don,t if am posting in the right place but can some giv me a code to block site in the core instead of it auto bannin for ex: zwap.org replace with don,t spam
Don,t Know If This
Collapse
X
-
Dont actually know what you meen but i have few stuff
[coede]
////////////////////////////////////////////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;
}
[/code]
action="viewuser"
Code:$nopl = mysql_fetch_array(mysql_query("SELECT site FROM ibwf_users WHERE id='".$who."'")); $nopl[0] = strtolower($nopl[0]); $spamsite = 0; $spamsite += substr_count($nopl[0], "wapside.net"); $spamsite += substr_count($nopl[0], "wap side"); $spamsite += substr_count($nopl[0], "WAPSIDE"); $spamsite += substr_count($nopl[0], "WAP SIDE"); $spamsite += substr_count($nopl[0], "andre3"); $spamsite += substr_count($nopl[0], "skywalkerzone"); $spamsite += substr_count($nopl[0], "Skywalkerzone"); $spamsite += substr_count($nopl[0], "skywalker"); $spamsite += substr_count($nopl[0], "Skywalker"); $spamsite += substr_count($nopl[0], "fimizone"); $spamsite += substr_count($nopl[0], "Fimizone"); $spamsite += substr_count($nopl[0], "jamplace"); $spamsite += substr_count($nopl[0], "Jamplace"); $spamsite += substr_count($nopl[0], "bdsaint"); $spamsite += substr_count($nopl[0], "Bdsaint"); $spamsite += substr_count($nopl[0], "loadsofspace"); $spamsite += substr_count($nopl[0], "Loadsofspace"); $spamsite += substr_count($nopl[0], "tittat"); $spamsite += substr_count($nopl[0], "hiphopnetwork"); $spamsite += substr_count($nopl[0], "dmpwap"); $spamsite += substr_count($nopl[0], "wap2k"); $spamsite += substr_count($nopl[0], "wap 2k"); $spamsite += substr_count($nopl[0], "WAP2K"); $spamsite += substr_count($nopl[0], "WAP 2K"); $spamsite += substr_count($nopl[0], "cyberwap"); $spamsite += substr_count($nopl[0], "Cyberwap"); $spamsite += substr_count($nopl[0], "cyber wap"); $spamsite += substr_count($nopl[0], "Cyber wap"); $spamsite += substr_count($nopl[0], "chillingloungue"); $spamsite += substr_count($nopl[0], "Chillingloungue"); $spamsite += substr_count($nopl[0], "chilling loungue"); $spamsite += substr_count($nopl[0], "Chilling loungue"); $spamsite += substr_count($nopl[0], "chilling Loungue"); $spamsite += substr_count($nopl[0], "Chilling Loungue"); $spamsite += substr_count($nopl[0], "loadsofspace.net/hiphop/"); $spamsite += substr_count($nopl[0], "loadsofspace.net/hiphop/"); $spamsite += substr_count($nopl[0], "loads of space.net/hiphop/"); $spamsite += substr_count($nopl[0], "loadsofspace net/hiphop"); $spamsite += substr_count($nopl[0], "2wap"); $spamsite += substr_count($nopl[0], "bdsaint"); $spamsite += substr_count($nopl[0], "wapwarz.skycity"); $spamsite += substr_count($nopl[0], "lavalair"); $spamsite += substr_count($nopl[0], "prodigits"); if($spamsite>0) { $nopl[0] = "http://spiderwap..co.za"; } echo "[b]Site:[/b] <a href=\"$nopl[0]\">$nopl[0]</a> ";
-
as far as i can remember it was in core.php right under function getbbcode..its allready in there just cant remember which files its either core/index or inboxproc[/b]
at least in RW version
キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
-
I do it in chat by checking words against a list in text file..
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>.At
.AT
.it
.It
.IT
Mcommunity
Mcommunity.
mcommunity
mcommunty.
MCOMMUNITY
MCOMMUNITY.
wen.
Wen.
WEN.
wen9.
Wen9.
WEN9.
uzeik
uzeik.
Uzeik
Uzeik.
UZEIK
UZEIK.
unixas.
Unixas
Unixas.
UNIXAS
UNIXAS.
scotspaul.
Scotspaul
Scotspaul.
SCOTSPAUL
SCOTSPAUL.
.Co.In
.CO.IN
.co.in
co.
Co.
CO.
.tv
.Tv
.TV
.Info
Info.
.info
.INFO
INFO.
.Lt
.lt
.LT
.Be
.be
.BE
wen.ru
WEN.RU
wen9.net
wen9.
WEN9.NET
wen9.org
WEN9.ORG
wen9.com
WEN9.COM
Wen.Ru
Wen9.Net
Wen9.Org
Wen9.Com
wapamp.com
Wapamp.Com
Wapamp.
wapamp.
WAPAMP.COM
WAPAMP.
mywap.o2.co.uk
MYWAP.O2.CO.UK
Mywap.O2.Co.Uk
kmx.ru
kmx.
KMX.RU
Kmx.Ru
kmx.
Kmx.
KMX.
RAVINGWAP.NET
Ravingwap.Net
.co.uk
.Co.Uk
.CO.UK
uk.
Uk.
UK.
.net
.NET
.Net
.com
.COM
.Com
.org
.Org
.ORG
org.
Org.
ORG.
.ru
.Ru
.RU
ru.
Ru.
RU.
.ne1.net
.Ne1.Net
.NE1.NET
.r8.org
.R8.Org
.R8.ORG
.R8
.r8
.waped.de
.Waped.De
.WAPED.DE
.biz
.Biz
.BIZ
.me.uk
.Me.Uk
.ME.UK
Ahmet
ahmet
AHMET
2wap.net
2wap.Net
2WAP.NET
gumslone.
Gumslone.
GumSlone.
GUMSLONE.
Prodigits
PRODIGITS
prodigits.
Prodigits.
PRODIGITS.
2Wap
2WAP
2wap.
2Wap.
2WAP.
ravingwap
Ravingwap
RAVINGWAP
http://
Http://
HTTP://
www.
Www.
WWW.
uni.cc
Uni.Cc
UNI.CC
.uni.cc
.Uni.Cc
.UNI.CC
urban-chaos
Urban-Chaos
URBAN-CHAOS
urban-chaos.
Urban-Chaos.
URBAN-CHAOS.
Mix69.Net
mix69.net
MIX69.NET
.Mix69.Net
.mix69.net
.MIX69.NET
.wickedwap
.Wickedwap
.WickedWap
.WickedWAP
.wickedWAP
.WICKEDWAP
wickedwap
Wickedwap
WickedWap
WickedWAP
wickedWAP
WICKEDWAP
5gigs
5Gigs
5GIGS
.5gigs
.5Gigs
.5GIGS
5gigs.
5Gigs.
5GIGS.
Mobilelife
mobilelife
MOBILELIFE
Mobilelife.
mobilelife.
MOBILELIFE.
Dreamworldchat
dreamworldchat
DREAMWORLDCHAT
Dreamworldchat.
dreamworldchat.
DREAMWORLDCHAT.
vipsite
Vipsite
VIPSITE
vipsite.
Vipsite.
VIPSITE.
.DE
.De
.de
.DE
.bE
.dE
chealazanwap
Chealazanwap
CHEALAZANWAP
ChealazanWAP
chealazanwap
chealazanwap.
Chealazanwap.
CHEALAZANWAP.
ChealazanWAP.
chealazanwap.
.chealazanwap
.Chealazanwap
.CHEALAZANWAP
.ChealazanWAP
.chealazanwap
prodigits
Prodigits
PRODIGITS
prodigits.
Prodigits.
PRODIGITS.</div>
Code:$spam = file('spam.txt'); for ($n = 0; $n<count($spam); $n++) { $wappy = rtrim($spam[$n]); $text = str_replace ($wappy,"@spam@", $text); }
Comment
-
///////////////////////////////////parse bbcode
function getbbcode($text, $sid="")
{
$text=preg_replace("/\[b\](.*?)\[\/b\]/i","\\1", $text);
$text=preg_replace("/\[i\](.*?)\[\/i\]/i","\\1", $text);
$text=preg_replace("/\[u\](.*?)\[\/u\]/i","\\1", $text);
$text=preg_replace("/\[big\](.*?)\[\/big\]/i","<big>\\1</big>", $text);
$text=preg_replace("/\[small\](.*?)\[\/small\]/i","\\1", $text);
$text = preg_replace("/\[url\=(.*?)\](.*?)\[\/url\]/is","<a href=\"$1\">$2</a>",$text);
$text = preg_replace("/\[topic\=(.*?)\](.*?)\[\/topic\]/is","<a href=\"index.php?action=viewtpc&tid=$1&sid =$sid\">$2</a>",$text);
$text = preg_replace("/\[club\=(.*?)\](.*?)\[\/club\]/is","<a href=\"index.php?action=gocl&clid=$1&sid=$ sid\">$2</a>",$text);
$text = preg_replace("/\[blog\=(.*?)\](.*?)\[\/blog\]/is","<a href=\"index.php?action=viewblog&bid=$1&si d=$sid\">$2</a>",$text);
//$text = ereg_replace("http://[A-Za-z0-9./=?-_]+","<a href=\"\\\">\</a>", $text);
if(substr_count($text,"[br/]")<=3){
$text = str_replace("[br/]","
",$text);
}
$text = str_replace(".co.Uk","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".co.UK","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".CO.UK","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".cO.UK","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".cO.Uk","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".cO.uk","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".co.uk","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".bIz","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".bIz","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".BiZ","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".bIZ","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".biZ","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".BIZ","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".BIz","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".Biz","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".biz","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".com","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".cOm","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".c0m","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".CoM","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".cOM","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".coM","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".COM","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".COm","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".Com","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".com","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".uni.cc","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".uNi.cC","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".UNI.CC","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".UNI.Cc","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".UNI.cc","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".UNi.cc","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".Uni.cc","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".uni.cc","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".org","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".OrG","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".orG","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".ORG","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".ORg","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".Org","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".org","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".NeT","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".net","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".nEt","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".neT","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".NET","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".NEt","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".Net","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".net","admin warning. you will be ban for sending links.",$text);
$text = str_replace("wapx","gay-site",$text);
$text = str_replace("wapX","gay-site",$text);
$text = str_replace("Wapx","gay-site",$text);
$text = str_replace("WApx","gay-site",$text);
$text = str_replace("WAPx","gay-site",$text);
$text = str_replace("WAPX","gay-site",$text);
$text = str_replace("WapX","gay-site",$text);
$text = str_replace("wApx","gay-site",$text);
$text = str_replace("waPx","gay-site",$text);
$text = str_replace("WaPx","gay-site",$text);
$text = str_replace("wapX","gay-site",$text);
$text = str_replace("waPX","gay-site",$text);
$text = str_replace("WApX","gay-site",$text);
$text = str_replace("hiphopwap","hiphop4wap-gay",$text);
$text = str_replace("hiphopwap","mhiphop4wap-gay",$text);
$text = str_replace("Hiphopwap","hiphop4wap-gay",$text);
$text = str_replace("4Shizzle","4gay",$text);
$text = str_replace("4shizzle","4gay",$text);
$text = str_replace("hiphop4shizzle","hiphop4gay",$text);
$text = str_replace("hiphop4shizzle","hiphop4gay",$text);
$text = str_replace("Hiphop4shizzle","hiphop4gay",$text);
$text = str_replace("hiphopwap.tittat","hiphop4wap-gay",$text);
$text = str_replace("hiphopwap","mhiphop4wap-gay",$text);
$text = str_replace("Hiphopwap","hiphop4wap-gay",$text);
$text = str_replace("fimifOrum","madonez",$text);
$text = str_replace("fimiforum","madonez",$text);
$text = str_replace("Fimiforum","madonez",$text);
$text = str_replace("FimiForum","madonez",$text);
$text = str_replace("fimizone","if u spam, u will be ban",$text);
$text = str_replace("Fimizone","if u spam, u will be ban",$text);
$text = str_replace("fimizone","if u spam, u will be ban",$text);
$text = str_replace("2wap","2crapforwap",$text);
$text = str_replace("2WAP","2crapforwap",$text);
$text = str_replace("2wAp","2crapforwap",$text);
$text = str_replace("2w4p","2crapforwap",$text);
$text = str_replace("2waP","2crapforwap",$text);
$text = str_replace("2Wap","2crapforwap",$text);
$text = str_replace("hiphop4u","britneyspears",$text);
$text = str_replace("HIPHOP4U","britneyspears",$text);
$text = str_replace("HiPhOp4U","britneyspears",$text);
$text = str_replace("hIpHoP4u","britneyspears",$text);
$text = str_replace("Hiphop4U","britneyspears",$text);
$text = str_replace("Hiphop4u","britneyspears",$text);
$text = str_replace("HipHop4u","britneyspears",$text);
$text = str_replace("hh4u","britneyspears",$text);
$text = str_replace("HH4U","britneyspears",$text);
$text = str_replace("Hh4u","britneyspears",$text);
$text = str_replace("hH4U","britneyspears",$text);
$text = str_replace("HH4u","britneyspears",$text);
$text = str_replace("hh4U","britneyspears",$text);
return $text;
GOT ONE BUT THANKS ANY WAYS I RIP IT FROM THE OLD LAVALAIR
Comment

Comment