Look n Feel of installer. Forced redirect to installer if it's present
[PHPCredLocker.git] / index.php
blob:a/index.php -> blob:b/index.php
--- a/index.php
+++ b/index.php
@@ -11,10 +11,16 @@
 define('_CREDLOCK',1);
 
 // Prevent Caching
-header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
-');
+header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
 header('Pragma: no-cache');
 header('Expires: Thu, 01 Jan 1970 00:00:00 GMT');
+
+
+// Force use of the installer if it's present
+if (is_dir (dirname(__FILE__)."/Install")){
+header("Location: Install/");
+die;
+}
 
 
 //error_reporting(E_ALL);