summaryrefslogtreecommitdiff
path: root/cron.php
diff options
context:
space:
mode:
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);
+}
+
+?>