Major php code modiciation or just a couple minor tweaks?
Posted: Tue Oct 21, 2008 11:22 am
Got a question for you elite php developers. There's two php files below:
include.php -- Main php include file
include_menu_array.php -- Included within include.php, includes menu items.
The below code creates a dynamic menu that's vertical. It pulls the menu items from include_menu_array.php.
Is it possible without rewriting all the php menu code to alter the php to make this a horizontal menu instead?
I know this question is streching it, but I'm trying to gauage if I would have to rewrite new code or if a modifiication could be made that would be much easier. Thanks!
include.php
include_menu_array.php
include.php -- Main php include file
include_menu_array.php -- Included within include.php, includes menu items.
The below code creates a dynamic menu that's vertical. It pulls the menu items from include_menu_array.php.
Is it possible without rewriting all the php menu code to alter the php to make this a horizontal menu instead?
I know this question is streching it, but I'm trying to gauage if I would have to rewrite new code or if a modifiication could be made that would be much easier. Thanks!
include.php
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
if ($is_refreshable) {
#gets the URI of the script
$our_url = $_SERVER['SCRIPT_URI'];
#chops URI into bits
$chopped = parse_url($our_url);
#HOST and PATH portions of your final destination
$destination = $chopped[scheme]."://".$chopped[host].$chopped[path];
echo " <META HTTP-EQUIV=REFRESH CONTENT=".$refresh_period.";URL=".$destination.">";
}
?>
<title>Open-AudIT</title>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link media="screen" rel="stylesheet" type="text/css" href="default.css" />
<link media="print" rel="stylesheet" type="text/css" href="defaultprint.css" />
<script type="text/javascript">
/*<![CDATA[*/
function IEHoverPseudo() {
var navItems = document.getElementById("primary-nav").getElementsByTagName("li");
for (var i=0; i<navItems.length; i++) {
if(navItems[i].className == "menuparent") {
navItems[i].onmouseover=function() { this.className += " over"; }
navItems[i].onmouseout=function() { this.className = "menuparent"; }
}
}
}
window.onload = IEHoverPseudo;
/*]]>*/
</script>
<script type="text/javascript">
<!--
function switchUl(id){
if(document.getElementById){
a=document.getElementById(id);
a.style.display=(a.style.display!="none")?"none":"block";
}
}
// -->
</script>
</head>
<body>
<?php
$sub = "0";
$pc = "";
if (isset($_GET['pc'])) { $pc = $_GET['pc']; } else { }
if (isset($_GET['sub'])) { $sub = $_GET['sub']; } else { $sub="all"; }
if (isset($_GET['sort'])) { $sort = $_GET['sort']; } else { $sort="system_name"; }
$mac = $pc;
if ($page <> "setup"){
$db = mysql_connect($mysql_server,$mysql_user,$mysql_password) or die('Could not connect: ' . mysql_error());
mysql_select_db($mysql_database,$db);
$SQL = "SELECT config_value FROM config WHERE config_name = 'version'";
$result = mysql_query($SQL, $db);
if ($myrow = mysql_fetch_array($result)){
$version = $myrow["config_value"];
} else {}
} else {
$version = "0.1.00";
}
/*
?>
<table width="100%">
<td colspan="3" class="main_each">
<?php
*/
// $page_type="standard";
// if (strpos($_SERVER['REQUEST_URI'],"admin")){
// $page_type="admin";
// }
// if (strpos($_SERVER['REQUEST_URI'],"input") or strpos($_SERVER['REQUEST_URI'],"pc_add")){
// $page_type="input";
// }
// if (strpos($_SERVER['REQUEST_URI'],"system")){
// $page_type="system";
// }
// if (strpos($_SERVER['REQUEST_URI'],"list")){
// $page_type="list";
// }
if ((isset($use_ldap_login) and ($use_ldap_login == 'y'))) {
echo "<table width=\"100%\">\n";
echo "<td colspan=\"3\" class=\"main_each\">\n";
echo "<a href=\"ldap_logout.php\">".__("Logout ").$_SESSION["username"]."</a>\n";
// Uncomment the following to see what tyoe of page this is
// echo "<a href=\"index.php\">"." We are in a ".$page_type." type of page"."</a>\n";
echo "</td>\n";
echo "</table>\n";
} else {}
/*
?>
/
</td>
</table>
*/
?>
<table width="100%">
<tr>
<td colspan="3" class="main_each"><a href="index.php"><img src="images/logo.png" width="300" height="48" alt="" style="border:0px;" /></a></td>
</tr>
<tr>
<td style="width:170px;" rowspan="12" valign="top" id="nav">
<ul id="primary-nav">
<li><a href="index.php"><?php echo __("Home"); ?></a></li>
<?php
// echo "<li><a href=\"include_ldap_logout.php\">".__("Logout ").$_SESSION["username"]."</a></li>\n";
if ($pc > "0") {
$sql = "SELECT system_uuid, system_timestamp, system_name, system.net_ip_address, net_domain FROM system, network_card WHERE system_uuid = '$pc' OR system_name = '$pc' OR (net_mac_address = '$pc' AND net_uuid = system_uuid)";
$result = mysql_query($sql, $db);
$myrow = mysql_fetch_array($result);
$timestamp = $myrow["system_timestamp"];
$GLOBAL["system_timestamp"]=$timestamp;
$pc = $myrow["system_uuid"];
$ip = $myrow["net_ip_address"];
$name = $myrow['system_name'];
$domain = $myrow['net_domain'];
//Menu-Entries for the selected PC
require_once("include_menu_array.php");
echo "<li class=\"menuparent\">".
"<a href=\"system.php?pc=$pc&view=summary\">".
"<span>></span>".
$name.
"</a>\n";
echo "<ul>\n";
reset ($menue_array["machine"]);
while (list ($key_1, $topic_item) = each ($menue_array["machine"])) {
if (isset($topic_item["class"])) {
echo "<li class=\"".$topic_item["class"]."\">";
} else {
echo "<li>";
}
echo "<a href=\"".$topic_item["link"]."\">";
if(isset($topic_item["childs"]) AND is_array($topic_item["childs"])){
echo "<span><img src=\"images/spacer.gif\" height=\"16\" width=\"0\" alt=\"\" />></span>";
}
echo "<img src=\"".$topic_item["image"]."\" style=\"border:0px;\" alt=\"\" /> ";
echo __($topic_item["name"]);
echo "</a>\n";
if(isset($topic_item["childs"]) AND is_array($topic_item["childs"])){
echo "<ul>\n";
@reset ($topic_item["childs"]);
while (list ($key_2, $child_item) = @each ($topic_item["childs"])) {
echo "<li><a href=\"".$child_item["link"]."\"";
if (isset($topic_item["title"])) {
echo " title=\"".$topic_item["title"]."\"";
}
echo "><img src=\"".$child_item["image"]."\" style=\"border:0px;\" alt=\"\" /> ";
echo __($child_item["name"]);
echo "</a></li>\n";
}
echo "</ul>\n";
}
echo "</li>\n";
}
echo "</ul>\n";
echo "</li>\n";
}
//Normal Menu-Entries
require_once("include_menu_array.php");
reset ($menue_array["misc"]);
while (list ($key_1, $topic_item) = each ($menue_array["misc"])) {
echo "<li class=\"".$topic_item["class"]."\">";
echo "<a href=\"".$topic_item["link"]."\"";
if(isset($topic_item["title"])) {
echo " title=\"".$topic_item["title"]."\"";
}
echo ">";
if(is_array($topic_item["childs"])){
echo "<span>></span>";
}
if(isset($topic_item['image']) AND $topic_item["image"]!=""){
echo "<img src=\"".$topic_item["image"]."\" width=\"16\" height=\"16\" style=\"border:0px;\" alt=\"\" /> ";
}
echo __($topic_item["name"]);
echo "</a>";
echo "<ul>\n";
if(is_array($topic_item["childs"])){
@reset ($topic_item["childs"]);
while (list ($key_2, $child_item) = @each ($topic_item["childs"])) {
echo "<li>";
echo "<a href=\"".$child_item["link"]."\" title=\"".$child_item["title"]."\">";
if(isset($child_item["childs"]) AND is_array($child_item["childs"])){
echo "<span>></span>";
}
echo "<img src=\"".$child_item["image"]."\" width=\"16\" height=\"16\" style=\"border:0px;\" alt=\"\" /> ";
echo __($child_item["name"]);
echo "</a>";
if(isset($child_item["childs"]) AND is_array($child_item["childs"])){
echo "<ul>\n";
@reset ($child_item["childs"]);
while (list ($key_3, $child_item_2) = @each ($child_item["childs"])) {
echo "<li>";
echo "<a href=\"".$child_item_2["link"]."\" title=\"".$child_item_2["title"]."\">";
echo "<img src=\"".$child_item_2["image"]."\" width=\"16\" height=\"16\" style=\"border:0px;\" alt=\"\" /> ";
echo __($child_item_2["name"]);
echo "</a>";
echo "</li>\n";
}
echo "</ul>\n";
}
echo "</li>\n";
}
}
echo "</ul>\n";
echo "</li>\n";
unset($topic_item["title"]);
}
if ((isset($use_ldap_login) and ($use_ldap_login == 'y'))) {
// echo "<li><a href=\"include_ldap_logout.php\">".__("Logout ").$_SESSION["username"]."</a></li>\n";
} else {}
//
// Add a Strict Test button if $validate is set.
if ((isset($validate)) and ($validate =="y")){
echo "<p>";
echo "<a href=\"http://validator.w3.org/check/referer\"><img src=\"http://www.w3.org/Icons/valid-xhtml10\" alt=\"Valid XHTML 1.0!\" height=\"31\" width=\"88\" /></a>";
//echo "<script type=\"text/javascript\" language=\"JavaScript1.2\" src=\"http://www.altavista.com/help/free/inc_translate\"></script>";
echo "<noscript><a href=\"http://www.altavista.com/babelfish/tr\"></noscript>";
//echo "<script language=\"JavaScript1.2\" src=\"http://www.altavista.com/static/scripts/translate_engl.js\"></script>\"";
echo "</p>";
//
echo "</body>\n</html>";
}
echo "</ul>\n";
echo "</td>\n";
?>
include_menu_array.php
Code: Select all
<?php
if(!isset($name)) $name = "";
$menue_array = array(
"machine" => array(
"10" => array("name"=>"Hardware",
"link"=>"system.php?pc=$pc&view=hardware",
"image"=>"images/printer.png",
"class"=>"menuparent",
"childs"=>array("05"=>array("name"=>"All", "link"=>"system.php?pc=$pc&view=hardware", "image"=>"images/statistics.png", "title"=>"",),
"06"=>array("name"=>"Chassis", "link"=>"system.php?pc=$pc&view=hardware&category=chassis", "image"=>"images/harddisk.png", "title"=>"",),
"07"=>array("name"=>"Motherboard", "link"=>"system.php?pc=$pc&view=hardware&category=motherboard", "image"=>"images/settings.png", "title"=>"",),
"08"=>array("name"=>"Onboard Devices", "link"=>"system.php?pc=$pc&view=hardware&category=onboard_device", "image"=>"images/memory.png", "title"=>"",),
"10"=>array("name"=>"Fixed Disks", "link"=>"system.php?pc=$pc&view=hardware&category=hard_drive", "image"=>"images/harddisk.png", "title"=>"",),
"20"=>array("name"=>"Partitions", "link"=>"system.php?pc=$pc&view=hardware&category=partition", "image"=>"images/partition.png", "title"=>"",),
"30"=>array("name"=>"SCSI Controller", "link"=>"system.php?pc=$pc&view=hardware&category=scsi_controller", "image"=>"images/scsi.png", "title"=>"",),
"40"=>array("name"=>"Optical Drive", "link"=>"system.php?pc=$pc&view=hardware&category=optical_drive", "image"=>"images/optical.png", "title"=>"",),
"50"=>array("name"=>"Floppy Drive", "link"=>"system.php?pc=$pc&view=hardware&category=floppy", "image"=>"images/floppy.png", "title"=>"",),
"60"=>array("name"=>"Tape Drive", "link"=>"system.php?pc=$pc&view=hardware&category=tape_drive", "image"=>"images/tape.png", "title"=>"",),
"70"=>array("name"=>"Processor", "link"=>"system.php?pc=$pc&view=hardware&category=processor", "image"=>"images/processor.png", "title"=>"",),
"80"=>array("name"=>"Bios", "link"=>"system.php?pc=$pc&view=hardware&category=bios", "image"=>"images/bios.png", "title"=>"",),
"90"=>array("name"=>"Memory", "link"=>"system.php?pc=$pc&view=hardware&category=memory", "image"=>"images/memory.png", "title"=>"",),
"100"=>array("name"=>"Network Card", "link"=>"system.php?pc=$pc&view=hardware&category=network_card", "image"=>"images/network_device.png", "title"=>"",),
"105"=>array("name"=>"Gateway", "link"=>"list.php?view=statistic_gateway", "image"=>"images/network_device.png", "title"=>"",),
"110"=>array("name"=>"Video Adapter", "link"=>"system.php?pc=$pc&view=hardware&category=video", "image"=>"images/display.png", "title"=>"",),
"120"=>array("name"=>"Monitor", "link"=>"system.php?pc=$pc&view=hardware&category=monitor", "image"=>"images/display.png", "title"=>"",),
"130"=>array("name"=>"Soundcard", "link"=>"system.php?pc=$pc&view=hardware&category=sound", "image"=>"images/audio.png", "title"=>"",),
"140"=>array("name"=>"Keyboard and Mouse", "link"=>"system.php?pc=$pc&view=hardware&category=keyboard,mouse", "image"=>"images/keyboard.png", "title"=>"",),
"150"=>array("name"=>"Modem", "link"=>"system.php?pc=$pc&view=hardware&category=modem", "image"=>"images/modem.png", "title"=>"",),
"160"=>array("name"=>"Battery", "link"=>"system.php?pc=$pc&view=hardware&category=battery", "image"=>"images/battery.png", "title"=>"",),
"170"=>array("name"=>"Printer", "link"=>"system.php?pc=$pc&view=hardware&category=printer", "image"=>"images/printer.png", "title"=>"",),
"180"=>array("name"=>"USB", "link"=>"system.php?pc=$pc&view=hardware&category=usb", "image"=>"images/usb.png", "title"=>"",),
),
),
"20" => array("name"=>"Software",
"link"=>"list.php?pc=$pc&view=software_for_system",
"image"=>"images/software.png",
"class"=>"menuparent",
"childs"=>array("10"=>array("name"=>"Installed Software", "link"=>"list.php?pc=$pc&view=software_for_system", "image"=>"images/software.png", "title"=>"",),
"20"=>array("name"=>"System Components", "link"=>"list.php?pc=$pc&view=syscomp_for_system", "image"=>"images/settings_2.png", "title"=>"",),
"30"=>array("name"=>"Hotfixes & Patches", "link"=>"list.php?pc=$pc&view=hotfixes_patches_for_system", "image"=>"images/software_2.png", "title"=>"",),
"40"=>array("name"=>"Run at Startup", "link"=>"list.php?pc=$pc&view=startupsoftware_for_system", "image"=>"images/scsi.png", "title"=>"",),
"50"=>array("name"=>"Software Audit-Trail", "link"=>"list.php?pc=$pc&view=software_audit_system_trail", "image"=>"images/audit.png", "title"=>"",),
"60"=>array("name"=>"Uninstalled Software", "link"=>"list.php?pc=$pc&view=software_uninstalled_for_system", "image"=>"images/audit.png", "title"=>"",),
"70"=>array("name"=>"Keys", "link"=>"list.php?pc=$pc&view=keys_for_system", "image"=>"images/key_2.png", "title"=>"",),
"80"=>array("name"=>"IE BHO's", "link"=>"list.php?pc=$pc&view=ie_bho_for_system", "image"=>"images/browser_bho.png", "title"=>"",),
"90"=>array("name"=>"Codecs", "link"=>"list.php?pc=$pc&view=codecs_for_system", "image"=>"images/audio.png", "title"=>"",),
"100"=>array("name"=>"Services", "link"=>"list.php?pc=$pc&view=services_for_system", "image"=>"images/services.png", "title"=>"",),
),
),
"30" => array("name"=>"OS Settings",
"link"=>"system.php?pc=$pc&view=os",
"image"=>"images/os.png",
"class"=>"menuparent",
"childs"=>array("10"=> array("name"=>"All", "link"=>"system.php?pc=$pc&view=os", "image"=>"images/statistics.png", "title"=>"",),
"20"=> array("name"=>"OS Information", "link"=>"system.php?pc=$pc&view=os&category=os", "image"=>"images/os.png", "title"=>"",),
"30"=> array("name"=>"Software", "link"=>"system.php?pc=$pc&view=os&category=software", "image"=>"images/software.png", "title"=>"",),
"40"=> array("name"=>"Shared Folders", "link"=>"system.php?pc=$pc&view=os&category=shares", "image"=>"images/shared_drive.png", "title"=>"",),
"50"=> array("name"=>"Scheduled Tasks", "link"=>"system.php?pc=$pc&view=os&category=scheduled_tasks", "image"=>"images/sched_task_l.png", "title"=>"",),
"60"=> array("name"=>"Env. Variables", "link"=>"system.php?pc=$pc&view=os&category=env_variables", "image"=>"images/o_console.png", "title"=>"",),
"70"=> array("name"=>"Event Logs", "link"=>"system.php?pc=$pc&view=os&category=event_logs", "image"=>"images/summary.png", "title"=>"",),
"80"=> array("name"=>"IP Routes", "link"=>"system.php?pc=$pc&view=os&category=ip_routes", "image"=>"images/network_device.png", "title"=>"",),
"90"=> array("name"=>"Pagefile", "link"=>"system.php?pc=$pc&view=os&category=pagefile", "image"=>"images/memory.png", "title"=>"",),
"100"=>array("name"=>"Mapped Drives", "link"=>"system.php?pc=$pc&view=os&category=mapped", "image"=>"images/shared_drive.png", "title"=>"",),
),
),
"50" => array("name"=>"Security",
"link"=>"system.php?pc=$pc&view=security",
"image"=>"images/security.png",
"class"=>"menuparent",
"childs"=>array("10"=>array("name"=>"All", "link"=>"system.php?pc=$pc&view=security&category=", "image"=>"images/statistics.png", "title"=>"",),
"20"=>array("name"=>"Firewall", "link"=>"system.php?pc=$pc&view=security&category=firewall_xpsp2,firewall_other", "image"=>"images/firewall.png", "title"=>"",),
"30"=>array("name"=>"Antivirus", "link"=>"system.php?pc=$pc&view=security&category=antivirus_xp,antivirus_other", "image"=>"images/antivirus.png", "title"=>"",),
"40"=>array("name"=>"Automatic Updating", "link"=>"system.php?pc=$pc&view=security&category=auto_updating", "image"=>"images/scsi.png", "title"=>"",),
"50"=>array("name"=>"Portscan", "link"=>"system.php?pc=$pc&view=security&category=nmap", "image"=>"images/nmap.png", "title"=>"",),
),
),
"60" => array("name"=>"Users & Groups",
"link"=>"system.php?pc=$pc&view=users_groups",
"image"=>"images/users_2.png",
"class"=>"menuparent",
"childs"=>array("10"=>array("name"=>"All", "link"=>"system.php?pc=$pc&view=users_groups&category=", "image"=>"images/statistics.png", "title"=>"",),
"20"=>array("name"=>"Users", "link"=>"system.php?pc=$pc&view=users_groups&category=users", "image"=>"images/users.png", "title"=>"",),
"30"=>array("name"=>"Groups", "link"=>"system.php?pc=$pc&view=users_groups&category=groups", "image"=>"images/groups.png", "title"=>"",),
),
),
"70" => array("name"=>"IIS Settings",
"link"=>"system.php?pc=$pc&view=iis",
"image"=>"images/browser.png",
"title"=>"",
),
"80" => array("name"=>"Disk Usage Graphs",
"link"=>"system_graphs.php?pc=$pc",
"image"=>"images/harddisk.png",
"title"=>"",
),
"90" => array("name"=>"Audit Trail",
"link"=>"./list.php?pc=$pc&view=audit_trail_for_system",
"image"=>"images/audit.png",
"title"=>"",
),
"100" => array("name"=>"PDF-Report (Quick)",
"link"=>"system_export.php?pc=$pc&view=report",
"image"=>"images/printer_l.png",
"title"=>"",
),
"110" => array("name"=>"PDF-Report (Full)",
"link"=>"system_export.php?pc=$pc&view=report_full",
"image"=>"images/printer.png",
"title"=>"",
),
),
"misc" => array(
"10" => array("name"=>"Queries",
"link"=>"./list.php?view=all_systems",
"title"=>"Total Computers",
"class"=>"menuparent",
"childs"=>array("10"=>array("name"=>"All Audited Systems", "link"=>"./list.php?view=all_systems", "image"=>"images/computer.png", "title"=>"All Audited Systems",),
"15"=>array("name"=>"All Systems More Info", "link"=>"./list.php?view=all_systems_more", "image"=>"images/computer.png", "title"=>"All Audited Systems More Info",),
"20"=>array("name"=>"All Servers", "link"=>"./list.php?view=all_servers", "image"=>"images/server.png", "title"=>"All Servers",),
"30"=>array("name"=>"All Win-Workstations", "link"=>"./list.php?view=all_win_workstations", "image"=>"images/computer_2.png", "title"=>"All Win-Workstations",),
"40"=>array("name"=>"All Laptops", "link"=>"./list.php?view=all_laptops", "image"=>"images/laptop.png", "title"=>"All Laptops",),
"50"=>array("name"=>"All Software", "link"=>"./list.php?view=all_software", "image"=>"images/software_2.png", "title"=>" All Software",),
"55"=>array("name"=>"All Software with Hosts", "link"=>"./list.php?view=all_software_hosts", "image"=>"images/software_2.png", "title"=>"All Software with Hosts",),
"56"=>array("name"=>"All Anti Virus Status", "link"=>"./list.php?view=all_systems_virus_uptodate", "image"=>"images/o_firewall.png", "title"=>" All Anti Virus Software",),
"60"=>array("name"=>"All Hotfixes & Patches", "link"=>"./list.php?view=all_hotfixes_patches", "image"=>"images/software.png", "title"=>"All Hotfixes & Patches",),
"70"=>array("name"=>"All IE BHO's", "link"=>"./list.php?view=all_ie_bho", "image"=>"images/browser_bho.png", "title"=>"All IE Browser-Helper-Objects",),
"80"=>array("name"=>"All Services", "link"=>"./list.php?view=all_services", "image"=>"images/services.png", "title"=>"All Services",),
"90"=>array("name"=>"All Scheduled Tasks", "link"=>"list.php?pc=$pc&view=all_sch_tasks", "image"=>"images/sched_task_l.png", "title"=>"",),
"100"=>array("name"=>"All Software Keys", "link"=>"./list.php?view=all_keys", "image"=>"images/key_2.png", "title"=>"All Keys",),
"110"=>array("name"=>"All MS Office-Keys", "link"=>"./list.php?view=keys_for_software&type=office%&headline_addition=Office", "image"=>"images/key_1.png", "title"=>"All Office Keys",),
"120"=>array("name"=>"All MS Windows-Keys", "link"=>"./list.php?view=keys_for_software&type=windows%&headline_addition=Windows", "image"=>"images/key_3.png", "title"=>"All Widnows Keys",),
"130"=>array("name"=>"All MS Windows Shares", "link"=>"./list.php?view=all_network_shares", "image"=>"images/shared_drive_l.png", "title"=>"All Windows Shares by Host",),
"140"=>array("name"=>"All MS Windows Local Administrators", "link"=>"./list.php?view=all_win_admins", "image"=>"images/users.png", "title"=>"All Windows Administrators by Host",),
"150"=>array("name"=>"All Mapped Drives", "link"=>"./list.php?view=all_mapped_drives", "image"=>"images/shared_drive_l.png", "title"=>"All Mapped Drives by Host",),
),
),
"20" => array("name"=>"Other Items",
"link"=>"#",
"class"=>"menuparent",
"childs"=>array("10"=>array("name"=>"Printers", "link"=>"./list.php?view=all_printers", "image"=>"images/printer.png", "title"=>"List all Printer",),
"20"=>array("name"=>"Monitors", "link"=>"./list.php?view=all_monitors", "image"=>"images/display.png", "title"=>"",),
"30"=>array("name"=>"Networked Items", "link"=>"./list.php?view=other_networked", "image"=>"images/network_device.png", "title"=>"",),
"40"=>array("name"=>"Non-Networked", "link"=>"./list.php?view=other_non_networked", "image"=>"images/non_network.png", "title"=>"",),
"50"=>array("name"=>"All Other Devices", "link"=>"./list.php?view=other_all", "image"=>"images/non_network.png", "title"=>"",),
),
),
"30" => array("name"=>"Discovered Ports",
"link"=>"#",
"class"=>"menuparent",
"childs"=>array("10"=>array("name"=>"All Active Ports", "link"=>"./list.php?view=all_nmap_ports", "image"=>"images/nmap.png", "title"=>"Active ports discovered by NMAP scan",),
"20"=>array("name"=>"All Active Ports with hosts", "link"=>"./list.php?view=nmap_ports_hosts", "image"=>"images/nmap.png", "title"=>"Active ports discovered by NMAP scan with hosts",),
"30"=>array("name"=>"Active Ports on Systems", "link"=>"./list.php?view=all_nmap_ports_systems", "image"=>"images/nmap.png", "title"=>"Active ports discovered by NMAP scan on systems",),
"40"=>array("name"=>"Active Ports with Systems", "link"=>"./list.php?view=nmap_ports_systems", "image"=>"images/nmap.png", "title"=>"Active ports discovered by NMAP scan with systems",),
"50"=>array("name"=>"Active Ports on Other Hosts", "link"=>"./list.php?view=all_nmap_ports_other", "image"=>"images/nmap.png", "title"=>"Active ports discovered by NMAP scan on other systems",),
"60"=>array("name"=>"Active Ports with Other Hosts", "link"=>"./list.php?view=nmap_ports_other", "image"=>"images/nmap.png", "title"=>"Active ports discovered by NMAP scan with other systems",),
),
),
"40" => array("name"=>"Software Register",
"link"=>"#",
"class"=>"menuparent",
"childs"=>array("10"=>array("name"=>"Software Register", "link"=>"./software_register.php", "image"=>"images/software.png", "title"=>"",),
"20"=>array("name"=>"Add Software", "link"=>"./software_register_add.php", "image"=>"images/software_2.png", "title"=>"",),
"30"=>array("name"=>"Delete Software", "link"=>"./software_register_del.php", "image"=>"images/software_3.png", "title"=>"",),
),
),
"50" => array("name"=>"Statistics",
"link"=>"#",
"class"=>"menuparent",
"childs"=>array("10"=>array("name"=>"OS Type", "link"=>"./list.php?view=statistic_os", "image"=>"images/os.png", "title"=>"OS Type",),
"20"=>array("name"=>"IE Versions", "link"=>"./list.php?view=statistic_ie", "image"=>"images/browser.png", "title"=>"Internet Explorer Versions",),
"25"=>array("name"=>"Firefox Versions", "link"=>"./list.php?view=statistic_firefox", "image"=>"images/browser_ff.png", "title"=>"Mozilla Firefox Versions",),
"30"=>array("name"=>"Memory Size", "link"=>"./list.php?view=statistic_memory", "image"=>"images/memory.png", "title"=>"Memory Size",),
"40"=>array("name"=>"Processor Types", "link"=>"./list.php?view=statistic_processor", "image"=>"images/processor.png", "title"=>"Processor Types",),
"50"=>array("name"=>"Hard Drive", "link"=>"./list.php?view=statistic_harddrive", "image"=>"images/harddisk.png", "title"=>"Hard Drive",),
"60"=>array("name"=>"Keys", "link"=>"./list.php?view=statistic_keys", "image"=>"images/key_2.png", "title"=>"Keys",),
"70"=>array("name"=>"Gateway", "link"=>"list.php?view=statistic_gateway", "image"=>"images/network_device.png", "title"=>"",),
/* This next bit wont work, we need a Parameter for each choice FIXME
"70"=>array("name"=>"AllByOSType", "link"=>"statistics.php?sub=s12", "image"=>"images/o_specialized.png", "title"=>"",),
"80"=>array("name"=>"AllByIeVersions", "link"=>"statistics.php?sub=s13", "image"=>"images/browser_l.png", "title"=>"",),
"90"=>array("name"=>"AllByMemorySizes", "link"=>"statistics.php?sub=s14", "image"=>"images/memory.png", "title"=>"",),
"100"=>array("name"=>"AllByProcessor", "link"=>"statistics.php?sub=s15", "image"=>"images/processor.png", "title"=>"",),
"110"=>array("name"=>"AllByDisks", "link"=>"statistics.php?sub=s16", "image"=>"images/harddisk.png", "title"=>"",),
*/
),
),
"60" => array("name"=>"Admin",
"link"=>"#",
"class"=>"menuparent",
"childs"=>array("10"=>array("name"=>"Config", "link"=>"admin_config.php?sub=1", "image"=>"images/settings.png", "title"=>"",),
// "20"=>array("name"=>"Audit Config", "link"=>"setup_audit.php", "image"=>"images/settings_2.png", "title"=>"",),
"30"=>array("name"=>"Add a System", "link"=>"admin_pc_add_1.php?sub=1", "image"=>"images/add.png", "title"=>"",),
"40"=>array("name"=>"Delete Systems", "link"=>"./delete_systems.php", "image"=>"images/delete.png", "title"=>"",),
"45"=>array("name"=>"Delete Systems Not Audited in the last " . $days_systems_not_audited ." days", "link"=>"./delete_missed_audits.php", "image"=>"images/delete.png", "title"=>"",),
// "45"=>array("name"=>"Delete Systems Not Audited in the last " . $days_systems_not_audited ." days", "link"=>"./list.php?view=delete_missed_audit", "image"=>"images/delete.png", "title"=>"",),
"50"=>array("name"=>"Delete Other Items", "link"=>"./delete_other_systems.php", "image"=>"images/delete.png", "title"=>"",),
"60"=>array("name"=>"Audit My Machine", "link"=>"launch_local_audit.php", "image"=>"images/audit.png", "title"=>"Download and Run the Audit Script from your machine.",),
"70"=>array("name"=>"Backup Database", "link"=>"database_backup_form.php", "image"=>"images/tape.png", "title"=>"",),
"80"=>array("name"=>"Restore Database", "link"=>"database_restore_form.php", "image"=>"images/tape.png", "title"=>"",),
),
),
"70" => array("name"=>"Help",
"link"=>"#",
"class"=>"menuparent",
"childs"=>array("10"=>array("name"=>"Frequently Asked Questions", "link"=>"http://www.open-audit.org/phpBB3/viewforum.php?f=6", "image"=>"images/summary_l.png", "title"=>"Browse the FAQs at open-audit.org",),
// "20"=>array("name"=>"Audit Config", "link"=>"setup_audit.php", "image"=>"images/settings_2.png", "title"=>"",),
"30"=>array("name"=>"Support", "link"=>"http://www.open-audit.org/phpBB3/viewforum.php?f=10", "image"=>"images/browser_bho_l.png", "title"=>"Support from Open-Adudit.org",),
"40"=>array("name"=>"Using Open-Audit with OpenOffice", "link"=>"./tutorials/Open Audit Battery Report.htm", "image"=>"images/x-office-spreadsheet.png", "title"=>"Using the Open-Audit database from OpenOffice to create more complex reports.",),
),
),
),
);
?>