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
@@ -8,6 +8,8 @@
 */
 session_start();
 ob_start();
+error_reporting(0);
+
 define('_CREDLOCK',1);
 
 // Prevent Caching
@@ -28,28 +30,22 @@
 // Load the framework
 require_once 'lib/Framework/main.php';
 
+    if (  BTMain::getSessVar('Banned') ){
+	echo "Excessive authentication attempts";
+    die;
+    }
+
+
+
+
+// Force SSL if configured to do so
+if (BTMain::getConf()->forceSSL && !BTMain::getConnTypeSSL()){
+header("Location: " . BTMain::getConf()->SSLURL);
+die;
+}
+
 // pass off to the handler
 include_once 'lib/Handler.php';
 
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
 ?>