Dotclear


Ignore:
Timestamp:
12/03/12 14:14:58 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Cope with junk comments without antispam plugin enabled (addresses #903)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/antispam/index.php

    r1049 r1052  
    2020$default_tab = null; 
    2121 
    22 $redir = isset($_POST['redir']) && strpos($_POST['redir'],'://') === false ? 
    23      $_POST['redir'] : $p_url; 
    24  
    2522try 
    2623{ 
     
    4138 
    4239     # Remove all spam 
    43      if (!empty($_POST['delete_all_spam'])) 
     40     if (!empty($_POST['delete_all'])) 
    4441     { 
    4542          $ts = dt::str('%Y-%m-%d %H:%M:%S',$_POST['ts'],$core->blog->settings->system->blog_timezone); 
    4643 
    4744          dcAntispam::delAllSpam($core,$ts); 
    48           http::redirect($redir.'&delspam=1'); 
     45          http::redirect($p_url.'&del=1'); 
    4946     } 
    5047 
     
    141138     '<h3>'.__('Information').'</h3>'; 
    142139 
    143      if (!empty($_GET['delspam'])) { 
     140     if (!empty($_GET['del'])) { 
    144141          dcPage::message(__('Spam comments have been successfully deleted.')); 
    145142     } 
     
    158155          '<p>'.$core->formNonce(). 
    159156          form::hidden('ts',time()). 
    160           '<input name="delete_all_spam" class="delete" type="submit" value="'.__('Delete all spams').'" /></p>'; 
     157          '<input name="delete_all" class="delete" type="submit" value="'.__('Delete all spams').'" /></p>'; 
    161158     } 
    162159     if ($moderationTTL != null && $moderationTTL >=0) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map