mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 05:48:51 +00:00
Add install/ warning for future use
git-svn-id: file:///svn/phpbb/trunk@4164 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
8ef02f51fa
commit
db5bba6bc8
1 changed files with 15 additions and 7 deletions
|
@ -180,11 +180,13 @@ define('POLL_VOTES_TABLE', $table_prefix.'poll_voters');
|
||||||
set_error_handler('msg_handler');
|
set_error_handler('msg_handler');
|
||||||
|
|
||||||
// Instantiate some basic classes
|
// Instantiate some basic classes
|
||||||
$user = new user();
|
$user = new user();
|
||||||
$auth = new auth();
|
$auth = new auth();
|
||||||
$cache = new acm();
|
$cache = new acm();
|
||||||
$template = new template();
|
$template = new template();
|
||||||
$db = new sql_db();
|
$db = new sql_db();
|
||||||
|
|
||||||
|
// Connect to DB
|
||||||
$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false);
|
$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false);
|
||||||
|
|
||||||
// Grab global variables, re-cache if necessary
|
// 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 (time() - $config['queue_interval'] >= $config['last_queue_run'])
|
||||||
{
|
{
|
||||||
if (file_exists($phpbb_root_path . 'cache/queue.' . $phpEx))
|
if (file_exists($phpbb_root_path . 'cache/queue.' . $phpEx))
|
||||||
{
|
{
|
||||||
include($phpbb_root_path . 'includes/emailer.'.$phpEx);
|
include($phpbb_root_path . 'includes/emailer.'.$phpEx);
|
||||||
$queue = new Queue();
|
$queue = new queue();
|
||||||
$queue->process();
|
$queue->process();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Warn about install/ directory
|
||||||
|
if (file_exists('install'))
|
||||||
|
{
|
||||||
|
// trigger_error('REMOVE_INSTALL');
|
||||||
|
}
|
||||||
|
|
||||||
// Show 'Board is disabled' message
|
// Show 'Board is disabled' message
|
||||||
if ($config['board_disable'] && !defined('IN_ADMIN') && !defined('IN_LOGIN'))
|
if ($config['board_disable'] && !defined('IN_ADMIN') && !defined('IN_LOGIN'))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue