From 1c145bf6bdfcb65340567409b75e66d1495b506f Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 11 Feb 2002 13:05:08 +0000 Subject: [PATCH] Prevent upgrade being run standalone from install if PHPBB_INSTALLED present in config. git-svn-id: file:///svn/phpbb/trunk@2088 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/upgrade.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpBB/upgrade.php b/phpBB/upgrade.php index dc50e9e65b..4d81eed295 100644 --- a/phpBB/upgrade.php +++ b/phpBB/upgrade.php @@ -29,6 +29,12 @@ if ( !defined('INSTALLING') ) include('config.'.$phpEx); include('includes/constants.'.$phpEx); include('includes/functions.'.$phpEx); + + if( defined("PHPBB_INSTALLED") ) + { + header("Location: index.$phpEx"); + exit; + } } //