| // Call a function to make sure the system is set up properly before running anything, located in functions.php setupCheck(); // Trying to log in. if ($password && $username) { $xmlUser = new XML("./settings/applicationSettings.xml.php"); // Pull login info. $savedUsername = $xmlUser->nodes["/applicationSettings[1]/authentication[1]/username[1]"]["text"]; $savedPassword = $xmlUser->nodes["/applicationSettings[1]/authentication[1]/password[1]"]["text"]; if (strtoupper($savedUsername) == strtoupper($username) && strtoupper($savedPassword) == strtoupper($password) ) { session_register("sess_login"); // we are now logged in. $_SESSION["sess_login"] = true; // we are now logged in. session_register("sess_pass"); // tracks the steps visited in the process. session_register("steps_visited"); ?> exit(); // login was incorrect. } else { $displayMsgs[count($displayMsgs)+1] = $messages['applicationLoginInformationIncorrect']; } } ?> |