Enforced IP Banning - See #10
[PHPCredLocker.git] / index.php
blob:a/index.php -> blob:b/index.php
--- a/index.php
+++ b/index.php
@@ -28,6 +28,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 +46,4 @@
 include_once 'lib/Handler.php';
 
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
 ?>