瀏覽代碼

If config.php does not exist then redirect to the install.php.

Mark Crane 12 年之前
父節點
當前提交
db0ed197c5
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      login.php

+ 6 - 0
login.php

@@ -26,6 +26,12 @@
 include "root.php";
 include "root.php";
 require_once "includes/require.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
 //add multi-lingual support
 	echo "<!--\n";
 	echo "<!--\n";
 	require_once "core/login/app_languages.php";
 	require_once "core/login/app_languages.php";