Пример #1
0
 /**
  * Applies token's params to redirect the user
  * 
  * @return void
  */
 function applyParams()
 {
     // Save token expiration in the session
     CAppUI::$token_expiration = $this->getTokenExpiration();
     CAppUI::$token_restricted = $this->restricted == 1;
     CValue::setSessionAbs("token_expiration", CAppUI::$token_expiration);
     $params = $this->getParams();
     if (isset($params["tab"]) && empty($params["a"])) {
         $params["a"] = $params["tab"];
         unset($params["tab"]);
     }
     foreach ($params as $key => $value) {
         $_GET[$key] = $value;
         $_REQUEST[$key] = $value;
     }
 }