pm report codes

Started on the old forum in December 2010 · view the original in the archive · old links redirect here

4 replies · 442 views · started 15 years ago · 1 min read

4 participants
shakil420 Developer · 125 posts #1

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 .

ewanz Developer · 187 posts #2

Just check in y0ur c0re, it already have l0l! Just add the w0rds u want t0 blacklist

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
shakil420 Developer · 125 posts #3

What is the function name in core

something else Fellow · 2,296 posts #4

What are the words it picks up in your script already??? ...... maybe "http" ..... Search (Ctrl F) enter http and you will find it 😛

i0nutzxp Developer · 150 posts #5

Just make a new anti-spam function 🙂 for core.php

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()."'");

}

how to implement it?

$pmtext = $_POST['pmtext'];
if(spam_on_lava($pmtext)){
 // go on hell ... 
addlog("Spam","".getnick_uid($uid)." spamed with : $pmtext");
}

in owner tools add to blocked sites words like: codingtalkcom or codingtalk not coding-talk.com soinglongurl not so-fuking-long-url.com etc. 😀 who will post : g#o#o#g#l#e#.#c#o#m will be reported or banned ...

<?php unlink('World/Europe/Romania.country'); ?>

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