Loading public/index.php +24 −5 Original line number Diff line number Diff line Loading @@ -32,14 +32,15 @@ if(isset($_REQUEST['password'])) { } if ( in_array($username,$bannedUsers) ) { die("u r b&"); $banned = true; //die("u r b&"); } include_once("../ldap-auth.php"); $isAuthd = ldapAuth($username, $password); if ($isAuthd == "sucs" && !$outsider) { if ($isAuthd == "sucs" && !$outsider && !$banned) { include_once("../doorkey.php"); //curl door $curl = curl_init(); Loading @@ -47,7 +48,8 @@ if ($isAuthd == "sucs" && !$outsider) { curl_setopt($curl,CURLOPT_RETURNTRANSFER,TRUE); curl_exec($curl); curl_close($curl); exit("door unlocked! (probably)"); $success = true; //exit("door unlocked! (probably)"); } ?> Loading Loading @@ -83,9 +85,27 @@ if ($isAuthd == "sucs" && !$outsider) { <h4 class="card-title">❌</h4> <p>You must be connected to GuestNET to use this service.</p> </div> '); } elif ($banned) { print(' <div class="card-body"> <h4 class="card-title">🔨</h4> <p>You are banned from the room.</p> </div> '); } } elif ($success) { print(' <div class="card-body"> <h4 class="card-title">✔️</h4> <p>Door unlocked!</p> </div> '); } else { } else { print(' <div class="card-body"> <h4 class="card-title">🔑</h4> Loading @@ -104,7 +124,6 @@ if ($isAuthd == "sucs" && !$outsider) { </div> </div> </div> </div> </body> Loading Loading
public/index.php +24 −5 Original line number Diff line number Diff line Loading @@ -32,14 +32,15 @@ if(isset($_REQUEST['password'])) { } if ( in_array($username,$bannedUsers) ) { die("u r b&"); $banned = true; //die("u r b&"); } include_once("../ldap-auth.php"); $isAuthd = ldapAuth($username, $password); if ($isAuthd == "sucs" && !$outsider) { if ($isAuthd == "sucs" && !$outsider && !$banned) { include_once("../doorkey.php"); //curl door $curl = curl_init(); Loading @@ -47,7 +48,8 @@ if ($isAuthd == "sucs" && !$outsider) { curl_setopt($curl,CURLOPT_RETURNTRANSFER,TRUE); curl_exec($curl); curl_close($curl); exit("door unlocked! (probably)"); $success = true; //exit("door unlocked! (probably)"); } ?> Loading Loading @@ -83,9 +85,27 @@ if ($isAuthd == "sucs" && !$outsider) { <h4 class="card-title">❌</h4> <p>You must be connected to GuestNET to use this service.</p> </div> '); } elif ($banned) { print(' <div class="card-body"> <h4 class="card-title">🔨</h4> <p>You are banned from the room.</p> </div> '); } } elif ($success) { print(' <div class="card-body"> <h4 class="card-title">✔️</h4> <p>Door unlocked!</p> </div> '); } else { } else { print(' <div class="card-body"> <h4 class="card-title">🔑</h4> Loading @@ -104,7 +124,6 @@ if ($isAuthd == "sucs" && !$outsider) { </div> </div> </div> </div> </body> Loading