#include <infodrom.style>
#include <linux.style>
#include <db.style>
#include <addresses.inc>

<define-tag size_report>-2</define-tag>
#include "security.inc"

<page title="Linux-Security">

<blockquote>

<p>These are security incidents that were reported publically and of
which I (Joey) am aware of.  This page contains all known incidents.
If I should miss an advisory, please drop me a <a
href="mailto:<joey mail>">mail</a> containing the proper
URL.

<p>Please note that this is a private service which costs time to
maintain.

</blockquote>

<?
  if ($vendor) {
    $vendor = explode (":", $vendor);
  } else {
    $vendor = $allvendors;
  }
  if (count ($vendor)) {
    sort ($vendor);
  }
?>

<center>
<table cellpadding=1 cellspacing=0 border=0>
<tr bgcolor="<colh>">
  <th><ifont><font size="-1">Date</font></ifont></th>
  <th><ifont><font size="-1">Incidence</font></ifont></th>
<?
  for ($i=0; $i < count ($vendor); $i++) {
    printf ('<th><ifont><font size="<size_title>">%s</font></ifont></th>', $vendor[$i]);
  }
?>
</tr>

<?
  pg_exec ($dbh, "SET DateStyle = 'ISO'") or die("Datenbank-Abfrage!");

  $query = "SELECT * FROM incident ORDER by date,subject";
  $sth = pg_exec ($dbh, $query); // or die("Datenbank-Abfrage!");

  $color = "<cold>";
  for ($nr=0; $nr < pg_NumRows ($sth); $nr++) {
    $row = pg_fetch_array ($sth, $nr);

    $report = fixed ($row['id'], array());

    $color = $color == "<cold>"?"<coln>":"<cold>";

    print format_incident ($vendor, $report, $row, $color);
  }

?>

</table>
</center>

</page>

# Local variables:
# mode: indented-text
# mode: auto-fill
# end:
