diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-10-12 23:34:09 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-10-12 23:34:09 +0000 |
commit | bb9cd0f2ba5406249327495786a75b16ec788ac4 (patch) | |
tree | 6e4eb84f025d0e0d4645692d056614997ce19b8d /phpBB/common.php | |
parent | fca087f846a001ff310f96171b252fbc64ad76b7 (diff) | |
download | forums-bb9cd0f2ba5406249327495786a75b16ec788ac4.tar forums-bb9cd0f2ba5406249327495786a75b16ec788ac4.tar.gz forums-bb9cd0f2ba5406249327495786a75b16ec788ac4.tar.bz2 forums-bb9cd0f2ba5406249327495786a75b16ec788ac4.tar.xz forums-bb9cd0f2ba5406249327495786a75b16ec788ac4.zip |
well, seems putting the queue process in the footer doesn't work on "real boards" where people hit stop constantly on their browser :D
git-svn-id: file:///svn/phpbb/trunk@4593 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/common.php')
-rw-r--r-- | phpBB/common.php | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/phpBB/common.php b/phpBB/common.php index 919058ff2d..169a6caf9c 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -67,6 +67,12 @@ require($phpbb_root_path . 'includes/template.'.$phpEx); require($phpbb_root_path . 'includes/session.'.$phpEx); require($phpbb_root_path . 'includes/functions.'.$phpEx); +// Warn about install/ directory +if (file_exists('install')) +{ +// trigger_error('REMOVE_INSTALL'); +} + // User related define('ANONYMOUS', 1); @@ -254,10 +260,15 @@ if (time() - $config['cache_interval'] >= $config['cache_last_gc']) } */ -// Warn about install/ directory -if (file_exists('install')) +// Handle email/cron queue. +if (time() - $config['queue_interval'] >= $config['last_queue_run'] && !defined('IN_ADMIN')) { -// trigger_error('REMOVE_INSTALL'); + if (file_exists($phpbb_root_path . 'cache/queue.' . $phpEx)) + { + include_once($phpbb_root_path . 'includes/functions_messenger.'.$phpEx); + $queue = new queue(); + $queue->process(); + } } // Show 'Board is disabled' message |