| Line | Revision | Contents |
| 1 | 1 | <?php |
| 2 | 14.1.118 | // $Id: cron.php,v 1.41 2009/01/26 14:11:34 dries Exp $ |
| 3 | 1 | |
| 4 | /** |
|
| 5 | * @file |
|
| 6 | * Handles incoming requests to fire off regularly-scheduled tasks (cron jobs). |
|
| 7 | */ |
|
| 8 | ||
| 9 | /** |
|
| 10 | * Root directory of Drupal installation. |
|
| 11 | */ |
|
| 12 | define('DRUPAL_ROOT', dirname(realpath(__FILE__))); |
|
| 13 | ||
| 14 | include_once DRUPAL_ROOT . '/includes/bootstrap.inc'; |
|
| 15 | drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); |
|
| 16 | if (isset($_GET['cron_key']) && variable_get('cron_key', 'drupal') == $_GET['cron_key']) { |
|
| 17 | drupal_cron_run(); |
|
| 18 | } |
|
| 19 | else { |
|
| 20 | 14.1.118 | watchdog('cron', 'Cron could not run because an invalid key was used.', array(), WATCHDOG_NOTICE); |
| 21 | 1 | drupal_access_denied(); |
| 22 | } |
Loggerhead 1.17 is a web-based interface for Bazaar branches