PHP-Syslog-NG header.inc.php

From ChekMate Security Group


<?
if ($host == "") { $host = "*"; }
if ($date == "") { $date = "*"; }
if ($priority == "") { $priority = "*"; }
if ($limit == "") { $limit = 1000; }
$message = urldecode($message);
?>
<form action="index.php" method="post" name="results">
<center>
<table width="0%" style="border-collapse: collapse" bordercolor="#111111" cellpadding="2" cellspacing="1" border="0">
<tr>
   <td height="23" align="right" nowrap><font size="2" face="Arial">Host</font>
   <td height="23" nowrap><font face="Arial">  <select name=host>
<?
 /*----------- Get Listing of All Hosts and make Drop down box --------------*/
 $XX = "data empty!";
 $aku = mysql_query("SELECT DISTINCT host from $dbTableName");
 echo "<option>*\n";
 while ($row = mysql_fetch_array($aku))

 {
  $vhost=$row["host"];
  if ($host == $vhost) {
    echo "<option selected>".$vhost."\n";
  } else {
    echo "<option>".$vhost."\n";
  }
}
?>
   </select></font>
   <td height="23" align="right" nowrap><font size="2" face="Arial">Priority</font>
   <td height="23" nowrap><font face="Arial">  <select name=priority>
<?
 /*----------- Get Listing of All Priorities and make Drop down box --------------*/
 $XX = "data empty!";
 $aku = mysql_query("SELECT DISTINCT priority from $dbTableName");
 echo "<option>*\n";
 while ($row = mysql_fetch_array($aku))
 {
  $vpriority=$row["priority"];
  if ($priority == $vpriority) {
    echo "<option selected>".$vpriority."\n";
  } else {
    echo "<option>".$vpriority."\n";
  }
 }
?>
  </select></font>
  <td height="23" align="right" nowrap><font size="2" face="Arial">Date</font>
  <td height="23" nowrap><font face="Arial">  <select name=date>
<?
 /*----------- Get Listing of All Dates and make Drop down box --------------*/
 $XX = "data empty!";
 $aku = mysql_query("SELECT DISTINCT date from $dbTableName order by date DESC");
 echo "<option>*\n";
 while ($row = mysql_fetch_array($aku))
 {
  $vdate=$row["date"];

  if ($date == $vdate) {
    echo "<option selected>".$vdate."\n";
  } else {
    echo "<option>".$vdate."\n";
  }
}
?>
  </select></font>
  <td height="23" align="right" nowrap><font size="2" face="Arial">Records per page</font>
  <td height="23" nowrap><font face="Arial">
  <select name=limit>
<?
if ($limit == 25) { echo "<option selected>25</option>"; } else { echo "<option>25</option>"; }
if ($limit == 50) { echo "<option selected>50</option>"; } else { echo "<option>50</option>"; }
if ($limit == 100) { echo "<option selected>100</option>"; } else { echo "<option>100</option>"; }
if ($limit == 200) { echo "<option selected>200</option>"; } else { echo "<option>200</option>"; }
if ($limit == 500) { echo "<option selected>500</option>"; } else { echo "<option>500</option>"; }
if ($limit == 1000) { echo "<option selected>1000</option>"; } else { echo "<option>1000</option>"; }
if ($limit == 5000) { echo "<option selected>5000</option>"; } else { echo "<option>5000</option>"; }
?>
  </select></font>
  <td height="22" align="right" nowrap><font size="2" face="Arial">Keywords</b></font>
<?
 echo "<td colspan=\"2\" height=\"22\" nowrap><font face=\"Arial\"><input name=\"message\" value=\"$message\" size=\"40\"></font></td>";
?>
  <td colspan="1" height="22" align="center" nowrap><font face="Arial"><input type="submit" value="Search"></td>
</tr>
</table>
  </center>
</form>