static function loginfalsemaxtimes() { $ip=front::ip(); $ftime=time() -3600; $event=new event; return $event->rec_count("event='loginfalse' and ip='$ip' and addtime>$ftime ") >5; }