Implemented 'Force SSL'
[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,6 +30,14 @@
 // 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);
@@ -38,24 +48,4 @@
 include_once 'lib/Handler.php';
 
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
 ?>