Example #1
0
 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;
 }
Example #2
0
	protected function doPostProcessActions()
	{
		if (
			$this->isBlockNeeded()
			&& $this->blockCurrentUser()
			&& CSecurityIPRule::IsActive()
		)
		{
			CSecurityIPRule::OnPageStart(true);
		}
	}
Example #3
0
 /**
  * @param array $originalPostVars
  */
 protected function doPostProccessActions($originalPostVars = array())
 {
     if ($this->currentUserHaveRightsForSkip() && $this->isNeedShowForm()) {
         $this->showForm($originalPostVars);
     } elseif ($this->isUserBlocked && CSecurityIPRule::IsActive()) {
         CSecurityIPRule::OnPageStart(true);
     }
 }