summaryrefslogtreecommitdiff
path: root/cron.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2000-12-10 15:44:23 +0000
committerDries Buytaert <dries@buytaert.net>2000-12-10 15:44:23 +0000
commit1e993e9367e628c529a7864c1354ca40e39881ff (patch)
tree33ac33a76d55c6d6e15119179fda2f94bfabc847 /cron.php
parentfc8fa68b6f6a4b968f187cc621d9cc9fd585de28 (diff)
downloadbrdo-1e993e9367e628c529a7864c1354ca40e39881ff.tar.gz
brdo-1e993e9367e628c529a7864c1354ca40e39881ff.tar.bz2
- added a new cron deamon as discussed earlier!
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/cron.php b/cron.php
new file mode 100644
index 000000000..ebde1b30b
--- /dev/null
+++ b/cron.php
@@ -0,0 +1,12 @@
+<?
+
+include "includes/theme.inc";
+include "includes/cron.inc";
+
+$result = db_query("SELECT * FROM cron");
+
+while ($cron = db_fetch_object($result)) {
+ if (time() - $cron->timestamp > $cron->scheduled) cron_execute($cron);
+}
+
+?>