/** Anzeige des Standortes auf UserOnline */ $ONLINE_ANZEIGE = $_LANGUAGE['is_in_the'] . ' {#if#can_access_admin#}<a href="' . $_SESSION['APCMS']['REL_URL'] . '/index.' . $_SESSION['APCMS']['SUFFIX'] . '?s=admin"{#if#enable_helpsys#}' . _APCMS_HelpSystem($_LANGUAGE['admin_desc']) . '{#endif#enable_helpsys#}>{#endif#can_access_admin#}' . $_LANGUAGE['admincenter'] . '{#if#can_access_admin#}</a>{#endif#can_access_admin#}.'; /** Alle User-Online-Updates durchzühren (den User betreffend) */ _APCMS_UpdateOnlineUser($ONLINE_ANZEIGE); /** Prüfen ob Aktion "apcms" active, also eingeschalten ist */ if (!_APCMS_ActionIsActive('can_access_admin')) { _APCMS_MsgBox($_LANGUAGE['admin_is_deactivated'], $_LANGUAGE['admin_is_deactivated_desc'], $_SESSION['APCMS']['REL_URL'] . '/index.' . $_SESSION['APCMS']['SUFFIX'] . $_SESSION['SID1'], 3, 1, $_SESSION['APCMS']['TABLE']['WIDTH']); } /** Prüfen ob der User die Aktion "apcms" ausführen darf */ if (!_APCMS_UserAccess('can_access_admin')) { _APCMS_MsgBox($_LANGUAGE['no_access'], $_LANGUAGE['no_access_desc'], $_SESSION['APCMS']['REL_URL'] . '/index.' . $_SESSION['APCMS']['SUFFIX'] . $_SESSION['SID1'], 3, 1, $_SESSION['APCMS']['TABLE']['WIDTH']); } /** Include der Smarty-Klassen */ require_once $_SESSION['APCMS']['LIB_DIR'] . "/smarty-libs/Smarty.class." . $_SESSION['APCMS']['SUFFIX']; /** Neues Template starten */ $ADMINMAIN = _APCMS_StartNewTemplate(); $NAVIGATION = ''; ///////////////////////////////////////////////////////////////////////////////// // // Die eigentliche Abarbeitung von Funktionen und Variablen, beginnt hier // $CONTENTTITEL = $_LANGUAGE['admincenter']; $CONTENTINHALT = ''; $ainclude = ""; if (isset($_GET['ainclude']) && trim($_GET['ainclude']) != "") { $ainclude = str_replace("..", "", trim($_GET['ainclude'])); } if (isset($_POST['ainclude']) && trim($_POST['ainclude']) != "") { $ainclude = str_replace("..", "", trim($_POST['ainclude'])); } if (trim($ainclude) == "") {
$BOX->assign("NAV_CONTENT", stripslashes(chop(trim($erg)))); $BOX_C = $BOX->fetch('content.portal.navbox.html'); if ($BOXARRAY[$bcount]['side'] == 1) { $NAV_BOXES_LEFT .= $BOX_C; } else { $NAV_BOXES_RIGHT .= $BOX_C; } } } /** News-Boxen auslesen und anzeigen */ $query = "SELECT \r\n news.`id` AS newsid, \r\n news.`userid` AS userid, \r\n news.`publicname` AS publicname, \r\n news.`time` AS time, \r\n news.`titel` AS titel, \r\n news.`text` AS text, \r\n newskats.`katpic` AS katpic, \r\n newskats.`groups` AS newsgroups, \r\n kats.`groups` AS katgroups \r\n FROM \r\n `apcms_" . $_SESSION['MYSQLDATA']['SUFFIX'] . "_portal_news` AS news, \r\n `apcms_" . $_SESSION['MYSQLDATA']['SUFFIX'] . "_portal_newskats` AS newskats, \r\n `apcms_" . $_SESSION['MYSQLDATA']['SUFFIX'] . "_portal_newskats` AS kats \r\n WHERE \r\n news.`katid`=newskats.`id` \r\n AND \r\n newskats.`parentid`=kats.`id` \r\n AND \r\n newskats.`active`='1' \r\n ORDER BY \r\n news.`time` DESC \r\n LIMIT \r\n 0," . $_SESSION['APCMS']['news_num'] . " \r\n "; $newsselect = $db->unbuffered_getAll_row($query); $NEWSBOX_C = ""; for ($ncount = 0; $ncount < count($newsselect); $ncount++) { if (_APCMS_CanAccess(stripslashes(chop(trim($newsselect[$ncount][7])))) && _APCMS_CanAccess(stripslashes(chop(trim($newsselect[$ncount][8]))))) { $NEWSBOX = _APCMS_StartNewTemplate(); $NEWS_INFOS = 'written by ' . (_APCMS_ActionIsActive('show_userdetails') && _APCMS_UserAccess('show_userdetails') ? '<a href="' . $_SESSION['APCMS']['REL_URL'] . '/index.' . $_SESSION['APCMS']['SUFFIX'] . '?s=userdetails&userid=' . $newsselect[$ncount][1] . $_SESSION['SID2'] . '"' . _APCMS_HelpSystem("<b>UserDetails</b><br />Klicken Sie hier, um sich Einzelheiten über diesen User anzusehen..") . '>' : '') . htmlspecialchars(stripslashes(chop(trim($newsselect[$ncount][2])))) . (_APCMS_ActionIsActive('show_userdetails') && _APCMS_UserAccess('show_userdetails') ? '</a>' : '') . ' @ ' . date("d.m.Y, H:i", $newsselect[$ncount][3]) . ''; $NEWSBOX->assign("NEWS_TITEL", stripslashes(chop(trim($newsselect[$ncount][4])))); $NEWSBOX->assign("NEWS_TEXT", nl2br(stripslashes(chop(trim($newsselect[$ncount][5]))))); $NEWSBOX->assign("NEWS_INFOS", $NEWS_INFOS); $NEWSBOX->assign("shownewskatpic", chop(trim($newsselect[$ncount][6])) != "" ? "1" : ""); $NEWSBOX->assign("ICON_NEWS_KAT", stripslashes(chop(trim($newsselect[$ncount][6])))); $NEWSBOX_C .= $NEWSBOX->fetch('content.portal.newsbox.html'); } } /** Linke Navigation */ $PORTAL->assign("NAV_BOXES_LEFT", $NAV_BOXES_LEFT); /** Mittlerer Inhalt */ $PORTAL->assign("MIDDLE_BOXES", $NEWSBOX_C); /** Rechte Navigation */ $PORTAL->assign("NAV_BOXES_RIGHT", $NAV_BOXES_RIGHT);
// +----------------------------------------------------------------------+ // | APCMS v0.0.2 | // +----------------------------------------------------------------------+ // | Copyright (c) 2000- APP - Another PHP Program | // +----------------------------------------------------------------------+ // | 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 $ // +----------------------------------------------------------------------+ /** Include der Smarty-Klassen */ require_once $_SESSION['APCMS']['LIB_DIR'] . "/smarty-libs/Smarty.class." . $_SESSION['APCMS']['SUFFIX']; /** Neues Template starten */ $FOOTER = _APCMS_StartNewTemplate(); if (_APCMS_ActionIsActive('index_useronlinestats') && _APCMS_UserAccess('index_useronlinestats') && (isset($contentinclude) && $contentinclude == "index")) { $FOOTER->assign("useronline_on", 1); $FOOTER->assign("onlinetimeout_minutes", $onlinetimeout_minutes); $FOOTER->assign("useronline_onlinenum_formatted", $OnlineUserIndexStats['useronline_onlinenum_formatted']); $FOOTER->assign("useronline_onlineuser_formatted", $OnlineUserIndexStats['useronline_onlineuser_formatted']); } if (_APCMS_ActionIsActive('index_usertodayonline') && _APCMS_UserAccess('index_usertodayonline') && (isset($contentinclude) && $contentinclude == "index")) { $FOOTER->assign("usertodayonline_on", 1); $FOOTER->assign("usertodayonline_num_formatted", $TodayOnlineUserStats['usertodayonline_num_formatted']); $FOOTER->assign("usertodayonline_user_formatted", $TodayOnlineUserStats['usertodayonline_user_formatted']); } /* Ausgabe der HTML-Daten an den Browser */ $FOOTERCONTENT = $FOOTER->fetch('footer.full.html');
// +----------------------------------------------------------------------+ // | Copyright (c) 2000- APP - Another PHP Program | // +----------------------------------------------------------------------+ // | 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 $ // +----------------------------------------------------------------------+ /** Include der Smarty-Klassen */ require_once $_SESSION['APCMS']['LIB_DIR'] . "/smarty-libs/Smarty.class." . $_SESSION['APCMS']['SUFFIX']; /** Neues Template starten */ $QUERYRESULTS = _APCMS_StartNewTemplate(); ///////////////////////////////////////////////////////////////////////////////// // // Die eigentliche Abarbeitung von Funktionen und Variablen, beginnt hier // $CONTENTTITEL = 'Query-Ergebnis'; $CONTENTINHALT = ''; $ROWNUM = isset($_SESSION['POSTDATA']) && count($_SESSION['POSTDATA']['queryreturn']) >= 1 ? count($_SESSION['POSTDATA']['queryreturn']) : 0; $COLNUM = isset($_SESSION['POSTDATA']) && count($_SESSION['POSTDATA']['queryreturn'][0]) >= 1 ? count($_SESSION['POSTDATA']['queryreturn'][0]) : 0; 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']); if (isset($_SESSION['POSTDATA']) && is_array($_SESSION['POSTDATA']['queryreturn']) && $ROWNUM >= 1 && $COLNUM >= 1) { $ADMINTABLE1->AddRow(' <strong>Query: </strong>' . _APCMS_SpecialChars($_SESSION['POSTDATA']['QUERYSTRING']) . '<br /> <strong>Zeit: </strong>' . $_SESSION['POSTDATA']['runtime'] . ' Sekunden<br /> <strong>Spalten: </strong>' . $COLNUM . ' ' . ($COLNUM >= 2 ? "Spalten" : "Spalte") . ' (Tabellen-Felder)<br />
<?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ // +----------------------------------------------------------------------+ // | APCMS v0.0.2 | // +----------------------------------------------------------------------+ // | Copyright (c) 2000- APP - Another PHP Program | // +----------------------------------------------------------------------+ // | 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 $ // +----------------------------------------------------------------------+ /** Include der Smarty-Klassen */ require_once $_SESSION['APCMS']['LIB_DIR'] . "/smarty-libs/Smarty.class." . $_SESSION['APCMS']['SUFFIX']; $HEADERISLOADED = 1; /** Neues Template starten */ $HEADER = _APCMS_StartNewTemplate($TITLE_LOCATION); if (@file_exists($_SESSION['APCMS']['ETC_DIR'] . "/header.extra." . $_SESSION['APCMS']['SUFFIX'])) { $fp_exm = @fopen($_SESSION['APCMS']['ETC_DIR'] . "/header.extra." . $_SESSION['APCMS']['SUFFIX'], "r"); $EXTRAMETA = @fread($fp_exm, @filesize($_SESSION['APCMS']['ETC_DIR'] . "/header.extra." . $_SESSION['APCMS']['SUFFIX'])); @fclose($fp_exm); $HEADER->assign("EXTRAMETA", $EXTRAMETA); } /* Ausgabe der HTML-Daten an den Browser */ $HEADCONTENT = $HEADER->fetch('header.minimal.html');
/** 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 // ///////////////////////////////////////////////////////////////////////////////// // // Die eigentliche Ausgabe startet hier //
include $firstinclude; // // Die eigentliche Abarbeitung von Funktionen und Variablen, endet hier // ///////////////////////////////////////////////////////////////////////////////// // // Die Ausgabe wird hier zusammengebaut und in Variablen gespeichert // /** Header includen und anzeigen */ if (isset($_GET['noheadersnfooters']) && $_GET['noheadersnfooters'] == 1) { include $_SESSION['APCMS']['INC_DIR'] . "/header.minimal." . $_SESSION['APCMS']['SUFFIX']; } else { include $_SESSION['APCMS']['INC_DIR'] . "/header.full." . $_SESSION['APCMS']['SUFFIX']; } /** Neues Template starten */ $MAINOUT = _APCMS_StartNewTemplate(); $MAINOUT->assign("CONTENTTITEL", $CONTENTTITEL); $MAINOUT->assign("CONTENTINHALT", $CONTENT); /** Ausgabe der HTML-Daten an den Browser */ $MAINCONTENT = $MAINOUT->fetch('index.html'); /** Footer includen und anzeigen */ if (isset($_GET['noheadersnfooters']) && $_GET['noheadersnfooters'] == 1) { include $_SESSION['APCMS']['INC_DIR'] . "/footer.minimal." . $_SESSION['APCMS']['SUFFIX']; } else { include $_SESSION['APCMS']['INC_DIR'] . "/footer.full." . $_SESSION['APCMS']['SUFFIX']; } /** Die komplette Ausgabe befindet sich in der Variablen $DOCUMENT_OUT */ $DOCUMENT_OUT = $HEADCONTENT . $MAINCONTENT . $FOOTERCONTENT; } if (!isset($DOCUMENT_OUT) || trim($DOCUMENT_OUT) == "") { $DOCUMENT_OUT = "";
$ONLINE_ANZEIGE = '... schaut sich gerade an, welche {#if#useronline#}<a href="' . $_SESSION['APCMS']['REL_URL'] . '/index.' . $_SESSION['APCMS']['SUFFIX'] . '?s=useronline"{#if#enable_helpsys#}' . _APCMS_HelpSystem($_LANGUAGE['click_to_reload']) . '{#endif#enable_helpsys#}>{#endif#useronline#}' . $_LANGUAGE['user_online'] . '{#if#useronline#}</a>{#endif#useronline#} sind.'; /** Alle User-Online-Updates durchzühren (den User betreffend) */ _APCMS_UpdateOnlineUser($ONLINE_ANZEIGE); $TITLE_LOCATION = $_LANGUAGE['useronline']; /** Prüfen ob Aktion "apcms" active, also eingeschalten ist */ if (!_APCMS_ActionIsActive('useronline')) { _APCMS_MsgBox($_LANGUAGE['useronline_is_deactivated'], $_LANGUAGE['useronline_is_deactivated_desc'], $_SESSION['APCMS']['REL_URL'] . '/index.' . $_SESSION['APCMS']['SUFFIX'] . $_SESSION['SID1'], 3, 1, $_SESSION['APCMS']['TABLE']['WIDTH']); } /** Prüfen ob der User die Aktion "apcms" ausführen darf */ if (!_APCMS_UserAccess('useronline')) { _APCMS_MsgBox($_LANGUAGE['no_access'], $_LANGUAGE['no_access_desc'], $_SESSION['APCMS']['REL_URL'] . '/index.' . $_SESSION['APCMS']['SUFFIX'] . $_SESSION['SID1'], 3, 1, $_SESSION['APCMS']['TABLE']['WIDTH']); } /** Include der Smarty-Klassen */ require_once $_SESSION['APCMS']['LIB_DIR'] . "/smarty-libs/Smarty.class." . $_SESSION['APCMS']['SUFFIX']; /** Neues Template starten */ $UONLINE = _APCMS_StartNewTemplate(); ///////////////////////////////////////////////////////////////////////////////// // // Die eigentliche Abarbeitung von Funktionen und Variablen, beginnt hier // $CONTENTTITEL = $_LANGUAGE['useronline']; $CONTENTINHALT = ''; $query = "SELECT `zeit`,`ip`,`userid`,`publicname`,`onlineanzeige` FROM `apcms_" . $_SESSION['MYSQLDATA']['SUFFIX'] . "_user_online` ORDER BY `zeit` DESC"; $seluo = $db->unbuffered_getAll_row($query); $CONTENTINHALT .= '<table width="100%" border="0" cellspacing="1" cellpadding="2">'; $CONTENTINHALT .= ' <tr class="tC2L">'; $CONTENTINHALT .= ' <td width="160"><strong>' . $_LANGUAGE['user'] . '</strong></td>'; if (_APCMS_ActionIsActive('show_uo_location') && _APCMS_UserAccess('show_uo_location')) { $CONTENTINHALT .= ' <td><strong>' . $_LANGUAGE['location'] . '</strong></td>'; } $CONTENTINHALT .= ' <td width="100"><strong>' . $_LANGUAGE['last_activity'] . '</strong></td>';
// +----------------------------------------------------------------------+ // | Copyright (c) 2000- APP - Another PHP Program | // +----------------------------------------------------------------------+ // | 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 $ // +----------------------------------------------------------------------+ /** Include der Smarty-Klassen */ require_once $_SESSION['APCMS']['LIB_DIR'] . "/smarty-libs/Smarty.class." . $_SESSION['APCMS']['SUFFIX']; /** Neues Template starten */ $HANDLER = _APCMS_StartNewTemplate(); ///////////////////////////////////////////////////////////////////////////////// // // Die eigentliche Abarbeitung von Funktionen und Variablen, beginnt hier // $CONTENTTITEL = $_LANGUAGE['firstpage']; $CONTENTINHALT = ''; $BACKUPDIR = $_SESSION['APCMS']['TMP_DIR'] . "/backups"; if (isset($_SERVER['HTTP_REFERER']) && trim($_SERVER['HTTP_REFERER']) != "") { $REFERER = _APCMS_trim($_SERVER['HTTP_REFERER']); } if (!isset($REFERER) || trim($REFERER) == "") { $REFERER = $_SESSION['APCMS']['REL_URL'] . '/'; } if (!isset($_POST['action']) || trim($_POST['action']) == "") { $REDIRECT_URL = $REFERER;
/** Anzeige des Standortes auf UserOnline */ $ONLINE_ANZEIGE = $_LANGUAGE['has_just_logged_out']; $TITLE_LOCATION = $_LANGUAGE['logout']; } if (isset($_POST['dologin']) && is_numeric($_POST['dologin']) == 1) { $HEADER_LOCATION_STRING .= ' » <a href="' . $_SESSION['APCMS']['REL_URL'] . '/index.' . $_SESSION['APCMS']['SUFFIX'] . "" . $_SESSION['SID1'] . '">' . $_LANGUAGE['login'] . '</a>'; /** Anzeige des Standortes auf UserOnline */ $ONLINE_ANZEIGE = $_LANGUAGE['is_logging_in']; $TITLE_LOCATION = $_LANGUAGE['login']; } /** Alle User-Online-Updates durchzühren (den User betreffend) */ _APCMS_UpdateOnlineUser($ONLINE_ANZEIGE); /** Include der Smarty-Klassen */ require_once $_SESSION['APCMS']['LIB_DIR'] . "/smarty-libs/Smarty.class." . $_SESSION['APCMS']['SUFFIX']; /** Neues Template starten */ $LOGIN = _APCMS_StartNewTemplate(); ///////////////////////////////////////////////////////////////////////////////// // // Die eigentliche Abarbeitung von Funktionen und Variablen, beginnt hier // if (isset($_GET['delete']) && is_numeric($_GET['delete']) == 1) { _APCMS_SetCookie("APCMS[USERDATA]", "", time() - 99999); $query = "DELETE FROM `apcms_" . $_SESSION['MYSQLDATA']['SUFFIX'] . "_user_online` WHERE `sessid`='" . $_SESSION['sessid'] . "' OR `userid`='" . $_SESSION['APCMS']['USER']['userid'] . "'"; $delonline = $db->unbuffered_query($query); unset($_SESSION['APCMS']['USER']); unset($_SESSION['USER']); unset($_SESSION['LOGGEDIN']); $REDIRECT_URL = $_SESSION['APCMS']['REL_URL'] . "/" . $_SESSION['SID1']; $REDIRECT_TIME = 3; $LOGIN->assign("STATUSMSG", _APCMS_MsgBox($_LANGUAGE['logged_out'], $_LANGUAGE['logged_out_desc'], $REDIRECT_URL, $REDIRECT_TIME, 0, $_SESSION['APCMS']['TABLE']['WIDTH'])); }