summaryrefslogtreecommitdiff
path: root/cron.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2000-12-16 08:39:01 +0000
committerDries Buytaert <dries@buytaert.net>2000-12-16 08:39:01 +0000
commitc1a88d5d6733f1cd17fe677456cb445edd6a7afd (patch)
tree16d244b1d1ca04ec010198f5ba268bed7ca717b6 /cron.php
parent8a77861958367a0364675f93c8d49b953e4d8566 (diff)
downloadbrdo-c1a88d5d6733f1cd17fe677456cb445edd6a7afd.tar.gz
brdo-c1a88d5d6733f1cd17fe677456cb445edd6a7afd.tar.bz2
Again, a large batch of updates - I'm twisting things around here:
1. improved .htaccess to be more "secure": to keep prying eyes out 2. rewrote the administration section from scratch using a modular approach 3. improved the information gathered by error.php - we can now (hopefully) track what bots are crawling us. 4. fixed a bug in submit.php, fixed a bug in theme zaphod, fixed a bug in theme marvin. 5. rewrote cron from scratch - it now interfaces with modules as it should have been from the beginning. Very cool if you ask me - it can use UNIX/Linux crontabs. 6. updated widget.inc to be module aware - needs more work though - maybe this afternoon? 7. updated most modules: small bugfixes, improvements, and even the documentation 8. removed diary.php and made it a module - you can now run a drop.org site without a diary system if someone would prefer so 9. updated all themes to use the new modules where appropriate 10. added a robots.txt because the error message in the watchdog become annoying. 11. added the new configuration system (mutliple vhosts on the same source tree) - use hostname.conf instead of config.inc 12. removed calendar.inc and made it a module 13. added format_interval() to functions.inc (UnConeD) 14. whatever I forgot ...
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/cron.php b/cron.php
index ebde1b30b..376792366 100644
--- a/cron.php
+++ b/cron.php
@@ -1,12 +1,7 @@
<?
-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);
-}
+cron_run();
?>