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
This commit is contained in:
Paul S. Owen 2002-12-17 23:59:37 +00:00
parent 0fe8239f49
commit c7a335db28

View file

@ -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.
//