From 50b43a7cf7cb874ab16b31b3781296c512923767 Mon Sep 17 00:00:00 2001 From: kanoi Date: Mon, 24 Oct 2016 14:03:27 +1100 Subject: [PATCH] php - allow directly disabling web logins --- pool/base.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pool/base.php b/pool/base.php index ec419c75..1c12e703 100644 --- a/pool/base.php +++ b/pool/base.php @@ -479,8 +479,17 @@ session_start(); # include_once('db.php'); # +global $disable_login; +$disable_login = false; +if (file_exists('../pool/disable_login.php')) + include_once('../pool/disable_login.php'); +# function validUserPass($user, $pass, $twofa) { + global $disable_login; + if ($disable_login == true) + exit(0); + # $rep = checkPass($user, $pass, $twofa); if ($rep != null) $ans = repDecode($rep);