From 9a29268a7c8af912260068117c47c359a726894f Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 5 Jan 2013 09:48:19 +0000 Subject: [PATCH] Move the redirect before the require.php include. --- login.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/login.php b/login.php index a8fb23aba8..6d834bc1b4 100644 --- a/login.php +++ b/login.php @@ -24,14 +24,15 @@ Mark J Crane */ include "root.php"; -require_once "includes/require.php"; - //if config.php does not exist then redirect to the install.php. if (!file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php")){ header("Location: ".PROJECT_PATH."/resources/install.php"); exit; } +//adds multiple includes + require_once "includes/require.php"; + //add multi-lingual support echo "