/** * Runs this cron task. * * @return null */ public function run() { if (!function_exists('tidy_database')) { include $this->phpbb_root_path . 'includes/functions_admin.' . $this->php_ext; } tidy_database(); }
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']) { break; } if ($use_shutdown_function) { register_shutdown_function(array(&$user, 'session_gc')); } else { $user->session_gc(); } break; case 'prune_forum': $forum_id = request_var('f', 0); $sql = 'SELECT forum_id, prune_next, enable_prune, prune_days, prune_viewed, forum_flags, prune_freq