Changeset 2566:9bf417837888 for plugins/maintenance/index.php
- Timestamp:
- 11/17/13 20:25:53 (12 years ago)
- Branch:
- 2.6
- Children:
- 2567:6c11245cbf04, 2568:61c67a7d17fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/maintenance/index.php
r2491 r2566 65 65 try { 66 66 $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, 72 72 true 73 73 ); … … 85 85 } 86 86 $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, 92 92 $t->blog() 93 93 ); … … 120 120 121 121 if ($task && $task->ajax()) { 122 echo 122 echo 123 123 '<script type="text/javascript">'."\n". 124 124 "//<![CDATA[\n". … … 129 129 } 130 130 131 echo 131 echo 132 132 $maintenance->getHeaders().' 133 133 </head> … … 167 167 // Intermediate task (task required several steps) 168 168 169 echo 169 echo 170 170 '<div class="step-box" id="'.$task->id().'">'. 171 171 '<p class="step-back">'. … … 205 205 foreach($tasks as $t) 206 206 { 207 if (!$t->id() 208 || $t->group() != $group_obj->id() 207 if (!$t->id() 208 || $t->group() != $group_obj->id() 209 209 || $t->tab() != $tab_obj->id()) { 210 210 continue; 211 211 } 212 212 213 $res_task .= 213 $res_task .= 214 214 '<p>'.form::radio(array('task', $t->id()), $t->id()).' '. 215 215 '<label class="classic" for="'.$t->id().'">'. … … 220 220 if ($core->blog->settings->maintenance->plugin_message && $ts !== false) { 221 221 if ($ts === null) { 222 $res_task .= 222 $res_task .= 223 223 '<br /> <span class="warn">'. 224 224 __('This task has never been executed.').' '. … … 226 226 } 227 227 else { 228 $res_task .= 228 $res_task .= 229 229 '<br /> <span class="warn">'.sprintf( 230 230 __('Last execution of this task was on %s.'), … … 240 240 241 241 if (!empty($res_task)) { 242 $res_group .= 242 $res_group .= 243 243 '<div class="fieldset">'. 244 244 '<h4 id="'.$group_obj->id().'">'.$group_obj->name().'</h4>'. … … 249 249 250 250 if (!empty($res_group)) { 251 echo 251 echo 252 252 '<div id="'.$tab_obj->id().'" class="multi-part" title="'.$tab_obj->name().'">'. 253 253 '<h3>'.$tab_obj->name().'</h3>'. … … 272 272 } 273 273 274 echo 274 echo 275 275 '<div id="'.$t->id().'" class="multi-part" title="'.$t->name().'">'. 276 276 '<h3>'.$t->name().'</h3>'. … … 287 287 // Settings 288 288 289 echo 289 echo 290 290 '<div id="settings" class="multi-part" title="'.__('Alert settings').'">'. 291 291 '<h3>'.__('Alert settings').'</h3>'. … … 320 320 if (!$t->id()) { 321 321 continue; 322 } 322 } 323 323 echo 324 324 '<div class="two-boxes">'. … … 331 331 } 332 332 333 echo 333 echo 334 334 '<p class="field wide"><input type="submit" value="'.__('Save').'" /> '. 335 335 form::hidden(array('tab'), 'settings'). … … 342 342 dcPage::helpBlock('maintenance', 'maintenancetasks'); 343 343 344 echo 344 echo 345 345 '</body></html>';
Note: See TracChangeset
for help on using the changeset viewer.