Dotclear

Changeset 2047


Ignore:
Timestamp:
02/08/10 10:43:45 (13 years ago)
Author:
JcDenis
Message:

zoneclearFeedServer 0.5:

  • Added option to change update interval by group of feeds
  • Fixed order by lower name
  • Fixed HTML escape on content
  • Fixed typo
Location:
plugins/zoneclearFeedServer
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • plugins/zoneclearFeedServer/_define.php

    r2042 r2047  
    1717     /* Description*/         "Mix your blog with a feeds planet", 
    1818     /* Author */             "JC Denis, BG", 
    19      /* Version */            '0.4.3', 
     19     /* Version */            '0.5', 
    2020     /* Permissions */        'admin' 
    2121); 
    22      /* date */          #20100202 
     22     /* date */          #20100208 
    2323?> 
  • plugins/zoneclearFeedServer/_public.php

    r2041 r2047  
    109109                    $content = context::remove_html($content); 
    110110                    $content = context::cut_string($content,350);      
     111                    $content = html::escapeHTML($content); 
    111112 
    112113                    return 
  • plugins/zoneclearFeedServer/_widgets.php

    r2032 r2047  
    3030          ); 
    3131          $w->zcfssource->setting('sortby', 
    32                __('Order by:'),'name','combo',array( 
    33                     __('name')=>'name', 
     32               __('Order by:'),'lowername','combo',array( 
     33                    __('name')=> 'lowername', 
    3434                    __('creation date') => 'creadt' 
    3535               ) 
     
    7272 
    7373          $p = array(); 
    74           $p['order'] = ($w->sortby && in_array($w->sortby,array('name','creadt'))) ?  
    75                $w->sortby.' ' : 'name '; 
     74          $p['order'] = ($w->sortby && in_array($w->sortby,array('lowername','creadt'))) ?  
     75               $w->sortby.' ' : 'lowername '; 
    7676 
    7777          $p['order'] .= $w->sort == 'desc' ? 'DESC' : 'ASC'; 
  • plugins/zoneclearFeedServer/inc/class.zoneclear.feed.server.php

    r2042 r2047  
    157157          "AND P.blog_id = '".$this->blog."' ". 
    158158          "AND F.meta_type = 'zoneclearfeed_id' ". 
    159           "AND F.meta_id = ".$this->con->escape($params['feed_id'])." "; 
     159          "AND F.meta_id = '".$this->con->escape($params['feed_id'])."' "; 
    160160 
    161161          unset($params['feed_id']); 
     
    182182               'Z.upd_int, Z.upd_last, Z.status, '. 
    183183               $content_req. 
    184                'Z.name, Z.desc, Z.url, Z.feed, '. 
     184               'LOWER(Z.name) as lowername, Z.name, Z.desc, Z.url, Z.feed, '. 
    185185               'Z.tags, Z.owner, Z.lang, '. 
    186186               'Z.nb_out, Z.nb_in, '. 
  • plugins/zoneclearFeedServer/index.php

    r2042 r2047  
    247247     } 
    248248 
     249     # Move to right tab 
     250     if (!empty($_POST['feeds']) && $_POST['action'] == 'changeint') 
     251     { 
     252          $default_tab = 'changeint'; 
     253     } 
     254 
     255     # Update interval for a group of feeds 
     256     if (!empty($_POST['feeds']) && !empty($_POST['updfeedint'])) 
     257     { 
     258          foreach($_POST['feeds'] as $feed_id) 
     259          { 
     260               $cur = $zc->openCursor(); 
     261               $cur->upd_int = abs((integer) $_POST['upd_upd_int']); 
     262               $zc->updFeed($feed_id,$cur); 
     263          } 
     264          http::redirect('plugin.php?p=zoneclearFeedServer&tab=feedslist&save=1'); 
     265     } 
     266 
    249267     # Update category for a group of feeds 
    250268     if (!empty($_POST['feeds']) && $_POST['action'] == 'resetupdlast') 
     
    271289$combo_sortby = array( 
    272290     __('Date') => 'upddt', 
    273      __('Name') => 'name', 
     291     __('Name') => 'lowername', 
    274292     __('frequency') => 'upd_int', 
    275293     __('Date of update') => 'last_upd', 
     
    285303     __('delete feed (without related posts)') => 'deletefeed', 
    286304     __('change category') => 'changecat', 
     305     __('change update interval') => 'changeint', 
    287306     __('disable feed update') => 'disablefeed', 
    288307     __('enable feed update') => 'enablefeed', 
     
    367386<p><label class="classic">'.__('Number of feeds to update at one time:').'<br />'. 
    368387form::field('_update_limit',6,4,$_update_limit).'</label></p> 
    369 <p class="form-note">'.sprintf(__('There is a limit of %s seconds between two updates.'),$zc->timer).'</p> 
     388<p class="form-note">'.sprintf(__('There is a limit of %s seconds between two series of updates.'),$zc->timer).'</p> 
    370389<p><label class="classic">'.__('Owner of entries created by zoneclearFeedServer:').'<br />'. 
    371390form::combo(array('_user'),$combo_admins,$_user).'</label></p> 
     
    468487} 
    469488 
    470 # Change category for links 
     489# Change category for feeds 
    471490if (!empty($_POST['feeds']) && $_POST['action'] == 'changecat') 
    472491{ 
     
    489508     form::combo(array('upd_cat_id'),$combo_categories,'').'  
    490509     <input type="submit" name="updfeedcat" value="ok" />'. 
     510     form::hidden(array('p'),'zoneclearFeedServer'). 
     511     form::hidden(array('tab'),'feeds'). 
     512     $core->formNonce().' 
     513     </p> 
     514     </form> 
     515     </div>'; 
     516} 
     517 
     518# Change interval for feeds 
     519if (!empty($_POST['feeds']) && $_POST['action'] == 'changeint') 
     520{ 
     521     echo ' 
     522     <div class="multi-part" id="changeint" title="'.__('Change feeds update interval').'"> 
     523     <form method="post" action="plugin.php"> 
     524     <p>'.__('This changes interval of updates for all selected feeds.').'</p>'; 
     525 
     526     foreach($_POST['feeds'] as $feed_id) 
     527     { 
     528          echo 
     529          '<p><label class="classic">'. 
     530          form::checkbox(array('feeds[]'),$feed_id,1).' '. 
     531          $zc->getFeeds(array('id'=>$feed_id))->f('name'). 
     532          '</label></p>'; 
     533     } 
     534 
     535     echo ' 
     536     <p>'.__('Select a category:').' '. 
     537     form::combo(array('upd_upd_int'),$combo_upd_int,'').'  
     538     <input type="submit" name="updfeedint" value="ok" />'. 
    491539     form::hidden(array('p'),'zoneclearFeedServer'). 
    492540     form::hidden(array('tab'),'feeds'). 
  • plugins/zoneclearFeedServer/locales/fr/main.lang.php

    r2042 r2047  
    11<?php 
    22// Language: français  
    3 // Module: zoneclearFeedServer - 0.4.3 
    4 // Date: 2010-02-02 09:54:23  
     3// Module: zoneclearFeedServer - 0.4.4 
     4// Date: 2010-02-02 18:01:29  
    55// Translated with dcTranslater - 1.3  
    66 
     
    147147 
    148148#inc/lib.zoneclear.feed.server.index.php:34 
    149 #index.php:273 
     149#index.php:291 
    150150$GLOBALS['__l10n']['Name'] = 'Nom'; 
    151151 
     
    189189$GLOBALS['__l10n']['Record with same feed URL already exists.'] = 'Un enregistrement avec la même URL de flux existe déjà.'; 
    190190 
    191 #index.php:274 
     191#index.php:292 
    192192$GLOBALS['__l10n']['frequency'] = 'fréquence'; 
    193193 
    194 #index.php:275 
     194#index.php:293 
    195195$GLOBALS['__l10n']['Date of update'] = 'Date de mise à jour'; 
    196196 
    197 #index.php:284 
     197#index.php:302 
    198198$GLOBALS['__l10n']['delete related posts'] = 'effacer les billets liés'; 
    199199 
    200 #index.php:285 
     200#index.php:303 
    201201$GLOBALS['__l10n']['delete feed (without related posts)'] = 'effacer le flux (sans effacer les billets liés)'; 
    202202 
    203 #index.php:287 
     203#index.php:305 
     204$GLOBALS['__l10n']['change update interval'] = 'changer l\'intervale de mise à jour'; 
     205 
     206#index.php:306 
    204207$GLOBALS['__l10n']['disable feed update'] = 'désactiver la mise à jour du flux'; 
    205208 
    206 #index.php:288 
     209#index.php:307 
    207210$GLOBALS['__l10n']['enable feed update'] = 'activer la mise à jour du flux'; 
    208211 
    209 #index.php:289 
     212#index.php:308 
    210213$GLOBALS['__l10n']['Reset last update'] = 'remettre à zéro le chronomètre de mise à jour'; 
    211214 
    212 #index.php:290 
     215#index.php:309 
    213216$GLOBALS['__l10n']['Update (check) feed'] = 'mettre à jour (vérifier) le flux'; 
    214217 
    215 #index.php:356 
     218#index.php:375 
    216219$GLOBALS['__l10n']['Options'] = 'Options'; 
    217220 
    218 #index.php:359 
    219 #index.php:440 
    220 #index.php:504 
     221#index.php:378 
     222#index.php:459 
     223#index.php:552 
    221224$GLOBALS['__l10n']['Configuration successfully saved'] = 'Configuration sauvegardée avec succès'; 
    222225 
    223 #index.php:365 
     226#index.php:384 
    224227$GLOBALS['__l10n']['Enable plugin'] = 'Activer l\'extension'; 
    225228 
    226 #index.php:366 
     229#index.php:385 
    227230$GLOBALS['__l10n']['Publish new feed posts'] = 'Publier les nouveaux billets de flux'; 
    228231 
    229 #index.php:367 
     232#index.php:386 
    230233$GLOBALS['__l10n']['Number of feeds to update at one time:'] = 'Nombre de flux à mettre à jour à la fois :'; 
    231234 
    232 #index.php:369 
    233 $GLOBALS['__l10n']['There is a limit of %s seconds between two updates.'] = 'Il y a une limite de %s secondes entre deux mises à jour.'; 
    234  
    235 #index.php:370 
     235#index.php:388 
     236$GLOBALS['__l10n']['There is a limit of %s seconds between two series of updates.'] = 'Il y a une limite de %s secondes entre deux séries de mises à jour.'; 
     237 
     238#index.php:389 
    236239$GLOBALS['__l10n']['Owner of entries created by zoneclearFeedServer:'] = 'Propriétaire des billets créés par ZoneclearFeedServer :'; 
    237240 
    238 #index.php:380 
     241#index.php:399 
    239242$GLOBALS['__l10n']['Show full content on %s'] = 'Afficher le contenu complet sur %s'; 
    240243 
    241 #index.php:393 
     244#index.php:412 
    242245$GLOBALS['__l10n']['New feed'] = 'Nouveau flux'; 
    243246 
    244 #index.php:398 
    245 #index.php:449 
     247#index.php:417 
     248#index.php:468 
    246249$GLOBALS['__l10n']['Owner:'] = 'Propriétaire :'; 
    247250 
    248 #index.php:399 
    249 #index.php:450 
     251#index.php:418 
     252#index.php:469 
    250253$GLOBALS['__l10n']['Site URL:'] = 'URL du site :'; 
    251254 
    252 #index.php:405 
     255#index.php:424 
     256#index.php:475 
     257$GLOBALS['__l10n']['Update:'] = 'Mise à jour :'; 
     258 
    253259#index.php:456 
    254 $GLOBALS['__l10n']['Update:'] = 'Mise à jour :'; 
    255  
    256 #index.php:437 
    257260$GLOBALS['__l10n']['Edit feed'] = 'Edition de flux'; 
    258261 
    259 #index.php:446 
     262#index.php:465 
    260263$GLOBALS['__l10n']['ID:'] = 'ID :'; 
    261264 
    262 #index.php:474 
     265#index.php:493 
    263266$GLOBALS['__l10n']['Change feeds category'] = 'Changement de catégorie'; 
    264267 
    265 #index.php:476 
     268#index.php:495 
    266269$GLOBALS['__l10n']['This changes category for all selected feeds.'] = 'Ceci change la catégorie pour tous les flux selectionnés.'; 
    267270 
    268 #index.php:488 
     271#index.php:507 
     272#index.php:536 
    269273$GLOBALS['__l10n']['Select a category:'] = 'Selectionner une catégorie :'; 
    270274 
    271 #index.php:501 
     275#index.php:522 
     276$GLOBALS['__l10n']['Change feeds update interval'] = 'Intervale de mise à jour'; 
     277 
     278#index.php:524 
     279$GLOBALS['__l10n']['This changes interval of updates for all selected feeds.'] = 'Ceci change l\'intervale de mise à jour des flux selectionnés.'; 
     280 
     281#index.php:549 
    272282$GLOBALS['__l10n']['Feeds list'] = 'Liste des flux'; 
    273283 
    274 #index.php:544 
     284#index.php:592 
    275285$GLOBALS['__l10n']['Selected feeds action:'] = 'Action sur les flux sélectionnés :'; 
    276286 
  • plugins/zoneclearFeedServer/locales/fr/main.po

    r2042 r2047  
    11# Language: français 
    2 # Module: zoneclearFeedServer - 0.4.3 
    3 # Date: 2010-02-02 09:54:24 
     2# Module: zoneclearFeedServer - 0.4.4 
     3# Date: 2010-02-02 18:01:29 
    44# Translated with translater 1.3 
    55 
     
    77msgstr "" 
    88"Content-Type: text/plain; charset=UTF-8\n" 
    9 "Project-Id-Version: zoneclearFeedServer 0.4.3\n" 
     9"Project-Id-Version: zoneclearFeedServer 0.4.4\n" 
    1010"POT-Creation-Date: \n" 
    11 "PO-Revision-Date: 2010-02-02T09:54:24+00:00\n" 
     11"PO-Revision-Date: 2010-02-02T18:01:29+00:00\n" 
    1212"Last-Translator: JC Denis\n" 
    1313"Language-Team: \n" 
     
    203203 
    204204#: inc/lib.zoneclear.feed.server.index.php:34 
    205 #: index.php:273 
     205#: index.php:291 
    206206msgid "Name" 
    207207msgstr "Nom" 
     
    257257msgstr "Un enregistrement avec la même URL de flux existe déjà." 
    258258 
    259 #: index.php:274 
     259#: index.php:292 
    260260msgid "frequency" 
    261261msgstr "fréquence" 
    262262 
    263 #: index.php:275 
     263#: index.php:293 
    264264msgid "Date of update" 
    265265msgstr "Date de mise à jour" 
    266266 
    267 #: index.php:284 
     267#: index.php:302 
    268268msgid "delete related posts" 
    269269msgstr "effacer les billets liés" 
    270270 
    271 #: index.php:285 
     271#: index.php:303 
    272272msgid "delete feed (without related posts)" 
    273273msgstr "effacer le flux (sans effacer les billets liés)" 
    274274 
    275 #: index.php:287 
     275#: index.php:305 
     276msgid "change update interval" 
     277msgstr "changer l'intervale de mise à jour" 
     278 
     279#: index.php:306 
    276280msgid "disable feed update" 
    277281msgstr "désactiver la mise à jour du flux" 
    278282 
    279 #: index.php:288 
     283#: index.php:307 
    280284msgid "enable feed update" 
    281285msgstr "activer la mise à jour du flux" 
    282286 
    283 #: index.php:289 
     287#: index.php:308 
    284288msgid "Reset last update" 
    285289msgstr "remettre à zéro le chronomètre de mise à jour" 
    286290 
    287 #: index.php:290 
     291#: index.php:309 
    288292msgid "Update (check) feed" 
    289293msgstr "mettre à jour (vérifier) le flux" 
    290294 
    291 #: index.php:356 
     295#: index.php:375 
    292296msgid "Options" 
    293297msgstr "Options" 
    294298 
    295 #: index.php:359 
    296 #: index.php:440 
    297 #: index.php:504 
     299#: index.php:378 
     300#: index.php:459 
     301#: index.php:552 
    298302msgid "Configuration successfully saved" 
    299303msgstr "Configuration sauvegardée avec succès" 
    300304 
    301 #: index.php:365 
     305#: index.php:384 
    302306msgid "Enable plugin" 
    303307msgstr "Activer l'extension" 
    304308 
    305 #: index.php:366 
     309#: index.php:385 
    306310msgid "Publish new feed posts" 
    307311msgstr "Publier les nouveaux billets de flux" 
    308312 
    309 #: index.php:367 
     313#: index.php:386 
    310314msgid "Number of feeds to update at one time:" 
    311315msgstr "Nombre de flux à mettre à jour à la fois :" 
    312316 
    313 #: index.php:369 
    314 msgid "There is a limit of %s seconds between two updates." 
    315 msgstr "Il y a une limite de %s secondes entre deux mises à jour." 
    316  
    317 #: index.php:370 
     317#: index.php:388 
     318msgid "There is a limit of %s seconds between two series of updates." 
     319msgstr "Il y a une limite de %s secondes entre deux séries de mises à jour." 
     320 
     321#: index.php:389 
    318322msgid "Owner of entries created by zoneclearFeedServer:" 
    319323msgstr "Propriétaire des billets créés par ZoneclearFeedServer :" 
    320324 
    321 #: index.php:380 
     325#: index.php:399 
    322326msgid "Show full content on %s" 
    323327msgstr "Afficher le contenu complet sur %s" 
    324328 
    325 #: index.php:393 
     329#: index.php:412 
    326330msgid "New feed" 
    327331msgstr "Nouveau flux" 
    328332 
    329 #: index.php:398 
    330 #: index.php:449 
     333#: index.php:417 
     334#: index.php:468 
    331335msgid "Owner:" 
    332336msgstr "Propriétaire :" 
    333337 
    334 #: index.php:399 
    335 #: index.php:450 
     338#: index.php:418 
     339#: index.php:469 
    336340msgid "Site URL:" 
    337341msgstr "URL du site :" 
    338342 
    339 #: index.php:405 
    340 #: index.php:456 
     343#: index.php:424 
     344#: index.php:475 
    341345msgid "Update:" 
    342346msgstr "Mise à jour :" 
    343347 
    344 #: index.php:437 
     348#: index.php:456 
    345349msgid "Edit feed" 
    346350msgstr "Edition de flux" 
    347351 
    348 #: index.php:446 
     352#: index.php:465 
    349353msgid "ID:" 
    350354msgstr "ID :" 
    351355 
    352 #: index.php:474 
     356#: index.php:493 
    353357msgid "Change feeds category" 
    354358msgstr "Changement de catégorie" 
    355359 
    356 #: index.php:476 
     360#: index.php:495 
    357361msgid "This changes category for all selected feeds." 
    358362msgstr "Ceci change la catégorie pour tous les flux selectionnés." 
    359363 
    360 #: index.php:488 
     364#: index.php:507 
     365#: index.php:536 
    361366msgid "Select a category:" 
    362367msgstr "Selectionner une catégorie :" 
    363368 
    364 #: index.php:501 
     369#: index.php:522 
     370msgid "Change feeds update interval" 
     371msgstr "Intervale de mise à jour" 
     372 
     373#: index.php:524 
     374msgid "This changes interval of updates for all selected feeds." 
     375msgstr "Ceci change l'intervale de mise à jour des flux selectionnés." 
     376 
     377#: index.php:549 
    365378msgid "Feeds list" 
    366379msgstr "Liste des flux" 
    367380 
    368 #: index.php:544 
     381#: index.php:592 
    369382msgid "Selected feeds action:" 
    370383msgstr "Action sur les flux sélectionnés :" 
  • plugins/zoneclearFeedServer/release.txt

    r2042 r2047  
    33 * Not added public page of feed description 
    44 
     50.5 20100208 
     6 * Added option to change update interval by group of feeds 
     7 * Fixed order by lower name 
     8 * Fixed HTML escape on content 
     9 * Fixed typo 
     10 
    5110.4.3 20100102 
     12 * Added option to update feeds from admin side 
     13 * Added behavior for more urls types for full content 
     14 
     150.4 20100202 
    616 * Added option to change posts owner 
    717 * Added option to truncate content on some templates 
    8  * Added option to update feeds from admin side 
     18 
    919 
    10200.3.1 20100128 
Note: See TracChangeset for help on using the changeset viewer.

Sites map