Changeset 1049:1d17674d50ad for plugins/antispam/index.php
- Timestamp:
- 12/02/12 16:04:27 (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
plugins/antispam/index.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/antispam/index.php
r1040 r1049 20 20 $default_tab = null; 21 21 22 $redir = isset($_POST['redir']) && strpos($_POST['redir'],'://') === false ? 23 $_POST['redir'] : $p_url; 24 22 25 try 23 26 { … … 38 41 39 42 # Remove all spam 40 if (!empty($_POST['delete_all ']))43 if (!empty($_POST['delete_all_spam'])) 41 44 { 42 45 $ts = dt::str('%Y-%m-%d %H:%M:%S',$_POST['ts'],$core->blog->settings->system->blog_timezone); 43 46 44 47 dcAntispam::delAllSpam($core,$ts); 45 http::redirect($ p_url.'&del=1');48 http::redirect($redir.'&delspam=1'); 46 49 } 47 50 … … 138 141 '<h3>'.__('Information').'</h3>'; 139 142 140 if (!empty($_GET['del '])) {143 if (!empty($_GET['delspam'])) { 141 144 dcPage::message(__('Spam comments have been successfully deleted.')); 142 145 } … … 155 158 '<p>'.$core->formNonce(). 156 159 form::hidden('ts',time()). 157 '<input name="delete_all " class="delete" type="submit" value="'.__('Delete all spams').'" /></p>';160 '<input name="delete_all_spam" class="delete" type="submit" value="'.__('Delete all spams').'" /></p>'; 158 161 } 159 162 if ($moderationTTL != null && $moderationTTL >=0) {
Note: See TracChangeset
for help on using the changeset viewer.
