" . str_replace("+"," ",urldecode($_POST['ichat'])) . "
" . file_get_contents($ourfilename) . "
","
",str_replace(" onload="," data-onload=",$htmlis))); //file_put_contents("sendemail.xxx", file_get_contents("sendemail.xxx") . $htmlis . "\n"); echo str_replace("parent.","top.",$htmlis); if (file_exists("x_" . $enduring . ".htm")) { sleep(19); //sleep(9); //if (file_exists("x_" . $enduring . ".htm")) { unlink("x_" . $enduring . ".htm"); } } } else { exit; } } else { // here from email or SMS link $biis=""; $soi=""; $sra=""; $cont=""; //file_put_contents("xz.xz", $_SERVER['QUERY_STRING'] . " ... " . $_SERVER['HTTP_REFERER']); //echo "chat_" . str_replace("@","",str_replace("+"," ",urldecode($_GET['address']))) . "__*.lin*\n"; foreach (glob("chat_" . str_replace("@","",str_replace("+"," ",urldecode($_GET['address']))) . "__*.lin*") as $ourfilename) { $sra=explode(".",explode("chat_" . str_replace("@","",str_replace("+"," ",urldecode($_GET['address']))) . "__", $ourfilename)[1])[0]; $soi=substr($sra, (strlen($sra) - strlen($enduring)), strlen($enduring)); $pofn="x_" . $soi . ".html"; if (file_exists($pofn)) { $odu=file_get_contents($pofn); if (strpos($odu, '"data:') !== false) { $biis='background-image:linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8)),URL(data:' . explode('"', explode('"data:', $odu)[1])[0] . ");"; } else if (strpos($odu, "'data:") !== false) { $biis='background-image:linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8)),URL(data:' . explode("'", explode("'data:", $odu)[1])[0] . ");"; } } $scont=file_get_contents($ourfilename); $cont="" . str_replace("~~","",str_replace("~~","",$scont)) . ""; //$cont="" . $scont . ""; //echo $cont . " ... " . $sra . " ... " . file_get_contents($ourfilename); //exit; if (trim($scont) != "") { $scont=' ... starting with "' . file_get_contents($ourfilename) . '"'; } //echo $cont . " ... " . $sra . " ... " . file_get_contents($ourfilename); //exit; if (strpos($ourfilename, ".lin2") !== false) { rename($ourfilename, explode(".lin2", $ourfilename)[0] . ".line"); $datait=" data-"; } else { unlink($ourfilename); } } echo "