"; } else { $from = strpos($html, "__STARTM".$i."__"); $to = strpos($html, "__ENDM".$i."__"); $html = str_replace(substr($html,$from,($to-$from)+8+strlen($i)),"",$html); } } } include '../common_image_file.php'; for($i=1;$i<= 5;$i++){ if(isset($_POST["creditor".$i]) && !empty($_POST["creditor".$i])){ $creditor[$i] = $_POST["creditor".$i]; $varList[] = "__CREDITOR".$i."__"; $valueList[] = nl2br($creditor[$i]); $start = "__START".$i."__"; $end = "__END".$i."__"; $html = str_replace(array($start,$end),array("",""),$html); } else { $from = strpos($html, "__START".$i."__"); $to = strpos($html, "__END".$i."__"); $html = str_replace(substr($html,$from,($to-$from)+7+strlen($i)),"",$html); } } require("../common_file.php"); } else { $url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."RTG-V1S5-LatePayment-to-Creditor-or-Data-Furnisher-attack-LETTER.html"; header("Location:".$url); } ?>