Last active
October 22, 2017 09:30
-
-
Save michailw/4af04aa40a3b6a786ddf1c80ec4b5089 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class A { | |
public function b($username, $password) | |
{ | |
$logged = $this->checkLogin($username, $password); | |
if (!$logged || $this->noOfLogins++ >= 3) { | |
echo "Konto zablokowane"; | |
return false; | |
} | |
if ($logged) { | |
$this->noOfLogins = 0; | |
} | |
return $logged; | |
} | |
} | |
// your code goes here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment