/** * Checks to see if this account is security locked * * @param $username * * @param $ip_address * * @return bool */ public function IsSecurityLocked($username, $ip_address) { if ($this->ValidUsername($username)) { $class = new Security(); if ($class->BruteProtection($this->MatchUsername($username), $ip_address)) { return true; } } return false; }
/** * What we do on construct */ public function __construct() { parent::__construct(); $this->database = new DatabaseSecurityEmail(); }