示例#1
0
 /**
  * Runs this cron task.
  *
  * @return null
  */
 public function run()
 {
     if (!function_exists('tidy_warnings')) {
         include $this->phpbb_root_path . 'includes/functions_admin.' . $this->php_ext;
     }
     tidy_warnings();
 }
示例#2
0
     }
     if ($use_shutdown_function) {
         register_shutdown_function(array(&$search, 'tidy'));
     } else {
         $search->tidy();
     }
     break;
 case 'tidy_warnings':
     if (time() - $config['warnings_gc'] <= $config['warnings_last_gc']) {
         break;
     }
     include_once $phpbb_root_path . 'includes/functions_admin.' . $phpEx;
     if ($use_shutdown_function) {
         register_shutdown_function('tidy_warnings');
     } else {
         tidy_warnings();
     }
     break;
 case 'tidy_database':
     if (time() - $config['database_gc'] <= $config['database_last_gc']) {
         break;
     }
     include_once $phpbb_root_path . 'includes/functions_admin.' . $phpEx;
     if ($use_shutdown_function) {
         register_shutdown_function('tidy_database');
     } else {
         tidy_database();
     }
     break;
 case 'tidy_sessions':
     if (time() - $config['session_gc'] <= $config['session_last_gc']) {