$show_os_post = GetPOSTOrDefaultValue('show_os_post', 'n'); $show_date_audited_post = GetPOSTOrDefaultValue('show_date_audited_post', 'n'); $show_type_post = GetPOSTOrDefaultValue('show_type_post', 'n'); $show_description_post = GetPOSTOrDefaultValue('show_description_post', 'n'); $show_domain_post = GetPOSTOrDefaultValue('show_domain_post', 'n'); $show_service_pack_post = GetPOSTOrDefaultValue('show_service_pack_post', 'n'); $count_system_post = GetPOSTOrDefaultValue('count_system_post', ''); $vnc_type_post = GetPOSTOrDefaultValue('vnc_type_post', 'ultra'); $decimalplaces_post = GetPOSTOrDefaultValue('decimalplaces_post', '2'); $management_domain_suffix_post = GetPOSTOrDefaultValue('management_domain_suffix_post', 'local'); $show_ldap_changes_post = GetPOSTOrDefaultValue('show_ldap_changes_post', 'n'); $ldap_changes_days_post = GetPOSTOrDefaultValue('ldap_changes_days_post', 'n'); $show_systems_audited_graph_post = GetPOSTOrDefaultValue('show_systems_audited_graph_post', 'n'); $systems_audited_days_post = GetPOSTOrDefaultValue('systems_audited_days_post', 'n'); $admin_list_post = GetVarOrDefaultValue($admin_list, array('Domain Admins')); $user_list_post = GetVarOrDefaultValue($user_list, array('Domain Users')); if (!$break) { /********************************************************************************************************** Create a new 'include_config.php' file based on the validated $_POST Settings **********************************************************************************************************/ $filename = 'include_config.php'; $content = "<?php\n"; $content .= "// Ensures that all variables have a default value\n"; $content .= "include_once \"include_config_defaults.php\";\n\n"; // **************** General Settings ******************************************* $content .= "// **************** General Settings *******************************************\n"; $content .= "\$language = '" . $language_post . "';\n"; $content .= "\$mysql_server = '" . $_POST['mysql_server_post'] . "';\n"; $content .= "\$mysql_user = '******'mysql_user_post'] . "';\n"; $content .= "\$mysql_password = '******'mysql_password_post'] . "';\n"; $content .= "\$mysql_database = '" . $_POST['mysql_database_post'] . "';\n\n";
include_once "include_functions.php"; include "include_dell_warranty_functions.php"; // Added by Andrew Hull to allow us to grab Dell Warranty details from the Dell website include_once "include_col_scheme.php"; $page = GetVarOrDefaultValue($page); if ($page == "add_pc") { $use_pass = "******"; $_SESSION["username"] = "******"; $_SESSION["role"] = "none"; } else { if (GetVarOrDefaultValue($use_https) == "y") { if ($_SERVER["SERVER_PORT"] != 443) { RedirectToUrl("https://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']); } } if (GetVarOrDefaultValue($use_ldap_login) == 'y') { include "include_ldap_login.php"; } } ?> <!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> <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" />--> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link media="screen" rel="stylesheet" type="text/css" href="default.css" /> <link media="print" rel="stylesheet" type="text/css" href="defaultprint.css" /> <!--[if lt IE 7]><link media="screen" rel="stylesheet" type="text/css" href="iefix.css" /><![endif]-->
[Nick Brown] 02/03/2009 Only a minor change - the "logout" link in the top right of the page now displays the user's role (admin/user) as well as their name. [Nick Brown] 17/04/2009 Minor improvement to SQL query that retrieves audited system from DB **********************************************************************************************************/ include_once "include_config.php"; include_once "include_lang.php"; include_once "include_functions.php"; include "include_dell_warranty_functions.php"; // Added by Andrew Hull to allow us to grab Dell Warranty details from the Dell website include_once "include_col_scheme.php"; $page = GetVarOrDefaultValue($page); ?> <!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> <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" />--> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link media="screen" rel="stylesheet" type="text/css" href="default.css" /> <link media="print" rel="stylesheet" type="text/css" href="defaultprint.css" /> <!--[if lt IE 7]><link media="screen" rel="stylesheet" type="text/css" href="iefix.css" /><![endif]--> <!--[if lt IE 7]><link media="print" rel="stylesheet" type="text/css" href="iefix.css" /><![endif]--> <script type="text/javascript"> /*<![CDATA[*/