db_Delete('dblog'); } $total = $sql -> db_Select("dblog", "*", "ORDER BY `dblog_datestamp` DESC", "no_where"); $query = "SELECT l.*, u.user_name FROM #dblog AS l LEFT JOIN #user AS u ON l.dblog_user_id = u.user_id ORDER BY l.dblog_datestamp DESC LIMIT $from,$amount"; $sql -> db_Select_gen($query); if(!is_object($gen)) { $gen = new convert; } $parms = $total.",".$amount.",".$from.",".e_SELF.'?fm=[FROM]'; $text .= "

".$tp->parseTemplate("{NEXTPREV={$parms}}")."

"; $text .= "
\n"; $text .= " \n"; while ($row = $sql -> db_Fetch()) { $datestamp = $gen->convert_date($row['dblog_datestamp'], 'short'); $image = get_log_img($row['dblog_type']); $text .= " \n"; $text .= " \n"; $text .= " \n"; $text .= " \n"; $text .= " \n"; $text .= " \n"; $text .= ($row['user_name']) ? " \n" : " \n"; $text .= " \n"; } $text .= "
  ".LAN_ADMINLOG_1." ".LAN_ADMINLOG_2." ".LAN_ADMINLOG_3." ".LAN_ADMINLOG_4." ".LAN_ADMINLOG_5."
{$image}{$datestamp}".$tp->toHtml($row['dblog_title'],FALSE,"defs")."".$tp->toHtml($row['dblog_remarks'],FALSE,"defs")."{$row['dblog_ip']}{$row['user_name']}{$row['dblog_user_id']}
\n"; $text .= "

".$tp->parseTemplate("{NEXTPREV={$parms}}")."
"; $ns->tablerender(LAN_ADMINLOG_0, $text); require_once("footer.php"); function get_log_img($log_type) { switch ($log_type) { case E_LOG_INFORMATIVE: return "".LAN_ADMINLOG_6.""; break; case E_LOG_NOTICE: return "".LAN_ADMINLOG_8.""; break; case E_LOG_WARNING: return "".LAN_ADMINLOG_10.""; break; case E_LOG_FATAL: return "".LAN_ADMINLOG_12.""; break; case E_LOG_PLUGIN; return "".LAN_ADMINLOG_6.""; break; } return $log_type; } function headerjs() { ?>