Explorar o código

Move the redirect before the require.php include.

Mark Crane %!s(int64=12) %!d(string=hai) anos
pai
achega
68f959b1d1
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      login.php

+ 3 - 2
login.php

@@ -24,14 +24,15 @@
 	Mark J Crane <[email protected]>
 	Mark J Crane <[email protected]>
 */
 */
 include "root.php";
 include "root.php";
-require_once "includes/require.php";
-
 //if config.php does not exist then redirect to the install.php.
 //if config.php does not exist then redirect to the install.php.
 	if (!file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php")){
 	if (!file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php")){
 		header("Location: ".PROJECT_PATH."/resources/install.php");
 		header("Location: ".PROJECT_PATH."/resources/install.php");
 		exit;
 		exit;
 	}
 	}
 
 
+//adds multiple includes
+	require_once "includes/require.php";
+
 //add multi-lingual support
 //add multi-lingual support
 	echo "<!--\n";
 	echo "<!--\n";
 	require_once "core/login/app_languages.php";
 	require_once "core/login/app_languages.php";