protected function EventInvite() { if ($this->User_IsAuthorization()) { Router::LocationAction('/'); } $this->SetTemplateAction('invite'); if (isPost()) { /** * Проверяем валидность кода */ if ($this->Invite_CheckCode(getRequestStr('invite_code'), ModuleInvite::INVITE_TYPE_CODE)) { Router::Location($this->Invite_GetReferralLink(null, getRequestStr('invite_code'))); } else { $this->Message_AddError($this->Lang_Get('auth.invite.alerts.error_code'), $this->Lang_Get('common.error.error')); } } }