<?php /********************************************************************************/ /* this file is part of: / diese Datei ist ein Teil von: */ /* tellmatic, the newslettermachine */ /* tellmatic, die Newslettermaschine */ /* 2006/7 by Volker Augustin, multi.art.studio Hanau */ /* Contact/Kontakt: info@tellmatic.org */ /* Homepage: www.tellmatic.org */ /* leave this header in file! */ /* diesen Header nicht loeschen! */ /* check Homepage for Updates and more Infos */ /* Besuchen Sie die Homepage fuer Updates und weitere Infos */ /********************************************************************************/ //link zumlogbuch f. sektion //$search_log['object']="adr"; <<--- should be set in section include file! if ($user_is_admin) { $LOGSC = new tm_LOG(); $logcount = $LOGSC->count($search_log); if ($logcount > 0) { $LogbookURLPara = tmObjCopy($mSTDURL); $LogbookURLPara->addParam("act", "log_list"); $LogbookURLPara->addParam("set", "search"); $LogbookURLPara->addParam("s_obj", $search_log['object']); $LogbookURLPara->addParam("s_edit_id", $search_log['edit_id']); $LogbookURLPara_ = $LogbookURLPara->getAllParams(); $_MAIN_OUTPUT .= " <a href=\"" . $tm_URL . "/" . $LogbookURLPara_ . "\" title=\"" . ___("Logbuch anzeigen") . "\">" . tm_icon("script.png", ___("Logbuch anzeigen") . " (" . $logcount . ")") . "</a>"; } }
} if (!file_exists($tm_datapath . "/.htaccess")) { $_MAIN_MESSAGE .= "<br><font size=2 color=red><b>" . sprintf(___("ACHTUNG! %s ist nicht Passwortgeschützt"), $tm_datapath) . "</b></font>"; } if (!file_exists($tm_logpath . "/.htaccess")) { $_MAIN_MESSAGE .= "<br><font size=2 color=red><b>" . sprintf(___("ACHTUNG! %s ist nicht Passwortgeschützt"), $tm_logpath) . "</b></font>"; } if (!file_exists($tm_tmppath . "/.htaccess")) { $_MAIN_MESSAGE .= "<br><font size=2 color=red><b>" . sprintf(___("ACHTUNG! %s ist nicht Passwortgeschützt"), $tm_tmppath) . "</b></font>"; } if (!file_exists($tm_reportpath . "/.htaccess")) { $_MAIN_MESSAGE .= "<br><font size=2 color=red><b>" . sprintf(___("ACHTUNG! %s ist nicht Passwortgeschützt"), $tm_reportpath) . "</b></font>"; } if ($logged_in) { //log $LOGS = new tm_LOG(); if (TM_LOG) { $LOGS->log(array("data" => array("id" => $LOGIN->USER['id'], "act" => $action), "object" => "usr", "action" => "usage")); } $_MAIN_DESCR = ___("Bitte aus dem Menü wählen."); switch ($action) { //default: default: require_once TM_INCLUDEPATH . "/Welcome.inc.php"; break; case 'Welcome': require_once TM_INCLUDEPATH . "/Welcome.inc.php"; break; //admin //admin case 'adr_testadressen':
$_MAIN_DESCR = ___("Logbuch"); $_MAIN_MESSAGE .= ""; if (!isset($offset)) { $offset = getVar("offset"); } if (empty($offset) || $offset < 0) { $offset = 0; } if (!isset($limit)) { $limit = getVar("limit"); } if (empty($limit)) { $limit = 25; } //sort und sorttype nach search verschoben $LOGS = new tm_LOG(); $log_id = getVar("log_id"); $set = getVar("set"); $val = getVar("val"); $doit = getVar("doit"); //wird per js an url angefuegt!!! confirm() if (!isset($search)) { $search = array(); } require_once TM_INCLUDEPATH . "/log_search.inc.php"; if ($set == "delete") { $delcount = $LOGS->count($search); if (!DEMO) { $LOGS->del($search); } $_MAIN_MESSAGE .= "<br>" . sprintf(___("%s Einträge aus dem Logbuch wurden gelöscht."), $delcount);
$_MAIN_OUTPUT .= "<div class=\"link_logbook_section\">"; if (!isset($search_log['object'])) { $_MAIN_OUTPUT .= "<br><b>...oops,no obj for log in {$act}</strong><br>"; $_MAIN_MESSAGE .= "<br><b>...oops,no obj for log in {$act}</strong><br>"; } $_MAIN_OUTPUT .= "<a href=\"" . $tm_URL . "/" . $LogbookURLPara_ . "\" title=\"" . ___("Logbuch anzeigen") . "\">" . tm_icon("script.png", ___("Logbuch anzeigen")) . " " . ___("Logbuch anzeigen") . " (" . $logcount . ")</a>"; $_MAIN_OUTPUT .= "</div>"; } } //show last loglines if (DEBUG && $user_is_admin) { $_MAIN_MESSAGE .= "<br><div class=\"log_summary\">"; $search_log['limit'] = 10; $search_log['sort_type'] = 1; $_MAIN_MESSAGE .= tm_icon("script.png", ___("Logbuch"), ___("Logbuch")) . " <b>" . sprintf(___("Die letzen %s Logbucheinträge"), $search_log['limit']) . ":</b>"; $LOGS = new tm_LOG(); $LOG = $LOGS->get(0, $search_log); $_MAIN_MESSAGE .= "<table style=\"width:100%; border:1px solid #cccccc\">"; $_MAIN_MESSAGE .= "<tbody>"; foreach ($LOG as $logentry) { $_MAIN_MESSAGE .= "<tr>"; $_MAIN_MESSAGE .= "<td>"; $_MAIN_MESSAGE .= display($logentry['date']); $_MAIN_MESSAGE .= "</td>"; $_MAIN_MESSAGE .= "<td>"; $_MAIN_MESSAGE .= display($LOGIN->getUserName($logentry['author_id'])); $_MAIN_MESSAGE .= "</td>"; $_MAIN_MESSAGE .= "<td>"; $_MAIN_MESSAGE .= display($logentry['object']); $_MAIN_MESSAGE .= "</td>"; $_MAIN_MESSAGE .= "<td>";