***********************
** FILE NAME : log.php
** SYSTEM NAME : Gnucomo - Gnu Computer Monitoring
-** VERSION NUMBER : $Revision: 1.5 $
+** VERSION NUMBER : $Revision: 1.6 $
**
** DESCRIPTION : Logs page
**
/*****************************
$Log: log.php,v $
- Revision 1.5 2003-08-11 17:59:17 arjen
+ Revision 1.6 2005-06-04 07:18:26 arjen
+ Added a view for the log analysis with a link from the log page.
+
+ Revision 1.5 2003/08/11 17:59:17 arjen
BUGFIX: Convert special characters for HTML (<, >, and &) into
their entities.
******************************/
-// RCSID = "$Id: log.php,v 1.5 2003-08-11 17:59:17 arjen Exp $";
+// RCSID = "$Id: log.php,v 1.6 2005-06-04 07:18:26 arjen Exp $";
ini_set('include_path', '.:./classes:../phpclasses');
// Show the log for one day only.
- $res = pg_exec($this->database, "SELECT object_timestamp, servicecode, rawdata FROM log "
+ $res = pg_exec($this->database, "SELECT logid, object_timestamp, servicecode, rawdata FROM log "
."WHERE objectid = CAST('" . $_GET['oid'] . "' AS BIGINT)
AND date_trunc('day', object_timestamp)='" . date('Y-m-d', $logday) . "'
ORDER BY object_timestamp, logid");
$log = pg_fetch_object($res, $row);
?>
<tr><td class='time'>
- <?php echo $log->object_timestamp?>
+ <a target='_new' href='logadv.php?logid=<?php echo $log->logid?>'>
+ <?php echo $log->object_timestamp?>
+ </a>
</td><td>
<?php echo $log->servicecode?>
</td><td>