0) $_SESSION['require_software_agreement'] = true; $ask_to_change_password = maj_get_value("SELECT ask_to_change_password FROM siteuser WHERE id = '$MAJ_userid'"); if (preg_match("/$username/",$password) || $ask_to_change_password == 'y') { header("Location: $MAJ_site_root/change_password.$MAJ_file_extension"); } else if ($_SESSION['send_to'] != "" && !preg_match("/_file\.html/", $_SESSION['send_to'])) { // people were getting stuck on view_file.html and download_file.html header("Location: {$_SESSION['send_to']}"); } else { header("Location: $MAJ_site_root/mainmenu.$MAJ_file_extension"); } if ($MAJ_dont_log_attempted_passwords_at_login) $password = "********"; maj_log_login($username, $password, "success", $MAJ_number_of_failed_logins_for_lock, $MAJ_ip); exit; // shouldn't make it past here } } } // end if form submitted // start form content $content = "