cron.php 439 Bytes
Newer Older
Dries Buytaert's avatar
   
Dries Buytaert committed
1
<?php
Steven Wittens's avatar
Steven Wittens committed
2
3
// $Id$

Dries Buytaert's avatar
   
Dries Buytaert committed
4
5
/**
 * @file
Dries Buytaert's avatar
   
Dries Buytaert committed
6
 * Handles incoming requests to fire off regularly-scheduled tasks (cron jobs).
Dries Buytaert's avatar
   
Dries Buytaert committed
7
8
 */

9
include_once './includes/bootstrap.inc';
10
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
11
12
if (isset($_GET['cron_key']) && variable_get('cron_key', 'drupal') == $_GET['cron_key']) {
  drupal_cron_run();
13
14
15
}
else {
  watchdog('cron', 'Cron did not run because an invalid key used.', array(), WATCHDOG_NOTICE);
16
  drupal_access_denied();
17
}