Ejemplo n.º 1
0
echo translate("ADEI Logs for: ") . date("c", $from) . " - " . date("c", $to) . "<br/><br/>";

$logs = adeiGetLogs($from, $to, $priority, $filter?$filter:false);

?><table class="logtable"><tr>
    <th><?echo translate("Time");?></th>
    <th><?echo translate("Setup");?></th>
    <th><?echo translate("Server");?></th>
    <th><?echo translate("Source");?></th>
    <th><?echo translate("Session");?></th>
    <th><?echo translate("PID");?></th>
    <th><?echo translate("Client");?></th>
    <th><?echo translate("Priority");?></th>
</tr></th><?
foreach($logs as $log) {
    $info = adeiGetLogInfo($log['logfile'], $log['filepos']);
    if ($filter) {
	if (($filter["db_server"])&&($info['GET']['db_server'] != $filter["db_server"])) continue;
    }
    echo "<tr>";
    echo "<td>" . ShowTime($log['time']) . "</td>";
    echo "<td><a href=\"" . Filter($log, 'setup') . "\">" . $log['setup'] . "</a></td>";
    echo "<td><a href=\"" . Filter($log, 'db_server', $info['GET']['db_server']) . "\">" . $info['GET']['db_server'] . "</a></td>";
    echo "<td><a href=\"" . Filter($log, 'source') . "\">" . $log['source'] . "</a></td>";
    echo "<td><a href=\"" . Filter($log, 'session') . "\">" . $log['session'] . "</a></td>";
    echo "<td><a href=\"" . Filter($log, 'pid') . "\">" . $log['pid'] . "</a></td>";
    echo "<td><a href=\"" . Filter($log, 'client') . "\">" . $log['client'] . "</a></td>";
    echo "<td>" . $log['priority'] . "</td>";
    echo "<tr><td colspan=\"7\"><a href=\"index.php?page=loginfo.php&logfile=" . $log['logfile'] . "&logpos=" . $log['filepos']  . "\">" . $log['message'] . "</a></td></tr>";
    
    echo "</tr>";
Ejemplo n.º 2
0
<?php

function ShowTime($tm)
{
    return $tm->format("F j, Y H:i:s.uP");
}
$logfile = $_REQUEST['logfile'];
$logpos = $_REQUEST['logpos'];
$info = adeiGetLogInfo($logfile, $logpos);
?>
<br/><table class="loginfo">
	<tr>
	    <th><?echo translate("Time");?></th>
	    <td><?echo ShowTime($info['time']);?></td>
	</tr>
	<tr>
	    <th><?echo translate("Setup");?></th>
	    <td><?echo $info['setup'];?></td>
	</tr>
	<tr>
	    <th><?echo translate("Source");?></th>
	    <td><?echo $info['source'];?></td>
	</tr>
	<tr>
	    <th><?echo translate("Session");?></th>
	    <td><?echo $info['session'];?></td>
	</tr>
	<tr>
	    <th><?echo translate("Priority");?></th>    
	    <td><?echo $info['priority'];?></td>
	</tr>