Skip to content

Instantly share code, notes, and snippets.

@michailw
Last active October 22, 2017 09:30
Show Gist options
  • Save michailw/4af04aa40a3b6a786ddf1c80ec4b5089 to your computer and use it in GitHub Desktop.
Save michailw/4af04aa40a3b6a786ddf1c80ec4b5089 to your computer and use it in GitHub Desktop.
<?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