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

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

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

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

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

Dries's avatar
   
Dries committed
19
module_invoke_all("cron");
Dries's avatar
   
Dries committed
20

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