include("version_config.php"); include("version_inc.php"); ?> $mfd_year = $DEFAULT_MFD_YEAR; $mfd_month = ""; $mfd_day = ""; $xbox_serial = ""; $xbox_version = ""; $used_date_to_detect = false; //figure out what kind of version processing to perform if (isset($_POST["xboxserialnumber"]) and ($_POST["xboxserialnumber"] <> "")){ $xbox_serial = clean_serial_input($_POST["xboxserialnumber"]); $xbox_version = get_xbox_version_by_serial($xbox_serial); } elseif ( isset($_POST["mfd_year"]) ) { $mfd_year = $_POST["mfd_year"]; if(isset($_POST["mfd_month"]) and ($_POST["mfd_month"] <> "")) { $mfd_month = $_POST["mfd_month"]; if (isset($_POST["mfd_day"]) and ($_POST["mfd_day"] <> "")) { $mfd_day = $_POST["mfd_day"]; $xbox_version = get_xbox_version_by_date($mfd_year, $mfd_month, $mfd_day); $used_date_to_detect = true; } } } ?>