' . $credit_report . '
';
}
$destination_address = getExperianAddress();
} else if ($experian_report == 2) { // equif
if (!empty($credit_report)) {
$credit_report_string = 'Equifax Confirmation # ' . $credit_report . '
';
}
$destination_address = getEquifaxAddress();
} else if ($experian_report == 3) { // trans
if (!empty($credit_report)) {
$credit_report_string = 'Trans Union File # ' . $credit_report . '
';
}
$destination_address = getTransUnionAddress();
} else {
$destination_address = !empty($_POST['credit_bureau_name_address']) ? $_POST['credit_bureau_name_address'] : "";
}
if (!empty($creditor1)) {
$creditor1 = '' . $creditor1 . '';
}
if (!empty($creditor2)) {
$creditor2 = '' . $creditor2 . '';
}
$varList = array(
'__TODAY_DATE__',
'__NAME__',
'__STREET_NO_STREET_NAME__',
'__CITY_STATE__',
'__SSN__',
'__DOB__',
'__DESTINATION_ADDRESS__',
'__SCIENCERELY__',
'__CREDIT_REPORT_STRING__',
'__ALLEGED_INQUIRY__',
'__ALLEGED_ACCOUNT__'
);
$valueList = array(
$today,
$name,
$street_info,
$city_info,
$ssn,
$dob,
$destination_address,
$sincerely,
$credit_report_string,
$creditor2,
$creditor1
);
for ($i = 1; $i <= 3; $i++) {
if (isset($_FILES["image" . $i]["name"]) && !empty($_FILES["image" . $i]["name"])) {
$html = str_replace(["__ATTACH_PLEASE__"], ["See the Attached PLEASE:"], $html);
$imagefilename[$i] = mt_rand(0, 1000) . time() . '_' . $_FILES["image" . $i]["name"];
move_uploaded_file($_FILES["image" . $i]["tmp_name"], $imagefilename[$i]);
$deletionArray[] = $imagefilename[$i];
$varList[] = "__image" . $i . "__";
$valueList[] = $imagefilename[$i];
$start = "__START" . $i . "__";
$end = "__END" . $i . "__";
$html = str_replace(array($start, $end), array("", ""), $html);
// $serialLineHTML = $serialLineHTML.$fileNameArray[$i-1]."
";
} else {
$from = strpos($html, "__START" . $i . "__");
$to = strpos($html, "__END" . $i . "__");
$html = str_replace(substr($html, $from, ($to - $from) + 7 + strlen($i)), "", $html);
}
}
$html = str_replace(["__ATTACH_PLEASE__"], [""], $html);
require("../common_file.php");