Exemplo n.º 1
0
 private function checkBrute(WC_Warflag $flag)
 {
     $timestamp = WC_Warflags::getLastAttemptTime($this->user);
     $wait = $timestamp + self::TIMEOUT - time();
     if ($wait <= 0) {
         return false;
     }
     return $this->module->error('err_solution_block', GWF_Time::humanDuration($wait));
 }