pm report codes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    pm report codes

    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 .

    #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
    PHP Code:
    $output="i am NOoob....";
    $newfile="ewanz.txt";
    $file fopen ($newfile"w");
    fwrite($file$output);
    fclose ($file); 

    Comment


      #3
      What is the function name in core

      Comment


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

        Comment


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


          how to implement it?
          PHP Code:
          $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
          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

          Working...
          X