[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ossec-cvs] ossec-hids: about.html (NEW) search.php (NEW) stats.php (NEW) [davelowe]
- To: ossec-cvs@xxxxxxxxx
- Subject: [ossec-cvs] ossec-hids: about.html (NEW) search.php (NEW) stats.php (NEW) [davelowe]
- From: OSSEC CVS <cvs-commit@xxxxxxxxx>
- Date: Thu, 9 Aug 2007 07:02:12 -0300 (ADT)
- Content-transfer-encoding: 8bit
Module name: ossec-hids
Changes by: davelowe 07/08/09 07:02:10
Added files:
about.html search.php stats.php
Log message:
Description: Initial Checkin
Reviewed by: DL
Bug:
--- NEW FILE: about.html ---
<!-- BEGIN ABOUT -->
<div id="layerSolo" class="layerSolo">
<div class=headerCenter>About OSSEC WUI</div>
<br />
OSSEC is a free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (version 2) as published by the FSF - Free Software Foundation.
<p>
OSSEC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
</p>
Copyright 2006-2007 Daniel B. Cid (dcid@xxxxxxxxx) / Dave Lowe (dlowe@xxxxxxxxx). All rights reserved.
</div>
<!-- END ABOUT -->
--- NEW FILE: search.php ---
<!-- BEGIN SEARCH -->
<div id="layerSolo" class="layerSolo">
<div class=headerCenter>Search for Events</div>
<?php
/* OS PHP init */
if (!function_exists('os_handle_start'))
{
echo "<b id='red'>You are not allowed direct access.</b><br />\n";
return(1);
}
/* Initializing some variables */
$u_final_time = time(0);
$u_init_time = $u_final_time - $ossec_search_time;
/* Search forms */
echo '
<form name="dosearch" method="post" action="index.php?f=search">
<table width=100%>
<tr valign="top">
<td>From:</td><td><input type="text" name="initdate" id="i_date_a" size="17"
value="'.date('Y-m-d H:i', $u_init_time).'" maxlength="16" class="formText" />
<img src="Images/calendar.gif" id="i_trigger" title="Date selector" class="formText" /></td>
<td>To:</td><td><input type="text" name="finaldate" id="f_date_a" size="17"
value="'.date('Y-m-d H:i', $u_final_time).'" maxlength="16" class="formText" />
<img src="Images/calendar.gif" id="f_trigger" title="Date selector" class="formText" />
</td></tr>
<tr><td>Minimum level:</td>
<td><select name="level" class="formText">
<option value="1">All</option>';
for($l_counter = 15; $l_counter >= 1; $l_counter--)
{
if($l_counter == $u_level)
{
echo '<option value="'.$l_counter.'" selected="selected">'.$l_counter.'</option>';
}
else
{
echo '<option value="'.$l_counter.'">'.$l_counter.'</option>';
}
}
echo '</select>';
echo "</td>";
/* Category */
echo '<td>Category:</td><td><select name="grouppattern" class="formText">';
echo '<option value="ALL" id="bluez">All categories</option>';
foreach($global_categories as $_cat_name => $_cat)
{
foreach($_cat as $cat_name => $cat_val)
{
$sl = "";
if($USER_group == $cat_val)
{
$sl = ' selected="selected"';
}
if(strpos($cat_name, "(all)") !== FALSE)
{
echo '<option id="bluez" '.$sl.
' value="'.$cat_val.'">'.$cat_name.'</option>';
}
else
{
echo '<option value="'.$cat_val.'" '.$sl.
'> '.$cat_name.'</option>';
}
}
}
echo '</select></td>';
/* Str pattern */
echo '</tr><tr><td>Pattern:</td>
<td><input type="text" name="strpattern" size="16" value="'.$u_pattern.'" class="formText" /></td>';
/* Log formats */
echo '<td>
Log formats: </td><td><select name="logpattern" class="formText">';
echo '<option value="ALL" id="bluez">All log formats</option>';
foreach($log_categories as $_cat_name => $_cat)
{
foreach($_cat as $cat_name => $cat_val)
{
$sl = "";
if($USER_log == $cat_val)
{
$sl = ' selected="selected"';
}
if(strpos($cat_name, "(all)") !== FALSE)
{
echo '<option id="bluez" '.$sl.
' value="'.$cat_val.'">'.$cat_name.'</option>';
}
else
{
echo '<option value="'.$cat_val.'" '.$sl.
'> '.$cat_name.'</option>';
}
}
}
echo '</select></td></tr>';
/* Srcip pattern */
echo '<tr><td>Srcip:</td>
<td><input type="text" name="srcippattern" size="16" class="formText" value="'.$u_srcip.'"/></td>';
/* Rule pattern */
echo '<td>User:</td><td>
<input type="text" name="userpattern" size="8" value="'.$u_user.'" class="formText" /></td>
</tr>';
/* Location */
echo '<tr>
<td>Location:</td>
<td><input type="text" name="locationpattern" size="16" class="formText" value="'.$u_location.'"/></td>';
/* Rule pattern */
echo '<td>Rule id:</td><td><input type="text" name="rulepattern" size="8" value="'.$u_rule.'" class="formText"/></td>
</tr>';
/* Max Alerts */
echo '<tr>
<td>Max Alerts:</td>
<td><input type="text" name="max_alerts_per_page" size="8" value="'.$ossec_max_alerts_per_page.'" class="formText" /></td>';
/* Final form */
echo '<td colspan=2><input type="submit" name="search" value="Search" class="button" class="formText" /></td>
</tr>';
echo '</table></form>';
echo '
<script type="text/javascript">
Calendar.setup({
button : "i_trigger",
inputField : "i_date_a",
ifFormat : "%Y-%m-%d %H:%M",
showsTime : true,
timeFormat : "24"
});
Calendar.setup({
button : "f_trigger",
inputField : "f_date_a",
ifFormat : "%Y-%m-%d %H:%M",
showsTime : true,
timeFormat : "24"
});
</script>
';
?>
</div>
<!-- END SEARCH -->
--- NEW FILE: stats.php ---
<!-- BEGIN STATS -->
<div id="layerSolo" class="layerSolo">
<div class=headerCenter>OSSEC Statistics</div>
</div>
<!-- END STATS -->
OSSEC home |
Main Index |
Thread Index
OSSEC project: www.ossec.net.
Mailling list information: http://www.ossec.net/en/mailing_lists.html.