2 ignore_user_abort(true);
3 define('DOING_CRON', TRUE);
4 require_once('./wp-config.php');
6 if ( $_GET['check'] != wp_hash('187425') )
9 if ( get_option('doing_cron') > time() )
12 update_option('doing_cron', time() + 30);
14 $crons = _get_cron_array();
15 $keys = array_keys($crons);
16 if (!is_array($crons) || $keys[0] > time())
18 foreach ($crons as $timestamp => $cronhooks) {
19 if ($timestamp > time()) break;
20 foreach ($cronhooks as $hook => $keys) {
21 foreach ($keys as $key => $args) {
22 $schedule = $args['schedule'];
23 if ($schedule != false) {
24 $new_args = array($timestamp, $schedule, $hook, $args['args']);
25 call_user_func_array('wp_reschedule_event', $new_args);
27 wp_unschedule_event($timestamp, $hook, $args['args']);
28 do_action_ref_array($hook, $args['args']);
33 update_option('doing_cron', 0);