Exemplo n.º 1
0
        $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());
$ADMINTABLE1->AddRow('MySQL-Version', $db->mysqlversion());
$ADMINTABLE1->AddRow('GDLib-Version', _APCMS_getGDVersion());
$CONTENTINHALT .= $ADMINTABLE1->GetTable() . "<br />";
$ADMINTABLE2 = new APCMS_ADMINTABLE($_SESSION['APCMS']['TABLE']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['FGCOLOR']);
$ADMINTABLE2->AddRow('<strong>System-Information</strong>', '', 2);
$ADMINTABLE2->AddRow('Date', $ACTUALTIME_FORMATTED);
$ADMINTABLE2->AddRow('Install-Date', _APCMS_FormattedDateTime($akt_installdate));
$ADMINTABLE2->AddRow('Letztes Backup vom', $LASTBACKUPTIME);
$ADMINTABLE2->AddRow('Letztes Backup', $LASTBACKUPFILE);
    $ADMINTABLE2 = new APCMS_ADMINTABLE($_SESSION['APCMS']['TABLE']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['FGCOLOR']);
    $color1 = $_SESSION['APCMS']['HELPSYSTEM']['BGCOLOR'];
    $color2 = $_SESSION['APCMS']['HELPSYSTEM']['FGCOLOR'];
    $color = $color2;
    $RESULTTABLE = "\n\n<table width=\"100%\" border=\"1\" cellspacing=\"1\" cellpadding=\"2\">\n";
    $color = $color == $color1 ? $color2 : $color1;
    $RESULTTABLE .= "   <tr>\n";
    foreach ($_SESSION['POSTDATA']['queryreturn'][0] as $key => $val) {
        $RESULTTABLE .= "       <td bgcolor=\"" . $color . "\"><strong>" . _APCMS_SpecialChars($key) . "</strong></td>\n";
    }
    $RESULTTABLE .= "   </tr>\n";
    for ($a = 0; $a < $ROWNUM; $a++) {
        $color = $color == $color1 ? $color2 : $color1;
        $RESULTTABLE .= "   <tr>\n";
        foreach ($_SESSION['POSTDATA']['queryreturn'][$a] as $key => $val) {
            $RESULTTABLE .= "       <td bgcolor=\"" . $color . "\">" . (trim($val) == "" ? "&nbsp;" : _APCMS_SpecialChars(_APCMS_Truncate($val, 60, '...'))) . "</td>\n";
        }
        $RESULTTABLE .= "   </tr>\n";
    }
    $RESULTTABLE .= "</table>\n\n";
    $ADMINTABLE2->AddRow($RESULTTABLE, '', 2);
    $CONTENTINHALT .= $ADMINTABLE2->GetTable();
}
$QUERYRESULTS->assign("CONTENTTITEL", $CONTENTTITEL);
$QUERYRESULTS->assign("CONTENTINHALT", $CONTENTINHALT);
//
//  Die eigentliche Abarbeitung von Funktionen und Variablen, endet hier
//
/////////////////////////////////////////////////////////////////////////////////
//
//  Die eigentliche Ausgabe startet hier
Exemplo n.º 3
0
    echo $HTMLDATA;
} else {
    echo $DOCUMENT_OUT;
}
/** Debug-Informationen werden ab hier ausgegeben, falls gewünscht */
$DEBUGOUT = "";
if ($_SESSION['APCMS']['BOARD']['DEBUGGING'] == true) {
    $SAVEDQUERYS = $db->GetSavedQuerys();
    $DEBUGOUT .= "<br><br>" . $_LANGUAGE['debug_start'];
    $Benchmark->Stop();
    $DEBUGOUT .= "<br><br>" . $_LANGUAGE['page_loading_1'] . " " . $Benchmark->BenchmarkTime() . " " . $_LANGUAGE['page_loading_2'];
    $DEBUGOUT .= "<hr size=\"1\" noshade>";
    $DEBUGOUT .= "<br><b>" . $_LANGUAGE['needed_querys'] . "</b> " . $db->GetNumQuerys() . "<br>";
    $DEBUGOUT .= "<hr size=\"1\" noshade>";
    for ($sqc = 0; $sqc < count($SAVEDQUERYS); $sqc++) {
        $DEBUGOUT .= "<b>Query " . ($sqc + 1) . ":</b> " . _APCMS_SpecialChars($SAVEDQUERYS[$sqc]) . "<br>";
    }
    $DEBUGOUT .= "<hr size=\"1\" noshade>";
    $DEBUGOUT .= _APCMS_ShowRequirements();
    $DEBUGOUT .= _APCMS_DebugVarsOut();
    echo $DEBUGOUT;
}
//
//  Die eigentliche Ausgabe endet hier
//
/////////////////////////////////////////////////////////////////////////////////
@ob_flush();
@ignore_user_abort();
_APCMS_CheckAutoDelBackup();
_APCMS_CheckAutoBackup();
$db->close();