diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-06-21 15:14:47 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-06-21 15:14:47 +0000 |
commit | db5bba6bc871e1a22ec6d16d6bc55afb8148342e (patch) | |
tree | dbc5008dccf2f98c633745f29cfe29ba7b54180c /phpBB | |
parent | 8ef02f51fa311ec976e948d62c8e2223878d0e0c (diff) | |
download | forums-db5bba6bc871e1a22ec6d16d6bc55afb8148342e.tar forums-db5bba6bc871e1a22ec6d16d6bc55afb8148342e.tar.gz forums-db5bba6bc871e1a22ec6d16d6bc55afb8148342e.tar.bz2 forums-db5bba6bc871e1a22ec6d16d6bc55afb8148342e.tar.xz forums-db5bba6bc871e1a22ec6d16d6bc55afb8148342e.zip |
Add install/ warning for future use
git-svn-id: file:///svn/phpbb/trunk@4164 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/common.php | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/phpBB/common.php b/phpBB/common.php index 767e400cb5..188f175366 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -180,11 +180,13 @@ define('POLL_VOTES_TABLE', $table_prefix.'poll_voters'); set_error_handler('msg_handler'); // Instantiate some basic classes -$user = new user(); -$auth = new auth(); -$cache = new acm(); -$template = new template(); -$db = new sql_db(); +$user = new user(); +$auth = new auth(); +$cache = new acm(); +$template = new template(); +$db = new sql_db(); + +// Connect to DB $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false); // Grab global variables, re-cache if necessary @@ -230,17 +232,23 @@ if (time() - $config['cache_interval'] >= $config['cache_last_gc']) } */ -// Handle queue. +// Handle email/cron queue. if (time() - $config['queue_interval'] >= $config['last_queue_run']) { if (file_exists($phpbb_root_path . 'cache/queue.' . $phpEx)) { include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $queue = new Queue(); + $queue = new queue(); $queue->process(); } } +// Warn about install/ directory +if (file_exists('install')) +{ +// trigger_error('REMOVE_INSTALL'); +} + // Show 'Board is disabled' message if ($config['board_disable'] && !defined('IN_ADMIN') && !defined('IN_LOGIN')) { |