Beispiel #1
0
function GetSiteVersion()
{
    global $user;
    $serverAdmin = new MgServerAdmin();
    $serverAdmin->Open($user);
    $infoProps = $serverAdmin->GetInformationProperties();
    $versionProp = $infoProps->GetItem(MgServerInformationProperties::ServerVersion);
    $serverVersion = $versionProp->GetValue();
    return $serverVersion;
}
Beispiel #2
0
SetLocalizedFilesPath(GetLocalizationPath());
GetRequestParameters();
try {
    // Initialize web tier with the site configuration file.
    InitializeWebTier();
    // Set up user info
    $userInfo = new MgUserInformation();
    $userInfo->SetMgSessionId($sessionId);
    $userInfo->SetClientIp(GetClientIp());
    $userInfo->SetClientAgent(GetClientAgent());
    // Create a Site object and open the Site Server.
    $site = new MgSite();
    $site->Open($userInfo);
    $serverAdmin = new MgServerAdmin();
    $serverAdmin->Open($userInfo);
    $infoProps = $serverAdmin->GetInformationProperties();
    $versionProp = $infoProps->GetItem(MgServerInformationProperties::ServerVersion);
    $serverVersion = $versionProp->GetValue();
} catch (MgException $e) {
} catch (Exception $e) {
}
$templ = Localize(file_get_contents("../viewerfiles/ajaxviewerabout.templ"), $locale, GetClientOS());
printf($templ, $titleBar, $titleBar, $serverTitle, $serverVersion, $viewerTitle, $viewerVersion);
function GetParameters($params)
{
    global $sessionId, $locale;
    $sessionId = ValidateSessionId(GetParameter($params, 'SESSION'));
    $locale = ValidateLocaleString(GetParameter($params, 'LOCALE'));
}
function GetRequestParameters()
{