/[pkg-drupal]/branches/source-dist/cron.php
ViewVC logotype

Contents of /branches/source-dist/cron.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1134 - (hide annotations) (download)
Sun Jan 9 09:22:38 2005 UTC (8 years, 4 months ago) by bengen
File size: 749 byte(s)
Imported upstream version 4.6.5.
1 bengen 2 <?php
2 bengen 1134 // $Id: cron.php,v 1.28 2005-01-09 09:22:38 dries Exp $
3 bengen 2
4 bengen 496 /**
5     * @file
6     * Handles incoming requests to fire off regularly-scheduled tasks (cron jobs).
7     */
8 bengen 2
9 bengen 496 include_once 'includes/bootstrap.inc';
10     include_once 'includes/common.inc' ;
11 bengen 2
12 bengen 496 // If not in 'safe mode', increase the maximum execution time:
13     if (!ini_get('safe_mode')) {
14 bengen 95 set_time_limit(240);
15 bengen 2 }
16    
17 bengen 496 // Check if the last cron run completed
18     if (variable_get('cron_busy', false)) {
19 bengen 1134 watchdog('cron', t('Last cron run did not complete.'), WATCHDOG_WARNING);
20 bengen 496 }
21     else {
22     variable_set('cron_busy', true);
23     }
24 bengen 2
25 bengen 496 // Iterate through the modules calling their cron handlers (if any):
26     module_invoke_all('cron');
27 bengen 2
28 bengen 496 // Clean up
29     variable_set('cron_busy', false);
30 bengen 1134 watchdog('cron', t('Cron run completed'));
31 bengen 496
32 bengen 95 ?>

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.5