in core where i put those banned words ? like if somone pm to any member to join any other site it will be automated report on staff logs .... ibwf_mlogs i mean .
pm report codes
Collapse
X
-
Just check in y0ur c0re, it already have l0l! Just add the w0rds u want t0 blacklistour lfe is simple words....
http://mygenkz.net
ewanz06@yahoo.com
PHP Code:$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file);
-
Just make a new anti-spam function
for core.php
PHP Code:function clean_string($string){
$new_string = preg_replace("/[^a-zA-Z0-9]/", "", $string);
return $new_string;
}
function spam_on_lava($str,$sender)
{
if(ismod($sender))
return false;
$str = strtolower($str);
$res = mysql_query("SELECT site FROM ibwf_blockedsite");
while ($row = mysql_fetch_array($res))
$sites[] = $row[0];
$n = count($sites);
for($i=0;$i<$n;$i++){
if(strlen($sites[$i])>0&&strlen($str)>0){
$s1 = substr_count($str,$sites[$i]);
$s2 = substr_count(clean_string($str),$sites[$i]);
}
if($s1+$s2>0)
return true;
}
return false;
}
function addlog($lgnm,$lgbdy){
mysql_query("INSERT INTO lib3rtymrc_mlog SET action='".$lgnm."'', details='".$lgbdy."', actdt='".time()."'");
}
PHP Code:$pmtext = $_POST['pmtext'];
if(spam_on_lava($pmtext)){
// go on hell ...
addlog("Spam","".getnick_uid($uid)." spamed with : $pmtext");
}
codingtalkcom or codingtalk not coding-talk.com
so****inglongurl not so-fuking-long-url.com
etc.
:D
who will post : g#o#o#g#l#e#.#c#o#m will be reported or banned ...Last edited by i0nutzxp; 09.12.10, 12:16.<?php unlink('World/Europe/Romania.country'); ?>
Comment
Comment