コード例 #1
0
    <strong>Spalten: </strong>' . $COLNUM . ' ' . ($COLNUM >= 2 ? "Spalten" : "Spalte") . ' (Tabellen-Felder)<br />
    <strong>Zeilen: </strong>' . $ROWNUM . ' ' . ($ROWNUM >= 2 ? "Zeilen" : "Zeile") . ' (Datensätze)', '', 2);
} elseif (!isset($_SESSION['POSTDATA'])) {
    $ADMINTABLE1->AddRow('
    <strong>Ein Reload ist aus Sicherheitsgründen nicht möglich!</strong><br />
    Die Ergebnismenge ist leer.    
    ', '', 2);
} else {
    $ADMINTABLE1->AddRow('
    <strong>Query: </strong>' . (isset($_SESSION['POSTDATA']) ? _APCMS_SpecialChars($_SESSION['POSTDATA']['QUERYSTRING']) : 0) . '<br />
    <strong>Zeit: </strong>' . (isset($_SESSION['POSTDATA']) ? $_SESSION['POSTDATA']['runtime'] : 0) . ' Sekunden<br />
    <strong>Anzahl veränderter Datensätze: </strong>' . $ROWNUM, '', 2);
}
$CONTENTINHALT .= $ADMINTABLE1->GetTable() . ($ROWNUM >= 1 && $COLNUM >= 1 ? "<br />" : "");
if (isset($_SESSION['POSTDATA']) && is_array($_SESSION['POSTDATA']['queryreturn']) && $ROWNUM >= 1 && $COLNUM >= 1) {
    $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";
コード例 #2
0
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.gnu.org/copyleft/gpl.html.                                |
// +----------------------------------------------------------------------+
// | Authors: Alexander Mieland <dma147 at mieland-programming dot de>    |
// +----------------------------------------------------------------------+
// $Header $
// +----------------------------------------------------------------------+
$CONTENTTITEL .= '&nbsp; &raquo; &nbsp;' . $_LANGUAGE['database_options'];
$CONTENTINHALT .= '';
$TITLE_LOCATION = $_LANGUAGE['admincenter'] . ' - ' . $_LANGUAGE['database_options'];
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> .: ' . $_LANGUAGE['database_options'] . ' :.</strong><br /><br />' . $_LANGUAGE['database_options_desc'], '', 2);
$CONTENTINHALT .= $ADMINTABLE1->GetTable() . "<br />";
$ADMINTABLE2 = new APCMS_ADMINTABLE($_SESSION['APCMS']['TABLE']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['FGCOLOR']);
$ADMINTABLE2->OpenForm('dboptform', $_SERVER['PHP_SELF'] . "?s=handler" . $_SESSION['SID2']);
$ADMINTABLE2->AddRow('<strong>' . $_LANGUAGE['do_querys_in_db'] . '</strong><br />
<span style="color:red">' . $_LANGUAGE['do_querys_in_db_desc'] . '</span>', '', 2);
$ADMINTABLE2->AddRow('<textarea rows="16" style="width:560px" name="NEW[sqlquery]">' . (isset($_SESSION['POSTDATA']) && trim($_SESSION['POSTDATA']['QUERYSTRING']) != "" ? $_SESSION['POSTDATA']['QUERYSTRING'] : "EXPLAIN SELECT * FROM {\$USERTABLE} WHERE `userid`='1';") . '</textarea>', '', 2);
$ADMINTABLE2->AddRow('<strong>' . $_LANGUAGE['following_vars_available'] . '</strong><br />
' . $_LANGUAGE['following_vars_available_desc'] . '<br />', '', 2);
$ADMINTABLE2->AddRow('&nbsp;<input type="hidden" name="s" value="handler">
                            <input type="hidden" name="action" value="makesqlquery">
                            <input type="hidden" name="FROM[s]" value="admin">
                            <input type="hidden" name="FROM[ainclude]" value="dbopts">
                            <input type="hidden" name="' . session_name() . '" value="' . session_id() . '">', '', 2);
$ADMINTABLE2->AddRow('<input type="submit" name="submit" value="' . $_LANGUAGE['DO_SQL'] . '">&nbsp;&nbsp;<input type="reset" name="reset" value="' . $_LANGUAGE['empty_query_field'] . '">', '', 2);
$ADMINTABLE2->CloseForm();
$CONTENTINHALT .= $ADMINTABLE2->GetTable();
unset($_SESSION['POSTDATA']);
コード例 #3
0
        $BACKUPFORM .= '<td style="background-color:' . $tdbgcolor . '" align="left"><span class="normal"><a href="' . $_SESSION['APCMS']['REL_URL'] . '/?s=admin&ainclude=backupopts&backup=' . $BACKUPS['NAME'][$bco] . '&download=1">' . $BACKUPS['NAME'][$bco] . '</a></span></td>';
        $BACKUPFORM .= '<td width="100" style="background-color:' . $tdbgcolor . '" align="right"><span class="normal">' . $BACKUPS['SIZE'][$bco] . '</span></td>';
        $BACKUPFORM .= '<td width="120" style="background-color:' . $tdbgcolor . '" align="right"><span class="normal">' . date("d.m.Y, H:i", $BACKUPS['TIME'][$bco]) . '</span></td>';
        $BACKUPFORM .= '<td width="55" style="background-color:' . $tdbgcolor . '" align="center"><span class="normal">';
        $BACKUPFORM .= "\t<a href=\"" . $_SESSION['APCMS']['REL_URL'] . "/?s=admin&ainclude=backupopts&backup=" . $BACKUPS['NAME'][$bco] . "&recover=1\"><img src=\"" . $_SESSION['APCMS']['STYLES_URL'] . "/" . $_SESSION['APCMS']['STYLE'] . "/images/icons/wiederherstellen.gif\" height=14 border=\"0\" valign=\"absmiddle\" align=\"middle\" title=\"" . $_LANGUAGE['alt_recover_backup'] . "\" alt=\"" . $_LANGUAGE['alt_recover_backup'] . "\"></a>";
        $BACKUPFORM .= '	<input type="checkbox" name="del[]" value="' . $BACKUPS['NAME'][$bco] . '"></span></td>';
        $BACKUPFORM .= '</tr>';
    }
    if ($tdbgcolor == $_SESSION['APCMS']['HELPSYSTEM']['BGCOLOR']) {
        $tdbgcolor = $_SESSION['APCMS']['HELPSYSTEM']['FGCOLOR'];
    } else {
        $tdbgcolor = $_SESSION['APCMS']['HELPSYSTEM']['BGCOLOR'];
    }
    $BACKUPFORM .= '<tr>';
    $BACKUPFORM .= '<td colspan="5" style="background-color:' . $tdbgcolor . '" align="right"><span class="normalbold"> 
						<input type="submit" name="delete" value="' . $_LANGUAGE['delete_button'] . '"> 
						</span></td>';
    $BACKUPFORM .= '</tr>';
    $BACKUPFORM .= '</form>';
    $BACKUPFORM .= '</table>';
} else {
    $BACKUPFORM .= '<table width="100%" border="0" cellspacing="1" cellpadding="2">';
    $BACKUPFORM .= '<tr>';
    $BACKUPFORM .= '<td style="background-color:' . $tdbgcolor . '" align="center"><span class="normalbold">' . $_LANGUAGE['no_backups'] . '</span></td>';
    $BACKUPFORM .= '</tr>';
    $BACKUPFORM .= '</table>';
}
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> .: ' . $_LANGUAGE['backup_opts'] . ' :.</strong><br /><br />' . $BACKUPFORM, '', 2);
$CONTENTINHALT .= $ADMINTABLE1->GetTable() . "";
コード例 #4
0
// +----------------------------------------------------------------------+
// | This source file is subject to version 2 of the GPL,                 |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.gnu.org/copyleft/gpl.html.                                |
// +----------------------------------------------------------------------+
// | Authors: Alexander Mieland <dma147 at mieland-programming dot de>    |
// +----------------------------------------------------------------------+
// $Header $
// +----------------------------------------------------------------------+
$CONTENTTITEL .= '&nbsp; &raquo; &nbsp;' . $_LANGUAGE['caching_options'];
$CONTENTINHALT .= '';
$TITLE_LOCATION = $_LANGUAGE['admincenter'] . ' - ' . $_LANGUAGE['caching_options'];
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>.: ' . $_LANGUAGE['caching_options'] . ' :.</strong><br /><br />' . $_LANGUAGE['caching_opts_description'], '', 2);
$CONTENTINHALT .= $ADMINTABLE1->GetTable() . "<br />";
$ADMINTABLE2 = new APCMS_ADMINTABLE($_SESSION['APCMS']['TABLE']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['FGCOLOR']);
$ADMINTABLE2->OpenForm('cacheform', $_SERVER['PHP_SELF'] . "?s=handler" . $_SESSION['SID2']);
$ADMINTABLE2->AddRow($_LANGUAGE['activate_caching'], '<input type="checkbox" name="NEW[cache_aktiv]" value="1"' . ($_SESSION['APCMS']['CONFIG']['cache_aktiv'] == 1 ? " checked" : "") . ' />');
$ADMINTABLE2->AddRow($_LANGUAGE['cache_timeout'], '<input style="width:220px" type="text" name="NEW[cache_aktinterval]" value="' . $_SESSION['APCMS']['CONFIG']['cache_aktinterval'] / 60 . '" />');
$ADMINTABLE2->AddRow($_LANGUAGE['reset_cache'], '<input type="checkbox" name="NEW[reset_cache]" value="1" />');
$ADMINTABLE2->AddRow('&nbsp;<input type="hidden" name="s" value="handler">
                            <input type="hidden" name="action" value="setcaching">
                            <input type="hidden" name="FROM[s]" value="admin">
                            <input type="hidden" name="FROM[ainclude]" value="cacheopts">
                            <input type="hidden" name="' . session_name() . '" value="' . session_id() . '">', '', 2);
$ADMINTABLE2->AddRow('<input type="submit" name="saveopts" value="' . $_LANGUAGE['save_settings'] . '">&nbsp;&nbsp;<input type="reset" name="reset" value="' . $_LANGUAGE['reset_formular'] . '">&nbsp;&nbsp;<input type="button" name="zurueck" value="' . $_LANGUAGE['history_back'] . '" OnClick="JavaScript:history.back();">', '', 2);
$ADMINTABLE2->CloseForm();
$CONTENTINHALT .= $ADMINTABLE2->GetTable();
unset($_SESSION['POSTDATA']);
コード例 #5
0
// | available through the world-wide-web at the following url:           |
// | http://www.gnu.org/copyleft/gpl.html.                                |
// +----------------------------------------------------------------------+
// | Authors: Alexander Mieland <dma147 at mieland-programming dot de>    |
// +----------------------------------------------------------------------+
// $Header $
// +----------------------------------------------------------------------+
$CONTENTTITEL .= '&nbsp; &raquo; &nbsp;Modul-Optionen';
$CONTENTINHALT .= '';
$TITLE_LOCATION = $_LANGUAGE['admincenter'] . ' - Modul-Optionen';
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>.: Modul-Optionen :.</strong><br /><br />
', '', 2);
$CONTENTINHALT .= $ADMINTABLE1->GetTable() . "<br />";
$ADMINTABLE2 = new APCMS_ADMINTABLE($_SESSION['APCMS']['TABLE']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['FGCOLOR']);
$ADMINTABLE2->OpenForm('langform', $_SERVER['PHP_SELF'] . "?s=handler" . $_SESSION['SID2']);
$ADMINTABLE2->AddRow('<b></b><br />', '');
$ADMINTABLE2->AddRow('<b></b><br />', '');
$ADMINTABLE2->AddRow('<b></b><br />', '');
$ADMINTABLE2->AddRow('<b></b><br />', '');
$ADMINTABLE2->AddRow('<b></b><br />', '');
$ADMINTABLE2->AddRow('&nbsp;<input type="hidden" name="s" value="handler">
                            <input type="hidden" name="action" value="setcaching">
                            <input type="hidden" name="FROM[s]" value="admin">
                            <input type="hidden" name="FROM[ainclude]" value="langopts">
                            <input type="hidden" name="' . session_name() . '" value="' . session_id() . '">', '', 2);
$ADMINTABLE2->AddRow('<input type="submit" name="saveopts" value="Einstellungen speichern...">&nbsp;&nbsp;<input type="reset" name="reset" value="Formular Zurücksetzen">&nbsp;&nbsp;<input type="button" name="zurueck" value="Zurück..." OnClick="JavaScript:history.back();">', '', 2);
$ADMINTABLE2->CloseForm();
$CONTENTINHALT .= $ADMINTABLE2->GetTable();
unset($_SESSION['POSTDATA']);
コード例 #6
0
}
$SELECTSTYLE .= '</select>';
$SELECTLANG = '<select name="NEW[language]" style="width:220px">';
$query = "SELECT `name`, `browsercode` FROM `apcms_" . $_SESSION['MYSQLDATA']['SUFFIX'] . "_languagepacks` ";
$dblanguages = $db->unbuffered_getAll_row($query);
for ($a = 0; $a < count($dblanguages); $a++) {
    if (isset($_SESSION['POSTDATA']['language']) && $dblanguages[$a][1] == $_SESSION['POSTDATA']['language']) {
        $SELECTLANG .= '<option value="' . $dblanguages[$a][1] . '" selected>' . $dblanguages[$a][0] . '</option>';
    } elseif (!isset($_SESSION['POSTDATA']['language']) && $dblanguages[$a][1] == $_SESSION['APCMS']['CONFIG']['language']) {
        $SELECTLANG .= '<option value="' . $dblanguages[$a][1] . '" selected>' . $dblanguages[$a][0] . '</option>';
    } else {
        $SELECTLANG .= '<option value="' . $dblanguages[$a][1] . '">' . $dblanguages[$a][0] . '</option>';
    }
}
$SELECTLANG .= '</select>';
$ADMINTABLE1 = new APCMS_ADMINTABLE($_SESSION['APCMS']['TABLE']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['FGCOLOR']);
$ADMINTABLE1->AddRow('<strong>Allgemeine Einstellungen</strong>', '', 2);
$ADMINTABLE1->OpenForm('optform', $_SERVER['PHP_SELF'] . "?s=handler" . $_SESSION['SID2']);
$ADMINTABLE1->AddRow('<strong>Titel der Seite</strong><br>Tragen Sie hier den Titel der Seite ein (max. 250 Zeichen)', '<input style="width:220px" type="text" name="NEW[title]" value="' . (isset($_SESSION['POSTDATA']['title']) && trim($_SESSION['POSTDATA']['title']) != "" ? _APCMS_trim($_SESSION['POSTDATA']['title']) : _APCMS_trim($_SESSION['APCMS']['CONFIG']['title'])) . '">');
$ADMINTABLE1->AddRow('<strong>Beschreibung der Seite</strong><br>Tragen Sie hier eine kurze Beschreibung der Seite ein (max. 250 Zeichen)', '<input style="width:220px" type="text" name="NEW[description]" value="' . (isset($_SESSION['POSTDATA']['description']) && trim($_SESSION['POSTDATA']['description']) != "" ? _APCMS_trim($_SESSION['POSTDATA']['description']) : _APCMS_trim($_SESSION['APCMS']['CONFIG']['description'])) . '">');
$ADMINTABLE1->AddRow('<strong>Zeitzone</strong><br>Wählen Sie hier die Zeitzone, in der der Server steht. Steht der Server bei einem Provider in Amerika, wählen Sie hier den Ort in Amerika, wo der Server steht.', $SELECTTIMEZONE);
$ADMINTABLE1->AddRow('<strong>Default-Style</strong><br>Wählen Sie hier das Default-Style (Design), das man zu sehen bekommt, wenn man nicht eingeloggt ist, oder sich als User noch kein Style selber ausgewählt hat.', $SELECTSTYLE);
$ADMINTABLE1->AddRow('<strong>Online-Timeout</strong><br>Stellen Sie hier ein, wie lange User als online gelten sollen, wenn sie keine Aktionen mehr ausführen. (in Minuten)', '<input style="width:220px" type="text" name="NEW[online_timeout]" value="' . (isset($_SESSION['POSTDATA']['online_timeout']) && $_SESSION['POSTDATA']['online_timeout'] >= 1 ? $_SESSION['POSTDATA']['online_timeout'] : round($_SESSION['APCMS']['CONFIG']['online_timeout'] / 60, 0)) . '">');
$ADMINTABLE1->AddRow('<strong>Anzahl der News im Portal</strong><br>Tragen Sie hier die ANzahl der News ein, die per default im Portal angezeigt werden sollen. Hat nur Effekt bei Usern, die sich das noch nicht selber im Profil eingestellt haben.', '<input style="width:220px" type="text" name="NEW[news_num]" value="' . (isset($_SESSION['POSTDATA']['news_num']) && $_SESSION['POSTDATA']['news_num'] >= 1 ? $_SESSION['POSTDATA']['news_num'] : $_SESSION['APCMS']['CONFIG']['news_num']) . '">');
$ADMINTABLE1->AddRow('&nbsp;<input type="hidden" name="s" value="handler">
                            <input type="hidden" name="action" value="save_globalpref">
                            <input type="hidden" name="FROM[s]" value="admin">
                            <input type="hidden" name="FROM[ainclude]" value="globalpref">
                            <input type="hidden" name="' . session_name() . '" value="' . session_id() . '">', '', 2);
$ADMINTABLE1->AddRow('<input type="submit" name="saveopts" value="Einstellungen speichern...">&nbsp;&nbsp;<input type="reset" name="reset" value="Formular Zurücksetzen">&nbsp;&nbsp;<input type="button" name="zurueck" value="Zurück..." OnClick="JavaScript:history.back();">', '', 2);
$ADMINTABLE1->CloseForm();
コード例 #7
0
$ADMINTABLE1 = new APCMS_ADMINTABLE($_SESSION['APCMS']['TABLE']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['FGCOLOR']);
$ADMINTABLE1->AddRow('<strong>.: Sprach-Optionen :.</strong><br /><br />
', '', 2);
$CONTENTINHALT .= $ADMINTABLE1->GetTable() . "<br />";
$SELLANG = $db->unbuffered_getAll_row("SELECT id, name, browsercode FROM apcms_dev_languagepacks");
$SELECTLANGBOX = "\n<select name=\"NEW[deflang]\" style=\"width:220px\">\n";
for ($a = 0; $a < count($SELLANG); $a++) {
    if ($_SESSION['APCMS']['CONFIG']['language'] == $SELLANG[$a][2]) {
        $selected = " selected";
    } else {
        $selected = "";
    }
    $SELECTLANGBOX .= "<option value=\"" . $SELLANG[$a][2] . "\"" . $selected . ">" . stripslashes($SELLANG[$a][1]) . "</option>\n";
}
$SELECTLANGBOX .= "</select>\n";
$ADMINTABLE2 = new APCMS_ADMINTABLE($_SESSION['APCMS']['TABLE']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['FGCOLOR']);
$ADMINTABLE2->OpenForm('langform', $_SERVER['PHP_SELF'] . "?s=handler" . $_SESSION['SID2']);
$ADMINTABLE2->AddRow('<b>Default-Sprache</b><br />Stellen Sie hier ein, welche Sprache per Default voreingestellt sein soll, wenn im Browser des Users keine Spracheinstellung vorgenommen wurde.', $SELECTLANGBOX);
$ADMINTABLE2->AddRow('<b></b><br />', '');
$ADMINTABLE2->AddRow('<b></b><br />', '');
$ADMINTABLE2->AddRow('<b></b><br />', '');
$ADMINTABLE2->AddRow('<b></b><br />', '');
$ADMINTABLE2->AddRow('&nbsp;<input type="hidden" name="s" value="handler">
                            <input type="hidden" name="action" value="setlangopts">
                            <input type="hidden" name="FROM[s]" value="admin">
                            <input type="hidden" name="FROM[ainclude]" value="langopts">
                            <input type="hidden" name="' . session_name() . '" value="' . session_id() . '">', '', 2);
$ADMINTABLE2->AddRow('<input type="submit" name="saveopts" value="Einstellungen speichern...">&nbsp;&nbsp;<input type="reset" name="reset" value="Formular Zurücksetzen">&nbsp;&nbsp;<input type="button" name="zurueck" value="Zurück..." OnClick="JavaScript:history.back();">', '', 2);
$ADMINTABLE2->CloseForm();
$CONTENTINHALT .= $ADMINTABLE2->GetTable();
unset($_SESSION['POSTDATA']);
コード例 #8
0
    $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->AddRow('reg. User', _APCMS_RegUsersNum());
$ADMINTABLE2->AddRow('User Online', $OnlineUserArray['useronline_onlinenum']);
$CONTENTINHALT .= $ADMINTABLE2->GetTable() . "<br />";
$ADMINTABLE3 = new APCMS_ADMINTABLE($_SESSION['APCMS']['TABLE']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['BGCOLOR'], $_SESSION['APCMS']['HELPSYSTEM']['FGCOLOR']);
$ADMINTABLE3->AddRow('<strong>Support-Information</strong>', '', 2);
$ADMINTABLE3->AddRow('APP - Another PHP Program', _APCMS_MakeHref('http://www.php-programs.de/', "http://www.php-programs.de/", "", "_blank"));
$ADMINTABLE3->AddRow('Support-Forum', _APCMS_MakeHref('http://www.php-programs.de/apboard/main.php', "http://www.php-programs.de/apboard/main.php", "", "_blank"));
$ADMINTABLE3->AddRow('Dokumentation', _APCMS_MakeHref($_SESSION['APCMS']['REL_URL'] . '/apcms_docs/', $_SESSION['APCMS']['REL_URL'] . "/apcms/apcms_docs/", "", "_blank"));
$CONTENTINHALT .= $ADMINTABLE3->GetTable();