Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Fri Mar 29, 2024 2:57 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
PostPosted: Tue Jul 25, 2006 3:01 am 
I would like to remove the "XP SP2 without up to date AntiVirus." listing from the main page, as it is not needed for me. We use group policy to disable the security center, so Open AudIT is unable to actually detect up to date AV on any of our XP SP2 machines (or at least this is what I think is happening). However, there is no option to remove this section (short of just deleting it from the php file).


Top
  
Reply with quote  
 Post subject:
PostPosted: Tue Jul 25, 2006 3:14 am 
Offline
Newbie

Joined: Fri May 05, 2006 3:55 am
Posts: 11
Location: Montreal, Canada
in index.php:

[code]
if ($show_detected_xp_av == "y"){
$sql = "SELECT system_name, net_ip_address, system_uuid, virus_name, virus_uptodate FROM system WHERE (virus_name = '' OR virus_uptodate = 'False') AND system_service_pack = '2.0' AND system_os_name LIKE 'Microsoft Windows XP%' ORDER BY system_name";
$result = mysql_query($sql, $db);
$bgcolor = "#FFFFFF";
echo "<div class=\"main_each\">\n";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n";
echo "<tr>\n";
echo " <td class=\"contenthead\" colspan=\"3\"><a href=\"javascript://\" onclick=\"switchUl('f11');\">$l_xps.</a></td>\n";
echo " <td align=\"right\"><a href=\"javascript://\" onclick=\"switchUl('f11');\"><img src=\"images/down.png\" width=\"16\" height=\"16\" border=\"0\" alt=\"\" /></a></td>\n";
echo "</tr>\n";
echo "</table>";
echo "<div style=\"display:none;\" id=\"f11\">";
if ($myrow = mysql_fetch_array($result)){
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" >\n";
echo "<tr>\n";
echo " <td><b>$l_ipa</b></td>\n";
echo " <td align=\"center\"><b>$l_sys</b></td>\n";
echo " <td align=\"center\"><b>$l_anu</b></td>\n";
echo " <td align=\"center\"><b>$l_anv</b></td>\n";
echo "</tr>\n";
do {
$bgcolor = change_row_color($bgcolor,$bg1,$bg2);
echo "<tr bgcolor=\"" . $bgcolor . "\">\n";
echo " <td>" . ip_trans($myrow["net_ip_address"]) . "</td>\n";
echo " <td align=\"center\"><a href=\"system_summary.php?pc=" . $myrow["system_uuid"] . "\">" . $myrow["system_name"] . "</a></td>\n";
echo " <td align=\"center\">" . $myrow["virus_name"] . "</td>\n";
echo " <td align=\"center\">" . $myrow["virus_uptodate"] . "</td>\n";
echo "</tr>";
} while ($myrow = mysql_fetch_array($result));
echo "</table>";
} else {}
echo "</div>";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" >\n";
echo "<tr><td colspan=\"3\"><b>Systems: " . mysql_numrows($result) . "</b></td></tr>\n";
echo "</table>";
echo "</div>";
} else {}
[/code]

in include_config.php:
[code]
$show_detected_xp_av = 'y';
[/code]

put
$show_detected_xp_av = 'n';
If you don't want it to show up...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Jul 25, 2006 3:23 am 
Thanks Shredder, that saves me the effort :) Hopefully Mark can set up a [url=http://www.open-audit.org/phpbb2/viewtopic.php?t=1025]Community SVN[/url] so that this change can be made for everyone, and then I don't have to hack my code every release!


Top
  
Reply with quote  
 Post subject:
PostPosted: Tue Jul 25, 2006 3:49 am 
Offline
Newbie

Joined: Fri May 05, 2006 3:55 am
Posts: 11
Location: Montreal, Canada
[quote="mikeyrb"]Thanks Shredder, that saves me the effort :) Hopefully Mark can set up a [url=http://www.open-audit.org/phpbb2/viewtopic.php?t=1025]Community SVN[/url] so that this change can be made for everyone, and then I don't have to hack my code every release!


no prob mikey ! it didn't took me a lot of efforts :wink:

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Aug 01, 2006 1:14 pm 
I added this to the include_config.php file in the trunk, but I didn't add it to the web interface yet.


Top
  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group