mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 23:55:26 +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:
parent
fca087f846
commit
bb9cd0f2ba
@ -67,6 +67,12 @@ require($phpbb_root_path . 'includes/template.'.$phpEx);
|
|||||||
require($phpbb_root_path . 'includes/session.'.$phpEx);
|
require($phpbb_root_path . 'includes/session.'.$phpEx);
|
||||||
require($phpbb_root_path . 'includes/functions.'.$phpEx);
|
require($phpbb_root_path . 'includes/functions.'.$phpEx);
|
||||||
|
|
||||||
|
// Warn about install/ directory
|
||||||
|
if (file_exists('install'))
|
||||||
|
{
|
||||||
|
// trigger_error('REMOVE_INSTALL');
|
||||||
|
}
|
||||||
|
|
||||||
// User related
|
// User related
|
||||||
define('ANONYMOUS', 1);
|
define('ANONYMOUS', 1);
|
||||||
|
|
||||||
@ -254,10 +260,15 @@ if (time() - $config['cache_interval'] >= $config['cache_last_gc'])
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Warn about install/ directory
|
// Handle email/cron queue.
|
||||||
if (file_exists('install'))
|
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
|
// Show 'Board is disabled' message
|
||||||
|
@ -1497,17 +1497,6 @@ function page_footer()
|
|||||||
|
|
||||||
$template->display('body');
|
$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
|
// Unload cache, must be done before the DB connection if closed
|
||||||
if (!empty($cache))
|
if (!empty($cache))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user