From 0cadc4e68340e02e6b51c29a672db7bb92386fa7 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 23 Dec 2000 15:13:34 +0000 Subject: - intermediate commit: some bugfixes, changes and some drastic changes to block and module support --- cron.php | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'cron.php') diff --git a/cron.php b/cron.php index 376792366..3cb6abfcb 100644 --- a/cron.php +++ b/cron.php @@ -1,7 +1,24 @@ scheduled"); + + while ($task = db_fetch_object($result)) { + if ($repository[$task->module]["cron"]) { + watchdog("message", "cron: executed '". $task->module ."_cron()'"); + $repository[$task->module]["cron"](); + } + } + + db_query("UPDATE crons SET timestamp = $time WHERE $time - timestamp > scheduled"); +} cron_run(); -?> +?> \ No newline at end of file -- cgit v1.2.3