Beispiel #1
0
 static function query_string($action = '', $user = '')
 {
     /*
      * Function to create a query string for in an URL
      * $action		string		the action for which the nonce is made
      * $user		string		the user for whome the nonce is made
      */
     return self::KEY . '=' . Nonce::create($action, $user);
 }
 public function action_index()
 {
     $login = Session::getLogin();
     if (!$login) {
         throw new PermissionDeniedException();
     }
     $nonce = \Nonce::create($login);
     $url = Config::get('simple.system.url') . "?mod=guide&nonce=" . $nonce->getNonce();
     return new ControllerActionRedirect($url);
 }