[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ossec-dev] Web UI XHTML Validation Patch
- To: ossec-dev@xxxxxxxxxxxxxxxx
- Subject: [ossec-dev] Web UI XHTML Validation Patch
- From: "Chris Abernethy" <brownoxford@xxxxxxxxx>
- Date: Mon, 24 Sep 2007 13:35:18 -0400
- Authentication-results: mx.google.com; spf=pass (google.com: domain of brownoxford@xxxxxxxxx designates 64.233.162.225 as permitted sender) smtp.mail=brownoxford@xxxxxxxxx; dkim=pass (test mode) header.i=@xxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=0vYQhcNdQlbq96JbfZCuTja3fq9UI2n38vhgvT8yc3o=; b=SQUGS79KrRqI9rWz1eEylYDWdoFNs6+xTqJ9pM69uEQPruJSxjgoDXdtoPpuL0gUjajoNmqEITvxkzO5u1m1gCqPPfuxJcJqiPTJwFmPznEWjZzkewXg5X7Ql/u/rOoJiAttccnJOUve+G0eStjC/OioQv7+qr9KeYkLSXouzEc=
The attached patch against ossec-wui v0.2 fixes some XHTML validation issues. Some issues still remain in the search results page, but are related to a bug that uses the text '(none)' in the ID field of some elements when no source ID is present.
--Chris
Index: /opt/software/ossec/htdocs/css/css.css
===================================================================
--- /opt/software/ossec/htdocs/css/css.css (revision 13)
+++ /opt/software/ossec/htdocs/css/css.css (working copy)
@@ -76,10 +76,9 @@
line-height: 18px;
border-bottom: 1px solid #AAAAB0;
}
-#red {color: #CF0025}
-#bluez {color: #00486F}
-#green {color: green}
-#black {color: black}
+.red {color: #CF0025}
+.bluez {color: #00486F}
+.black {color: black}
a:link,
a:visited {
text-decoration: none;
@@ -236,7 +235,7 @@
span.asmall {
font-size: 10px;
}
-span.statssmall {
+div.statssmall {
font-size: 12px;
}
a.asmall {
Index: /opt/software/ossec/htdocs/index.php
===================================================================
--- /opt/software/ossec/htdocs/index.php (revision 13)
+++ /opt/software/ossec/htdocs/index.php (working copy)
@@ -46,7 +46,7 @@
</head>
<body>
-<br>
+<br />
<?php
@@ -163,7 +163,7 @@
}
break;
default:
- echo '<b id="red">Invalid argument.</b>';
+ echo '<b class="red">Invalid argument.</b>';
return(1);
}
Index: /opt/software/ossec/htdocs/lib/os_lib_alerts.php
===================================================================
--- /opt/software/ossec/htdocs/lib/os_lib_alerts.php (revision 13)
+++ /opt/software/ossec/htdocs/lib/os_lib_alerts.php (working copy)
@@ -74,18 +74,18 @@
$alert_list[0]{'srcips_total'}{$alert{'srcip'}}.
'\' style="display: block">');
- fwrite($fp, "<ul class=\"alert\"><b>".$al_date
+ fwrite($fp, "<ul class=\"alert\"><li><b>".$al_date
.'</b> Rule Id: <a
href="http://www.ossec.net/wiki/index.php/Rule:'.$alert{'id'}.'">'
.$alert{'id'}.'</a>'
- ." level: ".$alert{'level'}."\n<br />");
- fwrite($fp, "<b>Location: </b>".$alert{'location'});
+ ." level: ".$alert{'level'}."</li>\n");
+ fwrite($fp, "<li><b>Location: </b>".$alert{'location'}."</li>");
if($alert{'srcip'} != "(none)")
{
- fwrite($fp,"<br /><b>Src IP</b>: ".$alert{'srcip'});
+ fwrite($fp,"<li><b>Src IP</b>: ".$alert{'srcip'}."</li>");
}
fwrite($fp,
- '<br /><b>'.$alert{'description'}.'</b>'.
+ '<li><b>'.$alert{'description'}.'</b></li>'.
'</ul><ul class="msg">'."\n");
foreach($alert{'msg'} as $alert_msg)
{
@@ -92,9 +92,9 @@
if($alert_msg == NULL)
break;
- fwrite($fp, $alert_msg."<br />\n");
+ fwrite($fp, "<li>".$alert_msg."</li>\n");
}
- fwrite($fp, "<br /></ul></div></div></div>\n");
+ fwrite($fp, "</ul></div></div></div>\n");
$evt_count--;
}
}
Index: /opt/software/ossec/htdocs/lib/os_lib_handle.php
===================================================================
--- /opt/software/ossec/htdocs/lib/os_lib_handle.php (revision 13)
+++ /opt/software/ossec/htdocs/lib/os_lib_handle.php (working copy)
@@ -20,7 +20,7 @@
$ossec_search_level, $ossec_search_time,
$ossec_refresh_time)
{
- $config_err = "<b id='red'>Configuration error. Missing '%s'.</b><br />";
+ $config_err = "<b class='red'>Configuration error. Missing '%s'.</b><br />";
/* checking each config variable */
if(!isset($ossec_dir))
Index: /opt/software/ossec/htdocs/lib/os_lib_syscheck.php
===================================================================
--- /opt/software/ossec/htdocs/lib/os_lib_syscheck.php (revision 13)
+++ /opt/software/ossec/htdocs/lib/os_lib_syscheck.php (working copy)
@@ -93,7 +93,6 @@
echo '
<br /><br />
Latest modified files:<br />
- <span class="small">
<div class="smaller">
';
foreach ($mod_list as $modified_file => $val)
@@ -98,7 +97,7 @@
';
foreach ($mod_list as $modified_file => $val)
{
- echo '<a href="#'.$val.'">'.$modified_file.'</a>
+ echo '<a href="#id_'.$val.'">'.$modified_file.'</a>
<br />
';
}
@@ -105,7 +104,7 @@
/* Printing db */
- echo '</div></span>
+ echo '</div>
<br /><br /><table width="100%">';
echo '
<tr>
@@ -134,7 +133,7 @@
if(isset($list_val{'ct'}))
{
- $sk_point = '<a name="'.$list_val{'ct'}.'" />';
+ $sk_point = '<a id="id_'.$list_val{'ct'}.'" />';
}
echo '<tr '.$sk_class.'<td width="45%" valign="top">'.
Index: /opt/software/ossec/htdocs/site/help.php
===================================================================
--- /opt/software/ossec/htdocs/site/help.php (revision 13)
+++ /opt/software/ossec/htdocs/site/help.php (working copy)
@@ -15,7 +15,7 @@
/* OS PHP init */
if (!function_exists('os_handle_start'))
{
- echo "<b id='red'>You are not allowed direct access.</b><br />\n";
+ echo "<b class='red'>You are not allowed direct access.</b><br />\n";
return(1);
}
?>
Index: /opt/software/ossec/htdocs/site/main.php
===================================================================
--- /opt/software/ossec/htdocs/site/main.php (revision 13)
+++ /opt/software/ossec/htdocs/site/main.php (working copy)
@@ -15,7 +15,7 @@
/* OS PHP init */
if (!function_exists('os_handle_start'))
{
- echo "<b id='red'>You are not allowed direct access.</b><br />\n";
+ echo "<b class='red'>You are not allowed direct access.</b><br />\n";
return(1);
}
@@ -59,7 +59,7 @@
foreach ($agent_list as $agent)
{
$atitle = "";
- $aid = "";
+ $aclass = "";
$amsg = "";
/* If agent is connected */
@@ -66,7 +66,7 @@
if($agent{'connected'})
{
$atitle = "Agent active";
- $aid = "bluez";
+ $aclass = 'class="bluez"';
}
else
{
@@ -71,7 +71,7 @@
else
{
$atitle = "Agent Inactive";
- $aid ="red";
+ $aclass = 'class="red"';
$amsg = " - Inactive";
}
@@ -77,7 +77,7 @@
echo '
<span id="toggleagt'.$agent_count.'">
- <a href="#" id="'.$aid.'" title="'.$atitle.'"
+ <a href="#" '.$aclass.' title="'.$atitle.'"
onclick="ShowSection(\'agt'.$agent_count.'\');return false;">+'.
$agent{'name'}." (".$agent{'ip'}.')'.$amsg.'</a><br />
</span>
@@ -84,7 +84,7 @@
<div id="contentagt'.$agent_count.'" style="display: none">
- <a href="#" id="'.$aid.'" title="'.$atitle.'"
+ <a href="#" '.$aclass.' title="'.$atitle.'"
onclick="HideSection(\'agt'.
$agent_count.'\');return false;">-'.$agent{'name'}.
" (".$agent{'ip'}.')'.$amsg.'</a>
@@ -89,7 +89,6 @@
$agent_count.'\');return false;">-'.$agent{'name'}.
" (".$agent{'ip'}.')'.$amsg.'</a>
<br />
- <span class="small">
<div class="smaller">
<b>Name:</b> '.$agent{'name'}.'<br />
<b>IP:</b> '.$agent{'ip'}.'<br />
@@ -97,7 +96,6 @@
date('Y M d H:i:s', $agent{'change_time'}).'<br />
<b>OS:</b> '.$agent{'os'}.'<br />
</div>
- </span>
</div>
';
echo "\n";
@@ -112,11 +110,11 @@
$syscheck_list = os_getsyscheck($ossec_handle);
if(($syscheck_list == NULL) || ($syscheck_list{'global_list'} == NULL))
{
- echo '<ul class="ulsmall" id="bluez">
- No integrity checking information available.<br />
- Nothing reported as changed.
- </ul>
- ';
+ echo
+ '<ul class="ulsmall bluez">'
+ . '<li>No integrity checking information available.</li>'
+ . '<li>Nothing reported as changed.</li>'
+ . '</ul>';
}
else
{
@@ -149,7 +147,7 @@
echo '
<span id="togglesk'.$sk_count.'">
- <a href="#" id="bluez" title="Expand '.$syscheck[2].'"
+ <a href="#" class="bluez" title="Expand '.$syscheck[2].'"
onclick="ShowSection(\'sk'.$sk_count.'\');return false;">+'.
$ffile_name.'</a><br />
</span>
@@ -188,7 +186,7 @@
$alert_list = os_getalerts($ossec_handle, 0, 0, 30);
if($alert_list == NULL)
{
- echo "<b id='red'>Unable to retrieve alerts. </b><br />\n";
+ echo "<b class='red'>Unable to retrieve alerts. </b><br />\n";
}
else
{
@@ -196,7 +194,7 @@
$evt_count = sizeof($alert_list) -1;
/* Alerts table */
- echo "<table width=100%>\n";
+ echo '<table width="100%">'."\n";
while($evt_count >= 0)
{
@@ -202,7 +200,7 @@
{
$alert = $alert_list[$evt_count];
$al_date = date('Y M d H:i:s', $alert{'time'});
- echo "<tr class=alert><td><font class=alerts><b>".$al_date.
+ echo '<tr class="alert"><td><font class="alerts"><b>'.$al_date.
'</b> Rule Id: <a href="/wiki/rules/'.$alert{'id'}.
'">'.$alert{'id'}.'</a>'." level: ".$alert{'level'}.
"<br /> <b>Location:</b> ".$alert{'location'}."<br />\n".
@@ -207,7 +205,7 @@
'">'.$alert{'id'}.'</a>'." level: ".$alert{'level'}.
"<br /> <b>Location:</b> ".$alert{'location'}."<br />\n".
'<b>'.$alert{'description'}.
- '</b></font></td></tr><tr class=msg><td>'.
+ '</b></font></td></tr><tr class="msg"><td>'.
'<ul class="messagesmall">';
foreach($alert{'msg'} as $alert_msg)
@@ -215,7 +213,7 @@
if($alert_msg == NULL)
break;
- echo $alert_msg."<br />\n";
+ echo "<li>$alert_msg</li>\n";
}
echo '</ul></td></tr>'."\n";
Index: /opt/software/ossec/htdocs/site/search-misc.php
===================================================================
--- /opt/software/ossec/htdocs/site/search-misc.php (revision 13)
+++ /opt/software/ossec/htdocs/site/search-misc.php (working copy)
@@ -15,7 +15,7 @@
/* OS PHP init */
if (!function_exists('os_handle_start'))
{
- echo "<b id='red'>You are not allowed direct access.</b><br />\n";
+ echo "<b class='red'>You are not allowed direct access.</b><br />\n";
return(1);
}
@@ -30,7 +30,7 @@
fwrite($fp, '<tr valign="top"><td>'.
'<span id="toggleglobal'.$ct_name.
'" class="asmall" style="display: block">'.
- '<a href="#" title="'.$ct_title.'" id="black" class="bigg"
+ '<a href="#" title="'.$ct_title.'" class="black bigg"
onclick="ShowSection(\'global'.
$ct_name.'\');return false"><b>+'.$ct_title.'</b></a>'.
'</span>');
@@ -35,9 +35,9 @@
$ct_name.'\');return false"><b>+'.$ct_title.'</b></a>'.
'</span>');
- fwrite($fp, '<span id="contentglobal'.$ct_name.
+ fwrite($fp, '<div id="contentglobal'.$ct_name.
'" class="asmall" style="display: none">'.
- '<a href="#" title="'.$ct_title.'" id="black" class="bigg"
+ '<a href="#" title="'.$ct_title.'" class="black bigg"
onclick="HideSection(\'global'.
$ct_name.'\');return false"><b>-'.$ct_title.'</b></a><ul>');
@@ -43,7 +43,7 @@
foreach($all_entries as $id_k => $id_v)
{
- fwrite($fp, '<span id="ct'.$ct_name.$id_k.
+ fwrite($fp, '<li><span id="ct'.$ct_name.$id_k.
'" class="asmall" style="display: block">'.
'
@@ -84,7 +84,7 @@
onclick="ShowLevelSection(\''.$ct_name.$id_k.'\','.
$id_v.');return false">
(show)</a>
- </span>
+ </span></li>
');
}
@@ -90,7 +90,7 @@
/* Clearing restrictions */
fwrite($fp, '
- <a href="#" class="asmall" title="Clear '.$ct_desc.' restrictions"
+ <li><a href="#" class="asmall" title="Clear '.$ct_desc.' restrictions"
onclick="');
foreach($all_entries as $sid_k => $sid_v)
@@ -98,11 +98,11 @@
fwrite($fp, 'ShowLevelSection(\''.$ct_name.$sid_k.'\','.$sid_v.');');
}
- fwrite($fp, 'return false">Clear '.$ct_name.' restrictions</a>');
+ fwrite($fp, 'return false">Clear '.$ct_name.' restrictions</a></li>');
/* Closing restriction span / Closing table delimiter */
- fwrite($fp, '</ul><br /></span></td></tr>');
+ fwrite($fp, '</ul><br /></div></td></tr>');
}
Index: /opt/software/ossec/htdocs/site/search.php
===================================================================
--- /opt/software/ossec/htdocs/site/search.php (revision 13)
+++ /opt/software/ossec/htdocs/site/search.php (working copy)
@@ -15,7 +15,7 @@
/* OS PHP init */
if (!function_exists('os_handle_start'))
{
- echo "<b id='red'>You are not allowed direct access.</b><br />\n";
+ echo "<b class='red'>You are not allowed direct access.</b><br />\n";
return(1);
}
@@ -90,7 +90,7 @@
$m_ossec_refresh_time = $ossec_refresh_time * 1000;
echo '
- <script language="javascript">
+ <script type="text/javascript">
setTimeout("document.dosearch.submit()",'.
$m_ossec_refresh_time.');
</script>
@@ -269,7 +269,7 @@
}
else
{
- echo "<b id='red'>Invalid search. </b><br />\n";
+ echo "<b class='red'>Invalid search. </b><br />\n";
return;
}
@@ -294,7 +294,7 @@
echo '
<form name="dosearch" method="post" action="index.php?f=s">
<table><tr valign="top">
- <td><input type="radio" name="monitoring" value="0" checked="checked">
+ <td><input type="radio" name="monitoring" value="0" checked="checked"/>
</td>
<td>From: <input type="text" name="initdate"
id="i_date_a" size="17"
@@ -300,7 +300,7 @@
id="i_date_a" size="17"
value="'.date('Y-m-d H:i', $u_init_time).'" maxlength="16"
class="formText" />
- <img src="img/calendar.gif" id="i_trigger" title="Date selector"
+ <img src="img/calendar.gif" id="i_trigger" title="Date selector" alt="Date selector"
class="formText" />
</td><td>
To: <input type="text" name="finaldate" id="f_date_a" size="17"
@@ -306,7 +306,7 @@
To: <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="img/calendar.gif" id="f_trigger" title="Date selector"
+ <img src="img/calendar.gif" id="f_trigger" title="Date selector" alt="Date selector"
class="formText" />
</td>
</tr>
@@ -312,8 +312,8 @@
</tr>
';
-echo '<tr><td><input type="radio" name="monitoring" value="1" '.$rt_sk.'></td>
- <td>Real time monitoring</input></td></tr>
+echo '<tr><td><input type="radio" name="monitoring" value="1" '.$rt_sk.'/></td>
+ <td>Real time monitoring</td></tr>
</table>
<br />
<table>
@@ -339,7 +339,7 @@
/* Category */
echo '</td><td>
Category: </td><td><select name="grouppattern" class="formText">';
-echo '<option value="ALL" id="bluez">All categories</option>';
+echo '<option value="ALL" class="bluez">All categories</option>';
foreach($global_categories as $_cat_name => $_cat)
{
@@ -352,7 +352,7 @@
}
if(strpos($cat_name, "(all)") !== FALSE)
{
- echo '<option id="bluez" '.$sl.
+ echo '<option class="bluez" '.$sl.
' value="'.$cat_val.'">'.$cat_name.'</option>';
}
else
@@ -371,9 +371,9 @@
/* Log formats */
-echo '</td><td>
+echo '<td>
Log formats: </td><td><select name="logpattern" class="formText">';
-echo '<option value="ALL" id="bluez">All log formats</option>';
+echo '<option value="ALL" class="bluez">All log formats</option>';
foreach($log_categories as $_cat_name => $_cat)
{
@@ -386,7 +386,7 @@
}
if(strpos($cat_name, "(all)") !== FALSE)
{
- echo '<option id="bluez" '.$sl.
+ echo '<option class="bluez" '.$sl.
' value="'.$cat_val.'">'.$cat_name.'</option>';
}
else
@@ -431,8 +431,7 @@
/* Final form */
echo '
<tr><td>
- <input type="submit" name="search" value="Search" class="button"
- class="formText" />
+ <input type="submit" name="search" value="Search" class="button"/>
';
@@ -498,11 +497,11 @@
{
if($used_stored == 1)
{
- echo "<b id='red'>Nothing returned (search expired). </b><br />\n";
+ echo "<b class='red'>Nothing returned (search expired). </b><br />\n";
}
else
{
- echo "<b id='red'>Nothing returned. </b><br />\n";
+ echo "<b class='red'>Nothing returned. </b><br />\n";
}
return(1);
}
@@ -511,7 +510,7 @@
/* Checking for no return */
if(!isset($output_list[0]{'count'}))
{
- echo "<b id='red'>Nothing returned. </b><br />\n";
+ echo "<b class='red'>Nothing returned. </b><br />\n";
return(1);
}
@@ -552,7 +551,6 @@
/* Currently page */
echo '
- <tr><td>
<input type="hidden" name="initdate"
value="'.date('Y-m-d H:i', $u_init_time).'" />
<input type="hidden" name="finaldate"
@@ -587,7 +585,7 @@
(strlen($output_list[$real_page]) < 5) ||
(!file_exists($output_list[$real_page])))
{
- echo "<b id='red'>Nothing returned (or search expired). </b><br />\n";
+ echo "<b class='red'>Nothing returned (or search expired). </b><br />\n";
return(1);
}
Index: /opt/software/ossec/htdocs/site/searchfw.php
===================================================================
--- /opt/software/ossec/htdocs/site/searchfw.php (revision 13)
+++ /opt/software/ossec/htdocs/site/searchfw.php (working copy)
@@ -15,7 +15,7 @@
/* OS PHP init */
if (!function_exists('os_handle_start'))
{
- echo "<b id='red'>You are not allowed direct access.</b><br />\n";
+ echo "<b class='red'>You are not allowed direct access.</b><br />\n";
return(1);
}
@@ -267,7 +267,7 @@
$USER_action, $USER_location);
if($alert_list == NULL)
{
- echo "<b id='red'>Nothing returned. </b><br />\n";
+ echo "<b class='red'>Nothing returned. </b><br />\n";
}
else
{
@@ -349,14 +349,13 @@
style="display: block">';
}
- echo "<ul class=\"alert\"><b>".$al_date
- .'</b> Firewall <strong>'.$alert{'action'}."</strong>\n<br />";
- echo "<b>Location: </b>".$alert{'location'};
- echo
- '</ul><ul class="msg">'."\n";
-
- echo $alert{'msg'}."<br />\n";
- echo "<br /></ul>\n";
+ echo '<ul class="alert">'
+ . "<li><b>$al_date</b> Firewall <strong>{$alert['action']}</strong></li>"
+ . "<li><b>Location: </b>{$alert['location']}</li>"
+ . '</ul>'
+ . '<ul class="msg">'
+ . "<li>{$alert['msg']}</li>"
+ . '</ul>';
$evt_count--;
}
Index: /opt/software/ossec/htdocs/site/stats.php
===================================================================
--- /opt/software/ossec/htdocs/site/stats.php (revision 13)
+++ /opt/software/ossec/htdocs/site/stats.php (working copy)
@@ -15,7 +15,7 @@
/* OS PHP init */
if (!function_exists('os_handle_start'))
{
- echo "<b id='red'>You are not allowed direct access.</b><br />\n";
+ echo "<b class='red'>You are not allowed direct access.</b><br />\n";
return(1);
}
@@ -23,7 +23,7 @@
$ossec_handle = os_handle_start($ossec_dir);
if($ossec_handle == NULL)
{
- echo "<b id='red'>Unable to access ossec directory.</b><br />\n";
+ echo "<b class='red'>Unable to access ossec directory.</b><br />\n";
return(1);
}
@@ -180,7 +180,7 @@
if(!isset($daily_stats{'total'}))
{
echo '<br />
- <b id="red">No stats available.</b>';
+ <b class="red">No stats available.</b>';
return(1);
}
else
@@ -211,7 +211,7 @@
}
echo '<br /><br />';
-echo '<br /><span class="statssmall"';
+echo '<br /><div class="statssmall">';
echo '
<table align="center"><tr valign="top"><td width="50%">
@@ -468,7 +468,7 @@
}
echo '
-</table></span>
+</table></div>
';
Index: /opt/software/ossec/htdocs/site/syscheck.php
===================================================================
--- /opt/software/ossec/htdocs/site/syscheck.php (revision 13)
+++ /opt/software/ossec/htdocs/site/syscheck.php (working copy)
@@ -41,7 +41,7 @@
/* OS PHP init */
if (!function_exists('os_handle_start'))
{
- echo "<b id='red'>You are not allowed direct access.</b><br />\n";
+ echo "<b class='red'>You are not allowed direct access.</b><br />\n";
return(1);
}
@@ -61,8 +61,8 @@
/* Creating form */
echo '
+<form name="dosearch" method="post" action="index.php?f=i">
<table><tr valign="top">
-<form name="dosearch" method="post" action="index.php?f=i">
<td>
Agent name: </td><td><select name="agentpattern" class="formText">';
@@ -85,11 +85,10 @@
echo '</select></td>';
echo '
- <td><input type="submit" name="ss" value="Dump database" class="button"
- class="formText" /></td>
+ <td><input type="submit" name="ss" value="Dump database" class="button"/></td>
+ </tr></table>
</form>
- </tr></table>
- ';
+ ';
/* Dumping database */
@@ -104,11 +103,11 @@
echo "<br /><h1>Latest modified files (for all agents): </h1>\n\n";
if(($syscheck_list == NULL) || ($syscheck_list{'global_list'} == NULL))
{
- echo '<ul class="ulsmall" id="bluez">
- No integrity checking information available.<br />
- Nothing reported as changed.
- </ul>
- ';
+ echo
+ '<ul class="ulsmall bluez">'
+ . '<li>No integrity checking information available.</li>'
+ . '<li>Nothing reported as changed.</li>'
+ . '</ul>';
}
else
{
@@ -139,7 +138,7 @@
echo '
<span id="togglesk'.$sk_count.'">
- <a href="#" id="bluez" title="Expand '.$syscheck[2].'"
+ <a href="#" class="bluez" title="Expand '.$syscheck[2].'"
onclick="ShowSection(\'sk'.$sk_count.'\');return false;">+'.
$ffile_name.'</a><br />
</span>
Index: /opt/software/ossec/htdocs/site/user_mapping.php
===================================================================
--- /opt/software/ossec/htdocs/site/user_mapping.php (revision 13)
+++ /opt/software/ossec/htdocs/site/user_mapping.php (working copy)
@@ -15,7 +15,7 @@
/* OS PHP init */
if (!function_exists('os_handle_start'))
{
- echo "<b id='red'>You are not allowed direct access.</b><br />\n";
+ echo "<b class='red'>You are not allowed direct access.</b><br />\n";
return(1);
}
@@ -24,7 +24,7 @@
$ossec_handle = os_handle_start($ossec_dir);
if($ossec_handle == NULL)
{
- echo "<b id='red'>Unable to access ossec directory.</b><br />\n";
+ echo "<b class='red'>Unable to access ossec directory.</b><br />\n";
return(1);
}
@@ -31,7 +31,7 @@
if(($mapping_list = os_getusermapping($ossec_handle)) == NULL)
{
- echo "<b id='red'>No user mapping available. </b><br />\n";
+ echo "<b class='red'>No user mapping available. </b><br />\n";
return(1);
}
OSSEC home |
Main Index |
Thread Index
OSSEC project: www.ossec.net.
Mailling list information: http://www.ossec.net/en/mailing_lists.html.