From 1ce0e2f40ce45b3d56d4413289aeb0386eb808fc Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 1 Aug 2006 04:46:18 +0000 Subject: [PATCH] r997: Adding some logic to the bottom that will redirect the user when he or she is not done with upgrade active sites --- install/global.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/install/global.php b/install/global.php index 98f3d65..28d0a90 100644 --- a/install/global.php +++ b/install/global.php @@ -79,7 +79,25 @@ $bugsys->load('installer', null); $bugsys->input_clean('mark', TYPE_UINT); -define('STOP_LINK', 'Go to the Administrative Control Panel'); +if ($bugsys->in['mark'] == STOP_MARK) +{ + if (!preg_match('#^upgrade([0-9]*)\.php$#i', ACTIVE_SITE, $matches)) + { + define('STOP_LINK', 'Go to the Administrative Control Panel'); + } + else + { + $temp = array_values($bugsys->versions); + if ($temp["$matches[1]"] != -1) + { + header("Location: upgrade.php"); + } + else + { + define('STOP_LINK', 'Go to the Administrative Control Panel'); + } + } +} /*=====================================================================*\ || ################################################################### -- 2.22.5