set_body('

'.$logger_overview[$lang].'

'); if ($_GET[a]) { $offset_start=$_GET[a]; if (!ctype_digit($offset_start)) { unset($offset_start); } } if (isset($_POST['e']) AND isset($_POST['l'])) { $event_id=$_POST['e']; $level_id=$_POST['l']; } else{ $event_id=$_GET['e']; $level_id=$_GET['l']; } if (!ctype_digit($event_id) AND !ctype_digit($level_id)) { unset($level_id); unset($event_id); } $html->set_body('
 
'); if (!$offset_start) { $offset_start="0"; } if ($event_id === "none") { $event_id = null; } if ($level_id === "none") { $level_id = null; } $db->get_num_events($event_id,$level_id); $nume = $db->result->cnt; if ($offset_start>$nume) { $offset_start="0"; } $db->logger_get_events($event_id,$level_id, $offset_start,$lang); $result = $db->result; foreach ($result as $results) { if ($results[id_event]=="1" OR $results[id_event]=="3") { $ip_desc=$logger_f_ip[$lang]; } else { $ip_desc=""; } if ($results[id_level] == "3") { $col="main_row_b"; $f_color="style=\"color: red;\""; } else { $col="main_row_a"; $f_color=""; } $html->set_body(' '); } $html->set_body(''); // pagination $html->set_body('
'.$logger_f1[$lang].' '.$logger_f2[$lang].' '.$logger_f3[$lang].' '.$logger_f4[$lang].'
'.$results[event].' '.$results[log_time].' '.$results[level].' '.htmlspecialchars($ip_desc.$results[extra]).'
'); for($i=0;$i < $nume;$i=$i+300){ if ($i!=$offset_start) { if (isset($event_id)){ $e="&e=$event_id"; } if (isset($level_id)){ $l="&l=$level_id"; } $html->set_body(' ['.$i.'] '); } else { $html->set_body(' -'.$i.'- '); } } $html->set_body('
'); require_once("footer.php"); ?>