示例#1
0
// +----------------------------------------------------------------------+
// | Authors: Alexander Mieland <dma147 at mieland-programming dot de>    |
// +----------------------------------------------------------------------+
// $Header $
// +----------------------------------------------------------------------+
/** Anzeige des Standortes auf UserOnline */
$ONLINE_ANZEIGE = $_LANGUAGE['is_on_the'] . ' <a href="' . $_SESSION['APCMS']['REL_URL'] . '/index.' . $_SESSION['APCMS']['SUFFIX'] . '"{#if#enable_helpsys#}' . _APCMS_HelpSystem($_LANGUAGE['click_to_firstpage']) . '{#endif#enable_helpsys#}>' . $_LANGUAGE['firstpage'] . '</a>.';
/** Alle User-Online-Updates durchzühren (den User betreffend) */
_APCMS_UpdateOnlineUser($ONLINE_ANZEIGE);
$TITLE_LOCATION = $_LANGUAGE['firstpage'];
/** UserOnline-Statistik für index-seite */
if (_APCMS_ActionIsActive('index_useronlinestats') && _APCMS_UserAccess('index_useronlinestats') && (isset($contentinclude) && $contentinclude == "index")) {
    $OnlineUserIndexStats = _APCMS_GetUserOnline('indexstats');
}
if (_APCMS_ActionIsActive('index_usertodayonline') && _APCMS_UserAccess('index_usertodayonline') && (isset($contentinclude) && $contentinclude == "index")) {
    $TodayOnlineUserStats = _APCMS_GetUserOnline('indextodayonline');
}
/** Include der Smarty-Klassen */
require_once $_SESSION['APCMS']['LIB_DIR'] . "/smarty-libs/Smarty.class." . $_SESSION['APCMS']['SUFFIX'];
/** Neues Template starten */
$INDEX = _APCMS_StartNewTemplate();
/////////////////////////////////////////////////////////////////////////////////
//
//  Die eigentliche Abarbeitung von Funktionen und Variablen, beginnt hier
//
$CONTENTTITEL = $_LANGUAGE['firstpage'];
$CONTENTINHALT = 'ein test';
$INDEX->assign("CONTENTTITEL", $CONTENTTITEL);
$INDEX->assign("CONTENTINHALT", $CONTENTINHALT);
//
//  Die eigentliche Abarbeitung von Funktionen und Variablen, endet hier
$NEWPACMSVERSION = '';
$NEWVERSION = '';
$vstatus = array();
if ($check_version == 1) {
    $vstatus = _APCMS_GetStatusCodeFromUrl($VFILE);
    $versionstxt = $vstatus['html'];
    $match = array();
    preg_match("`([\\s]*(APCMS)[\\s]*)([0-9\\.]*)([\\s]*)`i", $versionstxt, $match);
    if (isset($match[3]) && $match[3] != "") {
        $NEWPACMSVERSION = $match[3];
    }
    if (version_compare(_APCMS_version(), $NEWPACMSVERSION) == -1) {
        $NEWVERSION = _APCMS_MakeHref("http://www.php-programs.de", _APCMS_MakeImg($_SESSION['APCMS']['STYLES_URL'] . "/" . $_SESSION['APCMS']['STYLE'] . "/images/gfx/newversion.gif", 'Neue Version verfügbar!!!'), "APCMS-Homepage", "_blank");
    }
}
$OnlineUserArray = _APCMS_GetUserOnline('indexstats');
if (!($lastbackup = _APCMS_GetLastBackup())) {
    $LASTBACKUPTIME = "<span style=\"color:red\"><b><blink>Noch kein Backup!</blink></b></span>";
    $LASTBACKUPFILE = "<span style=\"color:red\"><b>--</b></span>";
} elseif ($lastbackup['time'] <= $akt_time - 604800) {
    $LASTBACKUPTIME = "<span style=\"color:red\"><blink>" . _APCMS_FormattedDateTime($lastbackup['time']) . "</blink></span>";
    $LASTBACKUPFILE = "<span style=\"color:red\">" . _APCMS_SpecialChars($lastbackup['file']) . "</span>";
} else {
    $LASTBACKUPTIME = _APCMS_FormattedDateTime($lastbackup['time']);
    $LASTBACKUPFILE = _APCMS_SpecialChars($lastbackup['file']);
}
require_once $_SESSION['APCMS']['CLASS_DIR'] . "/apcms_admintable.class." . $_SESSION['APCMS']['SUFFIX'];
$ADMINTABLE1 = new APCMS_ADMINTABLE($_SESSION['APCMS']['TABLE']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['FGCOLOR']);
$ADMINTABLE1->AddRow('<strong>Versions-Information</strong>', '', 2);
$ADMINTABLE1->AddRow('<strong>APCMS-Version</stron>', ($NEWVERSION != "" ? $NEWVERSION . "&nbsp; &nbsp;" : "") . ' <strong>' . _APCMS_version() . '</stron>');
$ADMINTABLE1->AddRow('PHP-Version', phpversion());