WordPress.org

Plugin Directory

Changeset 503589


Ignore:
Timestamp:
02/11/12 12:08:02 (2 years ago)
Author:
ramon fincken
Message:

New version, bugfix

Location:
antispam-for-all-fields
Files:
8 added
3 edited

Legend:

Unmodified
Added
Removed
  • antispam-for-all-fields/trunk/antispam-for-all-fields-core.php

    r496814 r503589  
    1818     * Checks if regex is applicable for this word in a string 
    1919     */ 
    20     public function string_is_spam($stringtotest, $spamword) { 
     20    public function string_is_spam($spamword, $stringtotest) { 
    2121        //if (preg_match("#\b(" . str_replace("\*", ".*?", preg_quote($stringtotest, '#')) . ")\b#i", $spamword)) { 
    22          
     22 
     23        // echo "test: $stringtotest , word: $spamword <br/>"; 
    2324        $spamword = trim($spamword,'*'); 
    2425        if (preg_match("/\b$spamword\b/i",$stringtotest)) { 
  • antispam-for-all-fields/trunk/antispam-for-all-fields.php

    r496814 r503589  
    55 Description: Class and functions 
    66 Author: Ramon Fincken 
    7  Version: 0.7.9 
     7 Version: 0.8.0 
    88 Author URI: http://www.mijnpress.nl 
    99 */ 
     
    1616} 
    1717 
    18 define('PLUGIN_ANTISPAM_FOR_ALL_FIELDS_VERSION', '0.7.9'); 
     18define('PLUGIN_ANTISPAM_FOR_ALL_FIELDS_VERSION', '0.8.0'); 
    1919 
    2020if(!class_exists('antispam_for_all_fields_core')) 
     
    205205            // Write current version to DB 
    206206            update_option('plugin_antispam_for_all_fields_version',PLUGIN_ANTISPAM_FOR_ALL_FIELDS_VERSION); 
    207             $this->show_message('Antispam for all fields: Upgrade succesfull. Please visit the plugin settings page now.'); 
     207            if(is_admin()) 
     208            { 
     209                $this->show_message('Antispam for all fields: Upgrade succesfull. Please visit the plugin settings page now.'); 
     210            } 
    208211        } 
    209212 
  • antispam-for-all-fields/trunk/readme.txt

    r496814 r503589  
    55Requires at least: 2.0.2 
    66Tested up to: 3.3.1 
    7 Stable tag: 0.7.9 
     7Stable tag: 0.8.0 
    88 
    99Plugin to reject spam. Port from same author from http://www.phpbbantispam.com 
     
    4040 
    4141== Changelog == 
     42= 0.8.0 = 
     43Bugfix: Wrong param order for spamword check, sorry!! 
     44Changed: Update msg only shows in backend 
     45 
    4246= 0.7.9 = 
    4347Added: IP whois link in email to admin 
Note: See TracChangeset for help on using the changeset viewer.