public static function SetActive($bActive = false, $end_time = 0) { if ($bActive) { if (!CSecurityIPRule::IsActive()) { RegisterModuleDependences("main", "OnPageStart", "security", "CSecurityIPRule", "OnPageStart", "2"); } } else { if (CSecurityIPRule::IsActive()) { UnRegisterModuleDependences("main", "OnPageStart", "security", "CSecurityIPRule", "OnPageStart"); } } self::$bActive = $bActive; }
protected function doPostProcessActions() { if ( $this->isBlockNeeded() && $this->blockCurrentUser() && CSecurityIPRule::IsActive() ) { CSecurityIPRule::OnPageStart(true); } }
/** * @param array $originalPostVars */ protected function doPostProccessActions($originalPostVars = array()) { if ($this->currentUserHaveRightsForSkip() && $this->isNeedShowForm()) { $this->showForm($originalPostVars); } elseif ($this->isUserBlocked && CSecurityIPRule::IsActive()) { CSecurityIPRule::OnPageStart(true); } }