Esempio n. 1
0
function Main()
{
    CheckForNewAlert();
    CheckForNewVersion();
}
if ($nsProduct->LICENSE != 3 && !$nsUser->SUPER_USER) {
    $nsProduct->Redir("default", "", "admin");
}
/////////////////////////////////////////////
///////// require libraries here
/////////////////////////////////////////////
///////// prepare any variables
$PageTitle = $Lang['Title'];
$nsLang->TplInc("inc/user_welcome");
$ProgPath[0]['Name'] = $Lang['Administr'];
$ProgPath[0]['Url'] = getURL("admin", "", "admin");
$ProgPath[1]['Name'] = $Lang['Title'];
$ProgPath[1]['Url'] = getURL("versioncheck", "", "admin");
$MenuSection = "admin";
$ConnectionFailed = false;
$NewVersion = CheckForNewVersion();
if (!$ConnectionFailed) {
    if (CompareVersions($NewVersion, $nsProduct->VERSION) == 1) {
        $Logs->Msg("<span style=\"font-size:14px;color:#000000;font-weight:bold;font-family:Arial;\">" . $Lang['LatestVersion'] . $NewVersion . "</span><br>" . $Lang['NewVersionAvail']);
    }
    if (CompareVersions($NewVersion, $nsProduct->VERSION) == -1) {
        $Logs->Err($Lang['Fun']);
    }
    if (CompareVersions($NewVersion, $nsProduct->VERSION) == 0) {
        $Logs->Msg($Lang['NoNew']);
    }
}
/////////////////////////////////////////////
///////// call any process functions
/////////////////////////////////////////////
///////// display section here