Dotclear


Ignore:
Timestamp:
12/06/11 11:43:14 (14 years ago)
Author:
Dsls <dsls@…>
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.
Message:

Merged last default changes with formfilter branch

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/antispam/index.php

    r776 r782  
    121121{ 
    122122     echo '<h2>'.html::escapeHTML($core->blog->name).' &rsaquo; <span class="page-title">'.$page_name.'</span></h2>'; 
    123  
    124123     # Information 
    125124     $spam_count = dcAntispam::countSpam($core); 
     
    232231</body> 
    233232</html> 
     233 
  • plugins/antispam/index.php

    r457 r782  
    44# This file is part of Antispam, a plugin for Dotclear 2. 
    55# 
    6 # Copyright (c) 2003-2010 Olivier Meunier & Association Dotclear 
     6# Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear 
    77# Licensed under the GPL version 2.0 license. 
    88# See LICENSE file or 
     
    110110<body> 
    111111<?php 
    112 echo '<h2>'.html::escapeHTML($core->blog->name).' &rsaquo; '.$page_name.'</h2>'; 
    113112 
    114113if ($filter_gui !== false) 
    115114{ 
    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).' &rsaquo; <a href="'.$p_url.'">'.$page_name.'</a>'. 
     116          ' &rsaquo; <span class="page-title">'.sprintf(__('%s configuration'),$filter->name).'</span></h2>'; 
    118117 
    119118     echo $filter_gui; 
     
    121120else 
    122121{ 
     122     echo '<h2>'.html::escapeHTML($core->blog->name).' &rsaquo; <span class="page-title">'.$page_name.'</span></h2>'; 
    123123     # Information 
    124124     $spam_count = dcAntispam::countSpam($core); 
     
    127127 
    128128     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>'; 
    131131 
    132132     if (!empty($_GET['del'])) { 
     
    150150     } 
    151151     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>'; 
    155157 
    156158 
    157159     # Filters 
    158160     echo 
    159      '<form action="'.$p_url.'" method="post">'. 
    160      '<fieldset><legend>'.__('Available spam filters').'</legend>'; 
     161     '<form action="'.$p_url.'" method="post" class="fieldset">'; 
    161162 
    162163     if (!empty($_GET['upd'])) { 
     
    166167     echo 
    167168     '<table class="dragable">'. 
    168      '<caption>'.__('Antispan filters list').'</caption>'. 
     169     '<caption>'.__('Available spam filters').'</caption>'. 
    169170     '<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>'. 
    175176     '</tr></thead>'. 
    176177     '<tbody id="filters-list" >'; 
     
    192193          '<td class="nowrap">'.form::checkbox(array('filters_active[]'),$fid,$f->active, '', '', false, 'title="'.__('Active').'"').'</td>'. 
    193194          '<td class="nowrap">'.form::checkbox(array('filters_auto_del[]'),$fid,$f->auto_delete, '', '', false, 'title="'.__('Auto Del.').'"').'</td>'. 
    194           '<th scope="row" class="nowrap">'.$f->name.'</th>'. 
     195          '<td class="nowrap" scope="raw">'.$f->name.'</td>'. 
    195196          '<td class="maximal">'.$f->description.'</td>'. 
    196197          '<td class="status">'.$gui_link.'</td>'. 
     
    203204     $core->formNonce(). 
    204205     '<input type="submit" name="filters_upd" value="'.__('Save').'" /></p>'. 
    205      '</fieldset></form>'; 
     206     '</form>'; 
    206207 
    207208 
     
    209210     if (DC_ADMIN_URL) 
    210211     { 
    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          ); 
    213220 
    214221          echo 
    215           '<fieldset><legend>'.__('Syndication').'</legend>'. 
     222          '<h3>'.__('Syndication').'</h3>'. 
    216223          '<ul class="spaminfo">'. 
    217224          '<li class="feed"><a href="'.$spam_feed.'">'.__('Junk comments RSS feed').'</a></li>'. 
    218225          '<li class="feed"><a href="'.$ham_feed.'">'.__('Published comments RSS feed').'</a></li>'. 
    219           '</ul>'. 
    220           '</fieldset>'; 
     226          '</ul>'; 
    221227     } 
    222228} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map