public function onAuthorizeVisitor($sender, $ip) { if ($ip != "" && $this->array_wsp_banned_users[$ip] > 0) { WspBannedVisitors::resetBannedIP($ip); $this->table_ban->setAjaxRefreshAllTable(); } }
public function onClickUnblock($sender) { $this->captcha_error_obj->emptyObject(); if ($this->captcha->check()) { WspBannedVisitors::resetBannedIP($this->getRemoteIP()); $this->refreshPage(); } else { $error = new Label(__(ERROR_CAPTCHA)); $error->setColor("red"); $this->captcha_error_obj->add($error); } }