From c7a335db289f12f241ddefc6b68d24e26016b7b1 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 17 Dec 2002 23:59:37 +0000 Subject: [PATCH] Introduce check for existence of install/ and contrib/ git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3198 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/common.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/phpBB/common.php b/phpBB/common.php index 7f7b75bb43..1026b22a55 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -112,7 +112,7 @@ include($phpbb_root_path . 'config.'.$phpEx); if( !defined("PHPBB_INSTALLED") ) { - header("Location: install.$phpEx"); + header("Location: install/install.$phpEx"); exit; } @@ -181,6 +181,11 @@ while ( $row = $db->sql_fetchrow($result) ) $board_config[$row['config_name']] = $row['config_value']; } +if (file_exists('install') || file_exists('contrib')) +{ + message_die(GENERAL_MESSAGE, 'Please ensure both the install/ and contrib/ directories are deleted'); +} + // // Show 'Board is disabled' message if needed. //