Loading public/index.php +7 −1 Original line number Diff line number Diff line <?php $bannedUsers = array("vote","signup","cacti","video"); function ip_in_range($ip, $range) { if (strpos($range, '/') == false) { $range .= '/32'; Loading @@ -22,12 +24,16 @@ if (!ip_in_range($ipAddr, "137.44.10.128/25")){ } if(isset($_REQUEST['username'])) { $username = $_REQUEST['username']; $username = strtolower($_REQUEST['username']); } if(isset($_REQUEST['password'])) { $password = $_REQUEST['password']; } if ( in_array($username,$bannedUsers) ) { die("u r b&"); } include_once("../ldap-auth.php"); $isAuthd = ldapAuth($username, $password); Loading Loading
public/index.php +7 −1 Original line number Diff line number Diff line <?php $bannedUsers = array("vote","signup","cacti","video"); function ip_in_range($ip, $range) { if (strpos($range, '/') == false) { $range .= '/32'; Loading @@ -22,12 +24,16 @@ if (!ip_in_range($ipAddr, "137.44.10.128/25")){ } if(isset($_REQUEST['username'])) { $username = $_REQUEST['username']; $username = strtolower($_REQUEST['username']); } if(isset($_REQUEST['password'])) { $password = $_REQUEST['password']; } if ( in_array($username,$bannedUsers) ) { die("u r b&"); } include_once("../ldap-auth.php"); $isAuthd = ldapAuth($username, $password); Loading