aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/common.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2005-04-30 14:28:07 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2005-04-30 14:28:07 +0000
commit15c0535cbcc2a719b6984a82c1d3d0ec3350f10f (patch)
treed3e9433294f8c337e71a244f1ce92c25c03eadfe /phpBB/common.php
parent0dec4135c54085caf9fd31f40ad4ff1fe94ba071 (diff)
downloadforums-15c0535cbcc2a719b6984a82c1d3d0ec3350f10f.tar
forums-15c0535cbcc2a719b6984a82c1d3d0ec3350f10f.tar.gz
forums-15c0535cbcc2a719b6984a82c1d3d0ec3350f10f.tar.bz2
forums-15c0535cbcc2a719b6984a82c1d3d0ec3350f10f.tar.xz
forums-15c0535cbcc2a719b6984a82c1d3d0ec3350f10f.zip
- new queue invocation method
git-svn-id: file:///svn/phpbb/trunk@5136 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/common.php')
-rw-r--r--phpBB/common.php24
1 files changed, 6 insertions, 18 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index 17a2ca10a1..b845460e16 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -36,6 +36,12 @@ if (@ini_get('register_globals'))
}
}
+if (defined('IN_CRON'))
+{
+ chdir($phpbb_root_path);
+ $phpbb_root_path = getcwd() . '/';
+}
+
require($phpbb_root_path . 'config.'.$phpEx);
if (!defined('PHPBB_INSTALLED'))
@@ -291,24 +297,6 @@ else
unset($cached_config);
}
-// Tidy the cache
-if (method_exists($cache, 'tidy') && time() - $config['cache_gc'] > $config['cache_last_gc'])
-{
- $cache->tidy();
- set_config('cache_last_gc', time(), TRUE);
-}
-
-// 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();
- }
-}
-
// Warn about install/ directory
if (file_exists('install'))
{