Dotclear


Ignore:
Timestamp:
11/17/13 20:25:53 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Children:
2567:6c11245cbf04, 2568:61c67a7d17fa
Message:

Add some people in CREDITS, remove trailing spaces and tabs.

Location:
plugins/maintenance
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • plugins/maintenance/_admin.php

    r2394 r2566  
    105105      * Favorites hack. 
    106106      * 
    107       * This updates maintenance fav icon text  
     107      * This updates maintenance fav icon text 
    108108      * if there are tasks required maintenance. 
    109109      * 
     
    160160               } 
    161161 
    162                $lines[] =  
     162               $lines[] = 
    163163               '<li title="'.($ts === null ? 
    164164                    __('This task has never been executed.') 
     
    188188      * User preferences form. 
    189189      * 
    190       * This add options for superadmin user  
     190      * This add options for superadmin user 
    191191      * to show or not expired taks. 
    192192      * 
     
    233233      * Build a well sorted help for tasks. 
    234234      * 
    235       * This method is not so good if used with lot of tranlsations  
    236       * as it grows memory usage and translations files size,  
    237       * it is better to use help ressource files  
     235      * This method is not so good if used with lot of tranlsations 
     236      * as it grows memory usage and translations files size, 
     237      * it is better to use help ressource files 
    238238      * but keep it for exemple of how to use behavior adminPageHelpBlock. 
    239239      * Cheers, JC 
     
    265265                    foreach($maintenance->getTasks() as $t) 
    266266                    { 
    267                          if ($t->group() != $group_obj->id()  
     267                         if ($t->group() != $group_obj->id() 
    268268                          || $t->tab() != $tab_obj->id()) { 
    269269                              continue; 
    270270                         } 
    271271                         if (($desc = $t->description()) != '') { 
    272                               $res_task .=  
     272                              $res_task .= 
    273273                              '<dt>'.$t->task().'</dt>'. 
    274274                              '<dd>'.$desc.'</dd>'; 
     
    278278                         $desc = $group_obj->description ? $group_obj->description : $group_obj->summary; 
    279279 
    280                          $res_group .=  
     280                         $res_group .= 
    281281                         '<h5>'.$group_obj->name().'</h5>'. 
    282282                         ($desc ? '<p>'.$desc.'</p>' : ''). 
     
    287287                    $desc = $tab_obj->description ? $tab_obj->description : $tab_obj->summary; 
    288288 
    289                     $res_tab .=  
     289                    $res_tab .= 
    290290                    '<h4>'.$tab_obj->name().'</h4>'. 
    291291                    ($desc ? '<p>'.$desc.'</p>' : ''). 
  • plugins/maintenance/inc/class.dc.maintenance.descriptor.php

    r2044 r2566  
    1717@brief Simple descriptor for tabs, groups and more 
    1818 
    19 At this time this class is used in same way an arrayObject  
     19At this time this class is used in same way an arrayObject 
    2020but in futur it could be completed with advance methods. 
    2121*/ 
  • plugins/maintenance/inc/class.dc.maintenance.php

    r2044 r2566  
    4848      * Initialize list of tabs and groups and tasks. 
    4949      * 
    50       * To register a tab or group or task,  
     50      * To register a tab or group or task, 
    5151      * use behavior dcMaintenanceInit then a method of 
    5252      * dcMaintenance like addTab('myTab', ...). 
  • plugins/maintenance/inc/class.dc.maintenance.task.php

    r2491 r2566  
    9898      * Get task permission. 
    9999      * 
    100       * Return user permission required to run this task  
     100      * Return user permission required to run this task 
    101101      * or null for super admin. 
    102102      * 
     
    215215      * Get task group. 
    216216      * 
    217       * If task required a full tab,  
     217      * If task required a full tab, 
    218218      * this must be returned null. 
    219       *  
     219      * 
    220220      * @return     <b>mixed</b>   Task group ID or null 
    221221      */ 
     
    228228      * Use ajax 
    229229      * 
    230       * Is task use maintenance ajax script  
     230      * Is task use maintenance ajax script 
    231231      * for steps process. 
    232232      * 
     
    326326      * Log task execution. 
    327327      * 
    328       * Sometimes we need to log task execution  
     328      * Sometimes we need to log task execution 
    329329      * direct from task itself. 
    330330      * 
  • plugins/maintenance/inc/tasks/class.dc.maintenance.indexcomments.php

    r2044 r2566  
    3434     { 
    3535          $this->code = $this->core->indexAllComments($this->code, $this->limit); 
    36            
     36 
    3737          return $this->code ? $this->code : true; 
    3838     } 
  • plugins/maintenance/index.php

    r2491 r2566  
    6565     try { 
    6666          $core->blog->settings->maintenance->put( 
    67                'plugin_message',  
    68                !empty($_POST['settings_plugin_message']),  
    69                'boolean',  
    70                'Display alert message of late tasks on plugin page',  
    71                true,  
     67               'plugin_message', 
     68               !empty($_POST['settings_plugin_message']), 
     69               'boolean', 
     70               'Display alert message of late tasks on plugin page', 
     71               true, 
    7272               true 
    7373          ); 
     
    8585               } 
    8686               $core->blog->settings->maintenance->put( 
    87                     'ts_'.$t->id(),  
    88                     abs((integer) $ts),  
    89                     'integer',  
    90                     sprintf('Recall time for task %s', $t->id()),  
    91                     true,  
     87                    'ts_'.$t->id(), 
     88                    abs((integer) $ts), 
     89                    'integer', 
     90                    sprintf('Recall time for task %s', $t->id()), 
     91                    true, 
    9292                    $t->blog() 
    9393               ); 
     
    120120 
    121121if ($task && $task->ajax()) { 
    122      echo  
     122     echo 
    123123     '<script type="text/javascript">'."\n". 
    124124     "//<![CDATA[\n". 
     
    129129} 
    130130 
    131 echo  
     131echo 
    132132$maintenance->getHeaders().' 
    133133</head> 
     
    167167     // Intermediate task (task required several steps) 
    168168 
    169      echo  
     169     echo 
    170170     '<div class="step-box" id="'.$task->id().'">'. 
    171171     '<p class="step-back">'. 
     
    205205               foreach($tasks as $t) 
    206206               { 
    207                     if (!$t->id()  
    208                      || $t->group() != $group_obj->id()  
     207                    if (!$t->id() 
     208                     || $t->group() != $group_obj->id() 
    209209                     || $t->tab() != $tab_obj->id()) { 
    210210                         continue; 
    211211                    } 
    212212 
    213                     $res_task .=  
     213                    $res_task .= 
    214214                    '<p>'.form::radio(array('task', $t->id()), $t->id()).' '. 
    215215                    '<label class="classic" for="'.$t->id().'">'. 
     
    220220                    if ($core->blog->settings->maintenance->plugin_message && $ts !== false) { 
    221221                         if ($ts === null) { 
    222                               $res_task .=  
     222                              $res_task .= 
    223223                              '<br /> <span class="warn">'. 
    224224                              __('This task has never been executed.').' '. 
     
    226226                         } 
    227227                         else { 
    228                               $res_task .=  
     228                              $res_task .= 
    229229                              '<br /> <span class="warn">'.sprintf( 
    230230                                   __('Last execution of this task was on %s.'), 
     
    240240 
    241241               if (!empty($res_task)) { 
    242                     $res_group .=  
     242                    $res_group .= 
    243243                    '<div class="fieldset">'. 
    244244                    '<h4 id="'.$group_obj->id().'">'.$group_obj->name().'</h4>'. 
     
    249249 
    250250          if (!empty($res_group)) { 
    251                echo  
     251               echo 
    252252               '<div id="'.$tab_obj->id().'" class="multi-part" title="'.$tab_obj->name().'">'. 
    253253               '<h3>'.$tab_obj->name().'</h3>'. 
     
    272272          } 
    273273 
    274           echo  
     274          echo 
    275275          '<div id="'.$t->id().'" class="multi-part" title="'.$t->name().'">'. 
    276276          '<h3>'.$t->name().'</h3>'. 
     
    287287     // Settings 
    288288 
    289      echo  
     289     echo 
    290290     '<div id="settings" class="multi-part" title="'.__('Alert settings').'">'. 
    291291     '<h3>'.__('Alert settings').'</h3>'. 
     
    320320          if (!$t->id()) { 
    321321               continue; 
    322           }  
     322          } 
    323323          echo 
    324324          '<div class="two-boxes">'. 
     
    331331     } 
    332332 
    333      echo  
     333     echo 
    334334     '<p class="field wide"><input type="submit" value="'.__('Save').'" /> '. 
    335335     form::hidden(array('tab'), 'settings'). 
     
    342342dcPage::helpBlock('maintenance', 'maintenancetasks'); 
    343343 
    344 echo  
     344echo 
    345345'</body></html>'; 
  • plugins/maintenance/js/dc.maintenance.js

    r1959 r2566  
    3131                              $('rsp>step',data).attr('title') 
    3232                         ); 
    33                          var code = $('rsp>step',data).attr('code');  
     33                         var code = $('rsp>step',data).attr('code'); 
    3434                         if (code > 0){ 
    3535                              dcMaintenanceStep(box,code); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map