From 560c570823877b6fb3cb78e6ad0fdf26a1427f7f Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Sat, 12 Aug 2006 15:37:28 +0000 Subject: Allow ACP access if install/ is present and display the generic board disabled message otherwise so that a user does not know the reason for it being disabled git-svn-id: file:///svn/phpbb/trunk@6276 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/common.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'phpBB/common.php') diff --git a/phpBB/common.php b/phpBB/common.php index d52cf8c884..c69ee4395e 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -191,10 +191,11 @@ unset($dbpasswd); $config = $cache->obtain_config(); $dss_seeded = false; -// Warn about install/ directory -if (file_exists($phpbb_root_path . 'install')) +// Disable board if the install/ directory is still present +if (file_exists($phpbb_root_path . 'install') && !defined('ADMIN_START')) { - trigger_error('REMOVE_INSTALL'); + $message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE'; + trigger_error($message); } ?> \ No newline at end of file -- cgit v1.2.1