|
Contributor |
Joined: Fri Jul 14, 2006 1:16 am Posts: 151 Location: Iowa
|
I added code to display hfnet to the system_security page. This goes after the nmap code.
[code] if (($sub == "hf") or ($sub == "all")){ $opt_count = 0; $SQL = "SELECT * from system_security WHERE ss_uuid = '$pc' AND ss_timestamp = '$timestamp' "; $result = mysql_query($SQL, $db); echo "<tr><td class=\"contenthead\" colspan=\"4\"><br /><img src=\"images/software_2_l.png\" width=\"48\" height=\"48\" alt=\"\" /> $l_hfn</td><td></td></tr>\n"; if ($myrow = mysql_fetch_array($result)){ $bgcolor = "#F1F1F1"; do { $cur_prod = $myrow["ss_product"]; if ($cur_prod <> $old_prod) { echo "<tr><td colspan=\"4\"><b>" . $myrow["ss_product"] . "</b></td></tr>\n"; } else {} if ($myrow["ss_status"] == "Information"){ echo "<tr><td colspan=\"4\"><b>" . $myrow["ss_status"] . ":</b> " . $myrow["ss_reason"] . "<br /> </td></tr>\n"; } else { if ($myrow["ss_status"] == "NOT Found") { $font_col = "red";} else {} if ($myrow["ss_status"] == "Warning") { $font_col = "orange"; } else {} if ($myrow["ss_status"] == "Information") { $font_col = "green"; } else {} if ($myrow["ss_status"] == "Note") { $font_col = "blue"; } else {} $sql2 = "SELECT * FROM system_security_bulletins WHERE ssb_qno = '" . $myrow["ss_qno"] . "'"; $result2 = mysql_query($sql2, $db); if ($myrow2 = mysql_fetch_array($result2)){ do { echo "<tr valign=\"top\" bgcolor=\"" . $bgcolor . "\"><td><b>Details:</b></td><td colspan=\"3\"> <font color=\"" . $font_col . "\">" . $myrow["ss_status"] . "</font> - " . $myrow["ss_qno"] . " - " . $myrow2["ssb_bulletin"] . " - <a href=\"" . $myrow2["ssb_url"] . "\">Microsoft Page</a></td></tr>"; echo "<tr valign=\"top\" bgcolor=\"" . $bgcolor . "\"><td><b>Title:</b></td><td colspan=\"3\"> " . $myrow2["ssb_title"] . "</td></tr>"; echo "<tr valign=\"top\" bgcolor=\"" . $bgcolor . "\"><td><b>Description:</b></td><td colspan=\"3\"> " . $myrow2["ssb_description"] . "</td></tr>"; echo "<tr valign=\"top\" bgcolor=\"" . $bgcolor . "\"><td><b>Reason:</b></td><td colspan=\"3\"> " . $myrow["ss_reason"] . "<br /> </td></tr>"; } while ($myrow2 = mysql_fetch_array($result2)); } else {} } $old_prod = $cur_prod; if ($bgcolor == "#F1F1F1") { $bgcolor = "#FFFFFF"; } else { $bgcolor = "#F1F1F1"; } } while ($myrow = mysql_fetch_array($result)); } else { $bgcolor = "#F1F1F1"; echo "<tr bgcolor=\"$bgcolor\"><td colspan=\"4\">Nothing detected by $l_hfn.</td></tr>\n"; } } // End of Hfnet [/code]
This code goes in the include.php (Line 197) It makes the hfnet link work.
[code] <li><a href="system_security.php?pc=<?php echo $pc; ?>&sub=hf"><img src="images/software_2.png" alt="" /><?php echo $l_hfn; ?></a></li>
[/code]
|
|