3 * WordPress Cron Implementation for hosts, which do not offer CRON or for which
4 * the user has not setup a CRON job pointing to this file.
6 * The HTTP request to this file will not slow down the visitor who happens to
7 * visit when the cron job is needed to run.
12 ignore_user_abort(true);
15 * Tell WordPress we are doing the CRON task.
19 define('DOING_CRON', true);
20 /** Setup WordPress environment */
21 require_once('./wp-load.php');
23 if ( $_GET['check'] != wp_hash('187425') )
28 $crons = _get_cron_array();
29 $keys = array_keys( $crons );
31 if (!is_array($crons) || $keys[0] > $local_time) {
32 update_option('doing_cron', 0);
36 foreach ($crons as $timestamp => $cronhooks) {
38 if ( $timestamp > $local_time )
41 foreach ($cronhooks as $hook => $keys) {
43 foreach ($keys as $k => $v) {
45 $schedule = $v['schedule'];
47 if ($schedule != false) {
48 $new_args = array($timestamp, $schedule, $hook, $v['args']);
49 call_user_func_array('wp_reschedule_event', $new_args);
52 wp_unschedule_event($timestamp, $hook, $v['args']);
54 do_action_ref_array($hook, $v['args']);
59 update_option('doing_cron', 0);