while ($row = $db->fetch_object($_result)) { $_user[$row->id] = $row->name; } if (!isset($_REQUEST["pages"])) { $pages = round(($db->num_rows($db->query("SELECT id FROM " . SQLPREFIX . "faqadminlog")) + $perpage / 3) / $perpage, 0); } else { $pages = $_REQUEST["pages"]; } if (!isset($_REQUEST["page"])) { $page = 1; } else { $page = $_REQUEST["page"]; } $start = ($page - 1) * $perpage; $ende = $start + $perpage; $PageSpan = PageSpan("<a href=\"" . $_SERVER["PHP_SELF"] . $linkext . "&aktion=adminlog&pages=" . $pages . "&page=<NUM>\">", 1, $pages, $page); $result = $db->query("SELECT id, time, usr, text, ip FROM " . SQLPREFIX . "faqadminlog ORDER BY id DESC"); ?> <h2><?php print $PMF_LANG["ad_adminlog"]; ?> </h2> <table class="list"> <thead> <tr> <th class="list"><?php print $PMF_LANG["ad_categ_id"]; ?> </th> <th class="list"><?php print $PMF_LANG["ad_adminlog_date"];
*/ if (!defined('IS_VALID_PHPMYFAQ')) { header('Location: http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); exit; } $logging = new PMF_Logging(); if ($permission['adminlog'] && 'adminlog' == $action) { $perpage = 15; $pages = PMF_Filter::filterInput(INPUT_GET, 'pages', FILTER_VALIDATE_INT); $page = PMF_Filter::filterInput(INPUT_GET, 'page', FILTER_VALIDATE_INT, 1); if (is_null($pages)) { $pages = round(($logging->getNumberOfEntries() + $perpage / 3) / $perpage, 0); } $start = ($page - 1) * $perpage; $ende = $start + $perpage; $PageSpan = PageSpan("<a href=\"?action=adminlog&pages=" . $pages . "&page=<NUM>\">", 1, $pages, $page); $logging_data = $logging->getAll(); ?> <h2><?php print $PMF_LANG["ad_adminlog"]; ?> </h2> <table class="list"> <thead> <tr> <th class="list"><?php print $PMF_LANG["ad_categ_id"]; ?> </th> <th class="list"><?php print $PMF_LANG["ad_adminlog_date"];
if (!isset($_REQUEST["pages"])) { $anz = $db->num_rows($db->query($query)); $pages = ceil($anz / $perpage); if ($pages < 1) { $pages = 1; } } else { $pages = $_REQUEST["pages"]; } if (!isset($_REQUEST["page"])) { $page = 1; } else { $page = $_REQUEST["page"]; } $start = ($page - 1) * $perpage; $PageSpan = PageSpan("<a href=\"" . $_SERVER["PHP_SELF"] . $linkext . "&aktion=sessionsearch&page=<NUM>&pages=" . $pages . "\">", 1, $pages, $page); $result = $db->query($query); ?> <h2><?php print $topic; ?> </h2> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center"> <tr> <td align="right"><?php print $PageSpan; ?> </td> </tr> <tr bgcolor="#778899"> <td>
exit; } if ($permission['viewlog']) { printf('<header><h2>%s</h2></header>', $PMF_LANG['ad_menu_searchstats']); $perpage = 15; $pages = PMF_Filter::filterInput(INPUT_GET, 'pages', FILTER_VALIDATE_INT); $page = PMF_Filter::filterInput(INPUT_GET, 'page', FILTER_VALIDATE_INT, 1); $search = new PMF_Search($db, $Language); $searchesCount = $search->getSearchesCount(); $searchesList = $search->getMostPopularSearches($searchesCount + 1, true); if (is_null($pages)) { $pages = round((count($searchesList) + $perpage / 3) / $perpage, 0); } $start = ($page - 1) * $perpage; $ende = $start + $perpage; $PageSpan = PageSpan("<a href=\"?action=searchstats&pages=" . $pages . "&page=<NUM>\">", 1, $pages, $page); ?> <div id="ajaxresponse"></div> <table class="list" style="width: 100%"> <thead> <tr> <th><?php print $PMF_LANG['ad_searchstats_search_term']; ?> </th> <th><?php print $PMF_LANG['ad_searchstats_search_term_count']; ?> </th> <th><?php print $PMF_LANG['ad_searchstats_search_term_lang'];
print $PMF_LANG["ad_user_rights"]; ?> </th> <th class="list"><?php print $PMF_LANG["ad_user_action"]; ?> </th> </tr> </thead> <?php if ($pages > 1) { ?> <tfoot> <tr> <td colspan="4"><?php print PageSpan("<a href=\"" . $_SERVER["PHP_SELF"] . $linkext . "&aktion=user&page=<NUM>&pages=" . $pages . "\">", 1, $pages, $page); ?> </td> </tr> </tfoot> <?php } ?> <tbody> <?php $result = $db->query("SELECT id, name, realname, rights FROM " . SQLPREFIX . "faquser ORDER BY id"); $counter = 0; $displayCounter = 0; while (($row = $db->fetch_object($result)) && $displayCounter < $perpage) { $counter++; if ($counter <= $start) {