mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
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:
parent
0fe8239f49
commit
c7a335db28
1 changed files with 6 additions and 1 deletions
|
@ -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.
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue