Changeset 177

Show
Ignore:
Timestamp:
22/07/06 09:41:21 (2 years ago)
Author:
dez
Message:

Removed old tinymce in preparation for next commit which will add version 2.0.6.1

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • blog.lib.php

    r176 r177  
    564564                        $element = "comment"; 
    565565                } 
     566<<<<<<< .mine 
     567                //decide if the message is likely to be spam 
     568                $spam = checkSpam($host, $comment); 
     569======= 
    566570                //decided if the comment is likly to be spam 
    567571                if (checkRBL($host) or checkBody($comment)) { 
     
    573577                        $spam = FALSE; 
    574578                } 
     579>>>>>>> .r175 
    575580                //sanitise email 
    576581                if (isset($_POST['email']) && trim($_POST['email']) != "" && validEmail(trim($_POST['email']))) { 
  • miscfunctions.lib.php

    r167 r177  
    234234        return $spam; 
    235235} 
     236 
     237# General spam function combining all checks 
     238function checkSpam($ip, $message) { 
     239        $spam=checkRBL($ip); 
     240        if (preg_match_all("#http#", $message, $out)>5) $spam=true; 
     241        return $spam; 
     242}