cron.php 377 Bytes
Newer Older
Dries's avatar
 
Dries committed
1
<?php
2
// $Id$
Dries's avatar
 
Dries committed
3

4
include_once "includes/common.inc";
Dries's avatar
 
Dries committed
5

Dries's avatar
 
Dries committed
6 7 8 9
/*
** If not in 'safe mode', increase the maximum execution time:
*/

Dries's avatar
 
Dries committed
10
if (!get_cfg_var("safe_mode")) {
Dries's avatar
 
Dries committed
11
  set_time_limit(240);
Dries's avatar
 
Dries committed
12 13 14 15 16 17 18 19 20
}

/*
** Iterate through the modules calling their cron handlers (if any):
*/

foreach (module_list() as $module) {
  module_invoke($module, "cron");
}
Dries's avatar
 
Dries committed
21

Dries's avatar
 
Dries committed
22 23
watchdog("message", "cron run completed");
?>