From c945f6e4362728bd1ab8bacdf61b2961855f9fae Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 5 Jan 2013 09:44:18 +0000 Subject: [PATCH] If config.php does not exist then redirect to the install.php. --- login.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/login.php b/login.php index 3549e5f984..a8fb23aba8 100644 --- a/login.php +++ b/login.php @@ -26,6 +26,12 @@ 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; + } + //add multi-lingual support echo "