diff options
Diffstat (limited to 'phpBB/common.php')
-rw-r--r-- | phpBB/common.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/common.php b/phpBB/common.php index dd4b8f68fa..93e7fde673 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -106,6 +106,11 @@ if (defined('IN_CRON')) $phpbb_root_path = getcwd() . '/'; } +if (!file_exists($phpbb_root_path . 'config.' . $phpEx)) +{ + die("<p>The config.$phpEx file could not be found.</p><p><a href=\"$phpbb_root_path/install/index.$phpEx\">Click here to install phpBB</a></p>"); +} + require($phpbb_root_path . 'config.' . $phpEx); if (!defined('PHPBB_INSTALLED')) |