inital commit
This commit is contained in:
213
webroot/V3.0/RTG-Wave-3.7-L1-L3-Day-1-OTHER.php
Normal file
213
webroot/V3.0/RTG-Wave-3.7-L1-L3-Day-1-OTHER.php
Normal file
@@ -0,0 +1,213 @@
|
||||
<?php
|
||||
require("../functions.php");
|
||||
require("creditor_addresses.php");
|
||||
|
||||
|
||||
function getAllegedAccountContent($string){
|
||||
$result = "";
|
||||
|
||||
if(!empty($string)){
|
||||
|
||||
$content = '<span style="font-size: 14;text-align: justify;width: 100%;"> Below are the accounts in question: Creditor(s) alleging the negative item(s) and alleged account
|
||||
number(s) and or description(s) of the NOT PROVEN CURRENT,TRUE, ACCURATE,
|
||||
COMPLETE, TIMELY, MINE,MY RESPONSIBILITY, and or elsewise lawfully adequate for
|
||||
ethical reporting:</span><br/><br/>';
|
||||
|
||||
$result = $content.setTextHightlight($string);
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
// Define variables for file names
|
||||
$pdf_name = "RTG-Wave-3.7-L1-L3-Day-1-OTHER.pdf";
|
||||
$html_format_name = "RTG-Wave-3.7-L1-L3-Day-1-OTHER_FORMAT.html";
|
||||
|
||||
//collect required POST form's input
|
||||
|
||||
$cra_report = 1;
|
||||
$cra_data = $_POST["cr_data"];
|
||||
$first_name = $_POST["first_name"];
|
||||
$last_name = $_POST["last_name"];
|
||||
$street_no = $_POST["street_no"];
|
||||
$street_name = $_POST["street_name"];
|
||||
$city = $_POST["city"];
|
||||
$state = $_POST["state"];
|
||||
$ssn = $_POST["ssn"];
|
||||
$dob = $_POST["dob"];
|
||||
//$zip = $_POST["zip"];
|
||||
$image_heading = "";
|
||||
$personal_tracking_number = getPersonalTrackingNumber();//$_POST["personal_tracking_number"];
|
||||
$credit_bureau_name_address = nl2br($_POST["credit_bureau_name_address"]);
|
||||
$sincerely = $_POST["sincerely"];
|
||||
|
||||
$image_heading_content = getImageHeaingConetnt($first_name, $last_name,$street_no, $street_name, $city, $state, $dob, $ssn);
|
||||
|
||||
$image1 = $_POST["image1"];
|
||||
$image2 = $_POST["image2"];
|
||||
$image3 = $_POST["image3"];
|
||||
$image4 = $_POST["image4"];
|
||||
$image5 = $_POST["image5"];
|
||||
|
||||
for($i=1;$i<= 5;$i++){
|
||||
if(isset($_FILES["image".$i]["name"]) && !empty($_FILES["image".$i]["name"])){
|
||||
$image_heading = $image_heading_content;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($image1) ||
|
||||
!empty($image2) ||
|
||||
!empty($image3) ||
|
||||
!empty($image4) ||
|
||||
!empty($image5)){
|
||||
$image_heading = $image_heading_content;
|
||||
}
|
||||
|
||||
//$alleged_account = $_POST["alleged_account"];
|
||||
$alleged_account1 = isset($_POST["alleged_account1"]) ? nl2br($_POST["alleged_account1"]) : "";
|
||||
$alleged_account2 = isset($_POST["alleged_account2"]) ? nl2br($_POST["alleged_account2"]) : "";
|
||||
$alleged_account3 = isset($_POST["alleged_account3"]) ? nl2br($_POST["alleged_account3"]) : "";
|
||||
$alleged_account4 = isset($_POST["alleged_account4"]) ? nl2br($_POST["alleged_account4"]) : "";
|
||||
|
||||
|
||||
$alleged_account2 = getAllegedAccountContent($alleged_account2);
|
||||
$alleged_account3 = getAllegedAccountContent($alleged_account3);
|
||||
$alleged_account4 = getAllegedAccountContent($alleged_account4);
|
||||
|
||||
// $alleged_account_string = "";
|
||||
|
||||
// if(!empty($alleged_account1)){
|
||||
// $alleged_account_string = $alleged_account1;
|
||||
// }
|
||||
|
||||
// if(!empty($alleged_account2)){
|
||||
// if(!empty($alleged_account_string)){
|
||||
// $alleged_account_string = "<br/>". $alleged_account2;
|
||||
// }else{
|
||||
// $alleged_account_string = $alleged_account2;
|
||||
// }
|
||||
// }
|
||||
|
||||
$report_file_name = $_POST["report_file_name"];
|
||||
|
||||
if($report_file_name == "1"){
|
||||
$report_name_prefix = "Experian";
|
||||
|
||||
$credit_bureau_name_address = getExperianAddress();
|
||||
|
||||
} else if($report_file_name == "2"){
|
||||
$report_name_prefix = "Equifax Confirmation";
|
||||
$credit_bureau_name_address = getEquifaxAddress();
|
||||
} else if($report_file_name == "3"){
|
||||
|
||||
$report_name_prefix = "TransUnion File";
|
||||
|
||||
$credit_bureau_name_address = getTransUnionAddress();
|
||||
} else if($report_file_name == "0"){
|
||||
$report_name_prefix = "";
|
||||
$credit_bureau_name_address = setTextHightlight(trim(nl2br($_POST["credit_bureau_name_address"])));
|
||||
}
|
||||
|
||||
|
||||
|
||||
// the unique pdf filename which will be saved on server
|
||||
$file_name = mt_rand(0, 1000).time().'_'.$pdf_name;
|
||||
|
||||
if(isset($cra_report)){
|
||||
|
||||
|
||||
//get html content from pre defined format
|
||||
$today = date("d M, Y");
|
||||
$html = file_get_contents($html_format_name);
|
||||
//echo $html;exit;
|
||||
if(empty($_POST["clientId"])){
|
||||
|
||||
$varList1 = array(
|
||||
'__CRA_REPORT__',
|
||||
'__FIRST_NAME__',
|
||||
'__LAST_NAME__',
|
||||
'__STREET_NO__',
|
||||
'__STREET_NAME__',
|
||||
'__CITY__',
|
||||
'__STATE__',
|
||||
'__TODAY__',
|
||||
'__PERSONAL_TRACKING_NUMBER__',
|
||||
'__credit_bureau_name_address__',
|
||||
//'__sincerely__',
|
||||
//'__ALLEGED_ACCOUNT__',
|
||||
'__ALLEGED_ACCOUNT1__',
|
||||
'__ALLEGED_ACCOUNT2__',
|
||||
'__ALLEGED_ACCOUNT3__',
|
||||
'__ALLEGED_ACCOUNT4__',
|
||||
'__SSN__',
|
||||
'__DOB__',
|
||||
//'__ZIP__',
|
||||
'__IMAGE_HEADING__'
|
||||
);
|
||||
|
||||
|
||||
$valueList1 = array(
|
||||
$cra_data,
|
||||
setTextHightlight($first_name),
|
||||
setTextHightlight($last_name),
|
||||
setTextHightlight($street_no),
|
||||
setTextHightlight($street_name),
|
||||
setTextHightlight($city),
|
||||
setTextHightlight($state),
|
||||
$today,
|
||||
$personal_tracking_number,
|
||||
setTextHightlight($credit_bureau_name_address),
|
||||
//$sincerely,
|
||||
//$alleged_account,
|
||||
setTextHightlight($alleged_account1),
|
||||
$alleged_account2,
|
||||
$alleged_account3,
|
||||
$alleged_account4,
|
||||
setTextHightlight($ssn),
|
||||
setTextHightlight($dob),
|
||||
//setTextHightlight($zip),
|
||||
$image_heading
|
||||
);
|
||||
for($i=1;$i<= 5;$i++){
|
||||
if(isset($_FILES["image".$i]["name"]) && !empty($_FILES["image".$i]["name"])){
|
||||
|
||||
$imagefilename[$i] = mt_rand(0, 1000).time().'_'.$_FILES["image".$i]["name"];
|
||||
upload_media($imagefilename[$i],$_POST['image'.$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]."<br/>";
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
$cra_report = $cra_data;
|
||||
include '../common_image_file.php';
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$varList = array_merge($varList,$varList1);
|
||||
$valueList = array_merge($valueList,$valueList1);
|
||||
|
||||
require("../common_file.php");
|
||||
|
||||
} else {
|
||||
$url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."RTG-WAVE-3.4-CHARGE-OFFS-Letter-1.html";
|
||||
header("Location:".$url);
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user