1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 15:45:34 +02:00

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
This commit is contained in:
Paul S. Owen 2003-10-12 23:34:09 +00:00
parent fca087f846
commit bb9cd0f2ba
2 changed files with 14 additions and 14 deletions

View File

@ -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

View File

@ -1497,17 +1497,6 @@ function page_footer()
$template->display('body');
// Handle email/cron queue.
if (time() - $config['queue_interval'] >= $config['last_queue_run'] && !defined('IN_ADMIN'))
{
if (file_exists($phpbb_root_path . 'cache/queue.' . $phpEx))
{
include_once($phpbb_root_path . 'includes/functions_messenger.'.$phpEx);
$queue = new queue();
$queue->process();
}
}
// Unload cache, must be done before the DB connection if closed
if (!empty($cache))
{