$page = ""; $extra = ""; $software = ""; $count = 0; $total_rows = 0; $latest_version = "09.03.17"; // Check for config, otherwise run setup //@(include_once "include_config.php") OR die(header("Location: setup.php")); // Modified by Nick Brown - don't want to actually include the file yet if (!file_exists("include_config.php")) { exit(header("Location: setup.php")); } // Nick Brown - alternative method include "include.php"; $software = GetGETOrDefaultValue("software", ""); $sort = GetGETOrDefaultValue("sort", "system_name"); $validate = GetGETOrDefaultValue("validate", "n"); ?> <script type='text/javascript' src="javascript/ajax.js"></script> <!-- Create HttpRequestors --> <script type='text/javascript'>//<![CDATA[ <?php if ($show_system_discovered == "y") { echo "var DiscoveredSystemsXml=new HttpRequestor('RecentlyDiscoveredSystems');\n"; } if ($show_other_discovered == "y") { echo "var OtherDiscoveredXml=new HttpRequestor('OtherDiscovered');\n"; } if ($show_systems_not_audited == "y") { echo "var SystemsNotAuditedXml=new HttpRequestor('SystemsNotAudited');\n"; }
function switchUl(id){ if(document.getElementById){ a=document.getElementById(id); a.style.display=(a.style.display!="none")?"none":"block"; } } /*]]>*/ </script> </head> <body> <?php $pc = GetGETOrDefaultValue("pc", ""); $sub = GetGETOrDefaultValue("sub", "all"); $sort = GetGETOrDefaultValue("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"; } ?> <center>