Exemplo n.º 1
0
 public static function checkAuth($username, $ip, $blid)
 {
     $res = BlocklandAuth::auth($username, $ip);
     if ($res !== false) {
         return $res == $blid;
     } else {
         return false;
     }
 }
Exemplo n.º 2
0
 public static function checkAuth($username, $ip, $blid)
 {
     $authData = BlocklandAuth::auth($username, $ip);
     if ($authData[0] == "success") {
         if ($authData[1] == $blid) {
             return true;
         } else {
             return false;
         }
     } else {
         return $authData;
     }
 }