Changeset 782:01efbf050a8a for plugins/antispam/index.php
- Timestamp:
- 12/06/11 11:43:14 (14 years ago)
- Branch:
- formfilters
- Parents:
- 781:b509ac00bf4a (diff), 779:58c45f1b96e5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/antispam/index.php
r776 r782 121 121 { 122 122 echo '<h2>'.html::escapeHTML($core->blog->name).' › <span class="page-title">'.$page_name.'</span></h2>'; 123 124 123 # Information 125 124 $spam_count = dcAntispam::countSpam($core); … … 232 231 </body> 233 232 </html> 233 -
plugins/antispam/index.php
r457 r782 4 4 # This file is part of Antispam, a plugin for Dotclear 2. 5 5 # 6 # Copyright (c) 2003-201 0Olivier Meunier & Association Dotclear6 # Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear 7 7 # Licensed under the GPL version 2.0 license. 8 8 # See LICENSE file or … … 110 110 <body> 111 111 <?php 112 echo '<h2>'.html::escapeHTML($core->blog->name).' › '.$page_name.'</h2>';113 112 114 113 if ($filter_gui !== false) 115 114 { 116 echo '< p><a href="'.$p_url.'">'.__('Return to filters').'</a></p>';117 printf('<h3>'.__('%s configuration').'</h3>',$filter->name);115 echo '<h2>'.html::escapeHTML($core->blog->name).' › <a href="'.$p_url.'">'.$page_name.'</a>'. 116 ' › <span class="page-title">'.sprintf(__('%s configuration'),$filter->name).'</span></h2>'; 118 117 119 118 echo $filter_gui; … … 121 120 else 122 121 { 122 echo '<h2>'.html::escapeHTML($core->blog->name).' › <span class="page-title">'.$page_name.'</span></h2>'; 123 123 # Information 124 124 $spam_count = dcAntispam::countSpam($core); … … 127 127 128 128 echo 129 '<form action="'.$p_url.'" method="post" >'.130 '< fieldset><legend>'.__('Information').'</legend>';129 '<form action="'.$p_url.'" method="post" class="fieldset">'. 130 '<h3>'.__('Information').'</h3>'; 131 131 132 132 if (!empty($_GET['del'])) { … … 150 150 } 151 151 if ($moderationTTL != null && $moderationTTL >=0) { 152 echo '<p>'.sprintf(__('All spam comments older than %s day(s) will be automatically deleted.'), $moderationTTL).'</p>'; 153 } 154 echo '</fieldset></form>'; 152 echo '<p>'.sprintf(__('All spam comments older than %s day(s) will be automatically deleted.'), $moderationTTL).' '. 153 __('You can modify this duration in '). 154 '<a href="blog_pref.php"> '.__('Blog preferences').'</a></p>'; 155 } 156 echo '</form>'; 155 157 156 158 157 159 # Filters 158 160 echo 159 '<form action="'.$p_url.'" method="post">'. 160 '<fieldset><legend>'.__('Available spam filters').'</legend>'; 161 '<form action="'.$p_url.'" method="post" class="fieldset">'; 161 162 162 163 if (!empty($_GET['upd'])) { … … 166 167 echo 167 168 '<table class="dragable">'. 168 '<caption>'.__('A ntispan filters list').'</caption>'.169 '<caption>'.__('Available spam filters').'</caption>'. 169 170 '<thead><tr>'. 170 '<th scope="col">'.__('Order').'</th>'.171 '<th scope="col">'.__('Active').'</th>'.172 '<th scope="col">'.__('Auto Del.').'</th>'.173 '<th scope="col"class="nowrap">'.__('Filter name').'</th>'.174 '<th scope="col"colspan="2">'.__('Description').'</th>'.171 '<th>'.__('Order').'</th>'. 172 '<th>'.__('Active').'</th>'. 173 '<th>'.__('Auto Del.').'</th>'. 174 '<th class="nowrap">'.__('Filter name').'</th>'. 175 '<th colspan="2">'.__('Description').'</th>'. 175 176 '</tr></thead>'. 176 177 '<tbody id="filters-list" >'; … … 192 193 '<td class="nowrap">'.form::checkbox(array('filters_active[]'),$fid,$f->active, '', '', false, 'title="'.__('Active').'"').'</td>'. 193 194 '<td class="nowrap">'.form::checkbox(array('filters_auto_del[]'),$fid,$f->auto_delete, '', '', false, 'title="'.__('Auto Del.').'"').'</td>'. 194 '<t h scope="row" class="nowrap">'.$f->name.'</th>'.195 '<td class="nowrap" scope="raw">'.$f->name.'</td>'. 195 196 '<td class="maximal">'.$f->description.'</td>'. 196 197 '<td class="status">'.$gui_link.'</td>'. … … 203 204 $core->formNonce(). 204 205 '<input type="submit" name="filters_upd" value="'.__('Save').'" /></p>'. 205 '</f ieldset></form>';206 '</form>'; 206 207 207 208 … … 209 210 if (DC_ADMIN_URL) 210 211 { 211 $ham_feed = $core->blog->url.$core->url->getBase('hamfeed').'/'.$code = dcAntispam::getUserCode($core); 212 $spam_feed = $core->blog->url.$core->url->getBase('spamfeed').'/'.$code = dcAntispam::getUserCode($core); 212 $ham_feed = $core->blog->url.$core->url->getURLFor( 213 'hamfeed', 214 $code = dcAntispam::getUserCode($core) 215 ); 216 $spam_feed = $core->blog->url.$core->url->getURLFor( 217 'spamfeed', 218 $code = dcAntispam::getUserCode($core) 219 ); 213 220 214 221 echo 215 '< fieldset><legend>'.__('Syndication').'</legend>'.222 '<h3>'.__('Syndication').'</h3>'. 216 223 '<ul class="spaminfo">'. 217 224 '<li class="feed"><a href="'.$spam_feed.'">'.__('Junk comments RSS feed').'</a></li>'. 218 225 '<li class="feed"><a href="'.$ham_feed.'">'.__('Published comments RSS feed').'</a></li>'. 219 '</ul>'. 220 '</fieldset>'; 226 '</ul>'; 221 227 } 222 228 }
Note: See TracChangeset
for help on using the changeset viewer.