Пример #1
0
 protected function unlockPageForEdition()
 {
     AnwStorage::unlockPage($this->getoPage(), AnwCurrentSession::getSession());
 }
Пример #2
0
 private function doReauthForm()
 {
     self::debug("Showing reauth form.");
     $asParams = $_GET;
     $sFormAction = AnwUtils::alink($this->getName(), $asParams);
     $sDisplayName = AnwCurrentSession::getSession()->getUser()->getDisplayName();
     $this->out = $this->tpl()->reauthForm($sFormAction, $sDisplayName);
     $this->headJsOnload($this->tpl()->reauthFormJs());
     $this->output();
 }
Пример #3
0
 function resetReauth()
 {
     $oSession = AnwCurrentSession::getSession();
     $nTimeAuth = time();
     $asData = array("SessionTimeAuth" => $this->db()->inttosql($nTimeAuth));
     $sSessionId = $oSession->getId();
     $this->db()->do_update($asData, "session", "WHERE SessionId=" . $this->db()->strtosql($sSessionId));
 }