Ejemplo n.º 1
0
 function GetUserForSession($paramSet)
 {
     try {
         global $previousSession;
         $site2 = new MgSite();
         $userInfo = new MgUserInformation();
         $userInfo->SetMgSessionId($previousSession);
         $site2->Open($userInfo);
         $userId = $site2->GetUserForSession();
         $site2->Close();
         return new Result($userId, "text/plain");
     } catch (MgException $e) {
         return new Result(get_class($e), "text/plain");
     } catch (SqliteException $s) {
         return new Result($s->GetExceptionMessage(), "text/plain");
     }
 }