Changeset 3874:ab8368569446 for plugins/antispam/index.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/antispam/index.php
r3731 r3874 48 48 # Update filters 49 49 if (isset($_POST['filters_upd'])) { 50 $filters_opt = array();50 $filters_opt = []; 51 51 $i = 0; 52 52 foreach ($filters as $fid => $f) { 53 $filters_opt[$fid] = array(false, $i);53 $filters_opt[$fid] = [false, $i]; 54 54 $i++; 55 55 } … … 118 118 if ($filter_gui !== false) { 119 119 echo dcPage::breadcrumb( 120 array(120 [ 121 121 __('Plugins') => '', 122 122 $page_name => $p_url, 123 123 sprintf(__('%s filter configuration'), $filter->name) => '' 124 )) .124 ]) . 125 125 dcPage::notices(); 126 126 … … 134 134 } else { 135 135 echo dcPage::breadcrumb( 136 array(136 [ 137 137 __('Plugins') => '', 138 138 $page_name => '' 139 )) .139 ]) . 140 140 dcPage::notices(); 141 141 … … 151 151 echo 152 152 '<ul class="spaminfo">' . 153 '<li class="spamcount"><a href="' . $core->adminurl->get('admin.comments', array('status' => '-2')) . '">' . __('Junk comments:') . '</a> ' .153 '<li class="spamcount"><a href="' . $core->adminurl->get('admin.comments', ['status' => '-2']) . '">' . __('Junk comments:') . '</a> ' . 154 154 '<strong>' . $spam_count . '</strong></li>' . 155 '<li class="hamcount"><a href="' . $core->adminurl->get('admin.comments', array('status' => '1')) . '">' . __('Published comments:') . '</a> ' .155 '<li class="hamcount"><a href="' . $core->adminurl->get('admin.comments', ['status' => '1']) . '">' . __('Published comments:') . '</a> ' . 156 156 $published_count . '</li>' . 157 157 '</ul>'; … … 204 204 echo 205 205 '<tr class="line' . ($f->active ? '' : ' offline') . '" id="f_' . $fid . '">' . 206 '<td class="handle">' . form::number( array('f_order[' . $fid . ']'), array(206 '<td class="handle">' . form::number(['f_order[' . $fid . ']'], [ 207 207 'min' => 0, 208 208 'default' => $i, 209 209 'class' => 'position', 210 210 'extra_html' => 'title="' . __('position') . '"' 211 )) .211 ]) . 212 212 '</td>' . 213 '<td class="nowrap">' . form::checkbox( array('filters_active[]'), $fid,214 array(213 '<td class="nowrap">' . form::checkbox(['filters_active[]'], $fid, 214 [ 215 215 'checked' => $f->active, 216 216 'extra_html' => 'title="' . __('Active') . '"' 217 )217 ] 218 218 ) . '</td>' . 219 '<td class="nowrap">' . form::checkbox( array('filters_auto_del[]'), $fid,220 array(219 '<td class="nowrap">' . form::checkbox(['filters_auto_del[]'], $fid, 220 [ 221 221 'checked' => $f->auto_delete, 222 222 'extra_html' => 'title="' . __('Auto Del.') . '"' 223 )223 ] 224 224 ) . '</td>' . 225 225 '<td class="nowrap" scope="row">' . $f->name . '</td>' .
Note: See TracChangeset
for help on using the changeset viewer.