"; if (isset($_GET['attachment']) || isset($_POST['attachment'])) { $inlineis=""; } $slh=""; if (isset($_GET['smallh'])) { $slh=str_replace("\"","\\\"",str_replace("+"," ",urldecode($_GET['smallh']))); } echo "

" . $honesmt . "

" . $inlineis . " To:
Subject:



"; } else { echo "

Incorrect usage.

"; } exit; } $phpcont=""; $body=""; $to=""; $cc=""; $bcc=""; $subj=""; $fns=[""]; $fnc=[""]; $filename=""; $hcont=""; $content=""; $ifromto=0; $fromu=[""]; $tou=[""]; $localdt=""; $mtypes = ["audio/x-aiff","audio/wav","audio/x-wav","audio/x-pn-realaudio","audio/x-mpegurl","audio/x-aiff","audio/mpeg","audio/mid", "audio/basic","audio/ogg","video/x-sgi-movie","video/x-msvideo","video/quicktime","audio/mp3","video/mp4","video/mpeg", "video/x-la-asf","video/ogg","video/webm","audio/mp4", "image/jpeg", "image/jpeg", "image/png", "image/gif", "image/bmp", "image/tif"]; $mexts = [".aiff",".wav",".wav",".ram",".m3u",".aiff",".mp3",".rmi", ".snd",".ogg",".movie",".avi",".mov",".mp3",".m4v",".mpeg", ".lsx",".ogv",".webm",".m4a", ".jpg", ".jpeg", ".png", ".gif", ".bmp", ".tif"]; $fflist=""; $ffname=""; $subjarr=["", "", "", ""]; function this_str_replace($zxc, $zxy, $zxz) { global $psacv; if ($psacv != "") { return $psacv; } return str_replace($zxc, $zxy, $zxz); } function zmail($zris, $zxsis, $ztis, $zhis) { global $subjarr, $fflist, $ffname, $localdt; // file_put_contents("091.091",""); if (strpos($zxsis, "[") === false && strpos($zxsis, "<") === false && $zxsis != "") { $zxsis.=" at [date] for [files]"; // file_put_contents("092.092",$zxsis); analtoken($zxsis, ""); } // file_put_contents("093.093",$fflist); subjtokenization($fflist, "files"); subjtokenization($ffname, "name"); // file_put_contents("094.094",$subjarr[0]); if ($ffname == "") { $zhis=str_replace("", $fflist, str_replace("[files]", $fflist, $zhis)); } $zhis=str_replace("", $fflist, str_replace("[files]", $fflist, str_replace("", $ffname, str_replace("[name]", $ffname, $zhis)))); // file_put_contents("095.095",$xsis); return mail($zris, subjtokenization($zxsis,"subject"), $ztis, $zhis); } function analtoken($inofinterest, $ifnotblankbody) { global $subjarr, $fflist, $ffname, $localdt; $inofinterest=trim($inofinterest); if ($ifnotblankbody == "" && $inofinterest != "") { // subject //file_put_contents("010.010",$inofinterest); if (strpos($inofinterest, "[") === false && strpos($inofinterest, "<") === false && $inofinterest != "") { $inofinterest.=" [lf] at [date] [lf] for [files]"; } //file_put_contents("011.011",$inofinterest); if (strpos(($inofinterest . "~"), "]~") !== false && strpos(($inofinterest . "~"), "[") !== false) { //file_put_contents("012.012",$inofinterest); $subjarr[3]="html"; if ($localdt != "") { $inofinterest=str_replace("[date]", $localdt, $inofinterest); } else { $inofinterest=str_replace("[date]", date('l jS \of F Y h:i:s A'), $inofinterest); } if (isset($_SERVER['HTTP_REFERER'])) { $inofinterest=str_replace("[httpreferer]", str_replace("square_hr_tracing.htm?worJUNKding", "square_hr_tracing.htm#wording", ('' . $_SERVER['HTTP_REFERER'])), $inofinterest); $inofinterest=str_replace("[serveraddr]", $_SERVER['SERVER_ADDR'], $inofinterest); $inofinterest=str_replace("[requesttime]", $_SERVER['REQUEST_TIME'], $inofinterest); $inofinterest=str_replace("[httpacceptlanguage]", $_SERVER['HTTP_ACCEPT_LANGUAGE'], $inofinterest); $inofinterest=str_replace("[httpuseragent]", $_SERVER['HTTP_USER_AGENT'], $inofinterest); $inofinterest=str_replace("[remoteaddr]", $_SERVER['REMOTE_ADDR'], $inofinterest); $inofinterest=str_replace("[requesturi]", $_SERVER['REQUEST_URI'], $inofinterest); if (isset($_SERVER['PATH_INFO'])) { $inofinterest=str_replace("[pathinfo]", $_SERVER['PATH_INFO'], $inofinterest); } } if ($ffname != "") { $inofinterest=str_replace("[name]", $ffname, $inofinterest); } $inofinterest=str_replace("[lf]", "\n", $inofinterest); $inofinterest=str_replace("[crlf]", "\r\n", $inofinterest); $inofinterest=str_replace(" ", " + ", $inofinterest); $huharr=explode("[", $inofinterest); // file_put_contents("013.013",$inofinterest); // $proposedih=$huharr[0]; if (strpos(($inofinterest . "~"), "]") !== false && strpos(($inofinterest . "~"), "[") !== false) { // file_put_contents("014.014",$inofinterest); for ($ih=1; $ih", str_replace("[", "<", str_replace("]", ">", $inofinterest)))); } else { if (strpos($inofinterest, "\n") !== false) { // file_put_contents("027.027",$inofinterest); $huharr=explode("\n", $inofinterest); $subjarr[1]=""; } else { $subjarr[1]="

" . str_replace(" ", " + ",$inofinterest) . "

"; // file_put_contents("028.028",$subjarr[1]); } } } else { // file_put_contents("016.016",$inofinterest); $subjarr[0]=str_replace("\n", " ", str_replace("\r\n", " ", $inofinterest)); if (strpos($inofinterest, "\n") !== false) { $huharr=explode("\n", $inofinterest); $subjarr[1]=""; } else { $subjarr[1]="

" . str_replace(" ", " + ",$inofinterest) . "

"; } } } } else if ($inofinterest != "") { // body if (strpos($inofinterest, "@") !== false) { if (strpos($inofinterest, "[") !== false && strpos($inofinterest, "]") !== false) { $ffname=trim(explode("[", explode(",", $inofinterest)[0])[0]); } else { $ffname=explode(",", $inofinterest)[0]; } } else { $ifnotblankbody=trim($ifnotblankbody); } } // file_put_contents("017.017",$inofinterest); return $inofinterest; } function subjtokenization($inthing, $inmode) { global $subjarr, $fflist, $ffname, $localdt; if ($inmode == "subject") { if ($subjarr[0] != "") { //file_put_contents("036.036",$subjarr[0]); if ($fflist == "" && $ffname == "") { return $subjarr[0]; } if ($fflist == "") { return str_replace("", $ffname, str_replace("[name]", $ffname, $subjarr[0])); } return str_replace("", $ffname, str_replace("[name]", $ffname, str_replace("", $fflist, str_replace("[files]", $fflist, str_replace("", $fflist, str_replace("[file]", $fflist, $subjarr[0])))))); } else if (strpos($inthing, "[") !== false) { if ($fflist == "" && $ffname == "") { if ($localdt != "") { return str_replace("[date]", $localdt, $inthing); } else { return str_replace("[date]", date('l jS \of F Y h:i:s A'), $inthing); } } if ($fflist == "") { if ($localdt != "") { return str_replace("", $ffname, str_replace("[name]", $ffname, str_replace("[date]", $localdt, $inthing))); } else { return str_replace("", $ffname, str_replace("[name]", $ffname, str_replace("[date]", date('l jS \of F Y h:i:s A'), $inthing))); } } if ($localdt != "") { return str_replace("", $ffname, str_replace("[name]", $ffname, str_replace("", $fflist, str_replace("[files]", $fflist, str_replace("", $fflist, str_replace("[file]", $fflist, str_replace("[date]", $localdt, $inthing))))))); } return str_replace("", $ffname, str_replace("[name]", $ffname, str_replace("", $fflist, str_replace("[files]", $fflist, str_replace("", $fflist, str_replace("[file]", $fflist, str_replace("[date]", date('l jS \of F Y h:i:s A'), $inthing))))))); } return str_replace("", $fflist, str_replace("[files]", $fflist, $inthing)); } else if (substr($inmode,0,11) == "bodysubject") { // file_put_contents("036.036",""); if ($subjarr[1] != "") { $bsprefix=""; if (strlen($inmode) > 11) { $bsprefix=str_replace("","",str_replace("","",str_replace("","",str_replace("","",substr($inmode,11))))); $tbdiv=""; $tbz=0; if (isset($_POST['doboth'])) { if (substr(($_POST['doboth'] . ' '),0,1) >= "0" && substr(($_POST['doboth'] . ' '),0,1) <= "9") { $tbz='' . $_POST['doboth']; } } else if (isset($_GET['doboth'])) { if (substr(($_GET['doboth'] . ' '),0,1) >= "0" && substr(($_GET['doboth'] . ' '),0,1) <= "9") { $tbz='' . $_GET['doboth']; } } $tbits=explode("top:", $bsprefix); for ($it=1; $it") { $tbz+=20; $bsprefix.="
"; } $subjarr[1]=str_replace("", $tbdiv, str_replace("", "" . str_replace(" ", " + ",$bsprefix), $subjarr[1])); } // file_put_contents("037.037",$subjarr[1]); if (substr($subjarr[1], 0, 1) == "<" && strpos($subjarr[1], "") !== false) { $subjarr[1]=str_replace("", "

" . str_replace("\n", "
", $inthing) . "

", $subjarr[1]); } else if (substr($subjarr[1], 0, 1) == "<" && strpos($subjarr[1], "") !== false) { $subjarr[1]=str_replace("", "

" . str_replace("\n", "
", $inthing) . "

", $subjarr[1]); } if ($fflist == "" || 1 == 1) { return $subjarr[1]; } return str_replace(" ", " + ",str_replace("", $fflist, str_replace("[files]", $fflist, $subjarr[1]))); } } else if ($inmode == "body") { if ($subjarr[2] != "") { return $subjarr[2]; } } else if ($inmode == "contenttype") { if ($subjarr[3] != "") { return $subjarr[3]; } } else if ($inmode == "file") { // file_put_contents("057.057",$subjarr[1]); $subjarr[1]=str_replace("", $inthing, str_replace("[file]", $inthing, $subjarr[1])); // file_put_contents("058.058",$subjarr[1]); } else if ($inmode == "name" && $inthing != "") { // file_put_contents("067.067",$subjarr[0]); $subjarr[0]=str_replace("", $inthing, str_replace("[name]", $inthing, $subjarr[0])); $subjarr[1]=str_replace("", $inthing, str_replace("[name]", $inthing, $subjarr[1])); if ($subjarr[0] != "" && $subjarr[1] != "") { if (strpos(preg_replace('/\s+/', ' ', str_replace("
","",str_replace("\n","",$subjarr[1]))), preg_replace('/\s+/', ' ', str_replace("
","",str_replace("\n","",$subjarr[0])))) !== false) { $subjarr[0].=explode("<", explode(preg_replace('/\s+/', ' ', str_replace("
","",str_replace("\n","",$subjarr[0]))), preg_replace('/\s+/', ' ', str_replace("
","",str_replace("\n","",$subjarr[1]))))[1])[0]; } } } else if ($inmode == "files" && $inthing != "") { // file_put_contents("067.067",$subjarr[0]); $subjarr[0]=str_replace("", $inthing, str_replace("[files]", $inthing, $subjarr[0])); $subjarr[1]=str_replace("", $inthing, str_replace("[files]", $inthing, $subjarr[1])); if ($subjarr[0] != "" && $subjarr[1] != "") { if (strpos(preg_replace('/\s+/', ' ', str_replace("
","",str_replace("\n","",$subjarr[1]))), preg_replace('/\s+/', ' ', str_replace("
","",str_replace("\n","",$subjarr[0])))) !== false) { $subjarr[0].=explode("<", explode(preg_replace('/\s+/', ' ', str_replace("
","",str_replace("\n","",$subjarr[0]))), preg_replace('/\s+/', ' ', str_replace("
","",str_replace("\n","",$subjarr[1]))))[1])[0]; } } } return $inthing; } function ourbase64_decode($instg) { return $instg; } function fillarraysmaybe($bdin) { global $phpcont, $fns, $fnc, $body; if (substr(($bdin . "<"),0,1) == "<") { return $bdin; } else { $ii=0; if (trim($phpcont) != "") { $ii=1; } $bd=" " . str_replace("\n"," ",str_replace("
"," ",str_replace("#"," ",str_replace("&"," ",str_replace("?"," ",str_replace(","," ",$bdin)))))) . " "; //file_put_contents("inv.inv9", $bd); $htbits=explode(" http", str_replace(" HTTP", " http", $bd)); if (sizeof($htbits) > 1) { for ($hi=1; $hi 0 && strpos(substr($htbits[$hi],0),".") !== false && strlen(substr($htbits[$hi],0)) > 2) { $fcc=""; if (strtolower(substr($htbits[$hi],0,1)) == "s") { try { $fcc=file_get_contents("http" . explode(" ", substr($htbits[$hi],1))[0]); } catch (Exception $ee) { $fcc=""; } } else { try { $fcc=file_get_contents("http" . explode(" ", substr($htbits[$hi],0))[0]); } catch (Exception $ee) { $fcc=""; } } if ($fcc != "") { $fnc[$ii]=chunk_split(base64_encode($fcc)); $fns[$ii]=explode("#", explode("?", explode("/", explode(" ", substr($htbits[$hi],0))[0])[-1 + sizeof(explode(" ", substr($htbits[$hi],0)))])[0])[0]; $ii++; } } } } $htbits=explode(" ", $bd); if (sizeof($htbits) > 1) { for ($hi=1; $hi 0 && strpos(substr($htbits[$hi],0),".") !== false && strlen(substr($htbits[$hi],0)) > 2 && strpos(strtolower(" " . substr($htbits[$hi],0)), " http") === false) { //file_put_contents("inv.inv99", "" . $ilen); $fcc=""; if (strpos(strtolower(" " . substr($htbits[$hi],0)), " //") !== false) { try { $fcc=file_get_contents("http:" . explode(" ", substr($htbits[$hi],0))[0]); } catch (Exception $ee) { $fcc=""; } } else if (file_exists(substr($htbits[$hi],0))) { //file_put_contents("inv.inv999", "" . explode(" ", substr($htbits[$hi],0))[0]); try { $fcc=file_get_contents(explode(" ", substr($htbits[$hi],0))[0]); //file_put_contents("inv.inv9999", "" . strlen($fcc)); } catch (Exception $ee) { $fcc=""; //file_put_contents("inv.inv99990", "" . strlen($fcc)); } } if ($fcc != "") { //file_put_contents("inv.inv999909", "" . explode("#", explode("?", explode("/", explode(" ", substr($htbits[$hi],0))[0])[-1 + sizeof(explode(" ", substr($htbits[$hi],0)))])[0])[0]); $fnc[$ii]=chunk_split(base64_encode($fcc)); $fns[$ii]=explode("#", explode("?", explode("/", explode(" ", substr($htbits[$hi],0))[0])[-1 + sizeof(explode(" ", substr($htbits[$hi],0)))])[0])[0]; $ii++; } } } } if ($fns[0] != "" && $phpcont == "") { $phpcont=" "; } return $bdin; } } $subptitle=''; $subdata=""; $subfile=""; $getpostfound=false; foreach( $_POST as $name=>$val ) { //file_put_contents("inv.preinv0", "inv.inv0"); if ($val != "") { //file_put_contents("jnv." . $name, "jnv.inv00 " . strlen($phpcont)); if ($name == "tdhuhta" && $subfile != "" && $subdata != "" && strpos(str_replace("+"," ",urldecode($val)), $subfile) !== false) { if (!isset($_POST['subjectis']) && (strpos(str_replace("+"," ",urldecode($val)), ' srcdoc="') !== false || strpos(str_replace("+"," ",urldecode($val)), ' data="') !== false || strpos(str_replace("+"," ",urldecode($val)), ' src="') !== false)) { //file_put_contents('baaa.aaa','b'); if (strpos(str_replace("+"," ",urldecode($val)), ' title="') !== false) { //file_put_contents('haaa.aaa',explode('/animegif/', explode('"', explode(' title="', str_replace("+"," ",urldecode($val)))[1])[0])[1]); if (!file_exists('../PHP/animegif/' . explode('/animegif/', explode('"', explode(' title="', str_replace("+"," ",urldecode($val)))[1])[0])[1] . 'animegif.pdf')) { //file_put_contents('iaaa.aaa','b'); if (file_exists('../PHP/animegif/animegif.pdf')) { //file_put_contents('jaaa.aaa','b'); copy('../PHP/animegif/animegif.pdf', '../PHP/animegif/' . explode('/animegif/', explode('"', explode(' title="', str_replace("+"," ",urldecode($val)))[1])[0])[1] . 'animegif.pdf'); //file_put_contents('kaaa.aaa','b'); } } if (strpos($subfile, ".pdf") !== false) { $psacv=explode('"', explode(' title="', str_replace("+"," ",urldecode($val)))[1])[0] . 'animegif.pdf'; $subptitle='Mobile whole PDF
'; } else if (strpos($subfile, ".gif") !== false) { $psacv=explode('"', explode(' title="', str_replace("+"," ",urldecode($val)))[1])[0] . '.gif'; $subptitle='Mobile whole Animated GIF
'; } //file_put_contents('paaa.aaa',$subptitle); } $vrest=explode('"', explode(' srcdoc="',str_replace("+"," ",urldecode($val)))[1])[0]; //$val=urlencode(""); //$val=urlencode(""); //$val=urlencode(""); if (strpos($subfile, ".pdf") !== false) { $val=urlencode("" . $subptitle . ""); } else if (strpos($subfile, ".gif") !== false) { $val=urlencode("" . $subptitle . ""); } } else { //file_put_contents('caaa.aaa','b'); $val=urlencode(str_replace($subfile, $subdata, str_replace("+"," ",urldecode($val)))); } //file_put_contents('aaa.aaa', str_replace("+"," ",urldecode($val))); } else if ($name == "tdhuhta" && $subfile != "" && $subdata != "" && strpos(str_replace("+"," ",urldecode($val)), ' data="') !== false) { $vrest='"' . explode('"', explode(' data="',str_replace("+"," ",urldecode($val)))[1])[1]; $val=urlencode(explode(' data="',str_replace("+"," ",urldecode($val)))[0] . ' data="' . $subdata . $vrest); //file_put_contents('aaaa.aaaa', str_replace("+"," ",urldecode($val))); } $getpostfound=true; //file_put_contents("inv.inv0", "inv.inv0"); if ($name != "inline" && substr(($name . " "),0,6) == "inline" && strpos(urldecode($val), ":") !== false && sizeof(explode(" ", urldecode($val))) <= 5 && trim(urldecode($val)) != "") { $localdt=str_replace("`", "+", str_replace("+", " ", str_replace("++", " `", urldecode($val)))); } else if ($name == "inline") { if ((strpos(str_replace("+"," ",urldecode($val)), 'animegif.pdf') !== false || strpos(str_replace("+"," ",urldecode($val)), '.gif') !== false) && isset($_POST['tdhuhta'])) { if (file_exists(str_replace("+"," ",urldecode($val)))) { //file_put_contents('aaa.aaa','b'); $subfile=str_replace("+"," ",urldecode($val)); //$subd=file_get_contents(str_replace("+"," ",urldecode($val))); if (strpos(urldecode($val), '.pdf') !== false) { $subdata='data:application/pdf;base64,' . base64_encode(file_get_contents(str_replace("+"," ",urldecode($val)))); } else if (strpos(urldecode($val), '.gif') !== false) { $subdata='data:image/gif;base64,' . base64_encode(file_get_contents(str_replace("+"," ",urldecode($val)))); } $val=""; $name="x"; $okayin=false; } } else if (strpos(str_replace("+"," ",urldecode($val)), '.gif') !== false && isset($_POST['tdhuhta'])) { if (file_exists(str_replace("+"," ",urldecode($val)))) { //file_put_contents('aaa.aaa','b'); $subfile=str_replace("+"," ",urldecode($val)); //$subd=file_get_contents(str_replace("+"," ",urldecode($val))); $subdata='data:image/gif;base64,' . base64_encode(file_get_contents(str_replace("+"," ",urldecode($val)))); $val=""; $name="x"; $okayin=false; } } if (strpos(("~" . strtolower(str_replace("+"," ",urldecode($val)))), "~http") !== false) { $fromu=explode(",", str_replace("+"," ",urldecode($val))); $ifromto=sizeof($fromu); for ($ijkh=0; $ijkh<$ifromto; $ijkh++) { $mediais="image/jpeg"; $thisext=strtolower(explode('.',$fromu[$ijkh])[-1 + sizeof(explode('.',$fromu[$ijkh]))]); for ($iexts=0; $iexts 100) { $phpcont=ourbase64_decode(urldecode($val)); if (1 == 2) { $pbits=explode('"data:', $phpcont); for ($ii=1; $ii",urldecode($val)))),""); //file_put_contents("021.021",$subj); } else if (strpos(str_replace("
"," ",str_replace("+"," ",str_replace("<","<",str_replace(">",">",strtolower(urldecode($val)))))), "<") !== false && strpos(str_replace("
"," ",str_replace("+"," ",str_replace("<","<",str_replace(">",">",strtolower(urldecode($val)))))), ">") !== false) { //file_put_contents("inv.inv00", "inv.inv00 " . strlen($phpcont)); if ($phpcont == "") { $phpcont=str_replace("+"," ",str_replace("<","<",str_replace(">",">",urldecode($val)))); if ($fromu[0] != "") { for ($ijkh=0; $ijkh<$ifromto; $ijkh++) { $phpcont=str_replace($fromu[$ijkh], $tou[$ijkh], $phpcont); } } $pbits=explode('"data:', $phpcont); for ($ii=1; $ii",strtolower(urldecode($val))))), "@") !== false) { //file_put_contents("inv.inv000", "inv.inv000"); if ($to == "") { $to=analtoken(str_replace("+"," ",str_replace("<","<",str_replace(">",">",urldecode($val))))," "); } else if ($cc == "") { $cc=str_replace("+"," ",str_replace("<","<",str_replace(">",">",urldecode($val)))); } else { $bcc=str_replace("+"," ",str_replace("<","<",str_replace(">",">",urldecode($val)))); } } else if (str_replace('0','',str_replace('1','',str_replace('2','',str_replace('3','',str_replace('4','',str_replace('5','',str_replace('6','',str_replace('7','',str_replace('8','',str_replace('9','',$subj)))))))))) == "") { $subj=str_replace("+"," ",str_replace("<","<",str_replace(">",">",urldecode($val)))); if (str_replace('0','',str_replace('1','',str_replace('2','',str_replace('3','',str_replace('4','',str_replace('5','',str_replace('6','',str_replace('7','',str_replace('8','',str_replace('9','',$subj)))))))))) == "") { $subj=""; } } else if (substr(($phpcont . " "),0,1) != "<") { //file_put_contents("inv.postinv0", $body); //file_put_contents("inv.inv0000", "inv.inv0000"); $body=analtoken(str_replace("+"," ",str_replace("<","<",str_replace(">",">",urldecode($val)))),$subj . " "); //file_put_contents("inv.postinv0", $body); //file_put_contents("inv.inv", $body); fillarraysmaybe($body); //file_put_contents("inv.ouv", "" . sizeof($fnc) . " " . $body); } } } foreach( $_GET as $name=>$val ) { //file_put_contents("inv.invxxx00", ""); if ($val != '') { if ($name == "tdhuhta" && $subfile != "" && $subdata != "" && strpos(str_replace("+"," ",urldecode($val)), $subfile) !== false) { if (!isset($_GET['subjectis']) && (strpos(str_replace("+"," ",urldecode($val)), ' srcdoc="') !== false || strpos(str_replace("+"," ",urldecode($val)), ' data="') !== false || strpos(str_replace("+"," ",urldecode($val)), ' src="') !== false)) { //file_put_contents('daaa.aaa','b'); //file_put_contents('qbaaa.aaa','b'); if (strpos(str_replace("+"," ",urldecode($val)), ' title="') !== false) { //file_put_contents('qhaaa.aaa',explode('/animegif/', explode('"', explode(' title="', str_replace("+"," ",urldecode($val)))[1])[0])[1]); if (!file_exists('../PHP/animegif/' . explode('/animegif/', explode('"', explode(' title="', str_replace("+"," ",urldecode($val)))[1])[0])[1] . 'animegif.pdf')) { //file_put_contents('qiaaa.aaa','b'); if (file_exists('../PHP/animegif/animegif.pdf')) { //file_put_contents('qjaaa.aaa','b'); copy('../PHP/animegif/animegif.pdf', '../PHP/animegif/' . explode('/animegif/', explode('"', explode(' title="', str_replace("+"," ",urldecode($val)))[1])[0])[1] . 'animegif.pdf'); //file_put_contents('qkaaa.aaa','b'); } } if (strpos($subfile, ".pdf") !== false) { $psacv=explode('"', explode(' title="', str_replace("+"," ",urldecode($val)))[1])[0] . 'animegif.pdf'; $subptitle='Mobile whole PDF
'; } else if (strpos($subfile, ".gif") !== false) { $psacv=explode('"', explode(' title="', str_replace("+"," ",urldecode($val)))[1])[0] . '.gif'; $subptitle='Mobile whole Animated GIF
'; } //file_put_contents('qpaaa.aaa',$subptitle); } $vrest=explode('"', explode(' srcdoc="',str_replace("+"," ",urldecode($val)))[1])[0]; //$val=urlencode(""); //$val=urlencode(""); //$val=urlencode("Mobile download
"); //$val=urlencode("" . $subptitle . ""); if (strpos($subfile, ".pdf") !== false) { $val=urlencode("" . $subptitle . ""); } else if (strpos($subfile, ".gif") !== false) { $val=urlencode("" . $subptitle . ""); } } else { //file_put_contents('faaa.aaa','b'); $val=urlencode(str_replace($subfile, $subdata, str_replace("+"," ",urldecode($val)))); } } else if ($name == "tdhuhta" && $subfile != "" && $subdata != "" && strpos(str_replace("+"," ",urldecode($val)), ' data="') !== false) { $vrest='"' . explode('"', explode(' data="',str_replace("+"," ",urldecode($val)))[1])[1]; $val=urlencode(explode(' data="',str_replace("+"," ",urldecode($val)))[0] . ' data="' . $subdata . $vrest); } } if ($name != "inline" && substr(($name . " "),0,6) == "inline" && strpos(urldecode($val), ":") !== false && sizeof(explode(" ", urldecode($val))) <= 5 && trim(urldecode($val)) != "") { $localdt=str_replace("`", "+", str_replace("+", " ", str_replace("++", " `", urldecode($val)))); } else if ($name == "inline") { if ((strpos(str_replace("+"," ",urldecode($val)), 'animegif.pdf') !== false || strpos(str_replace("+"," ",urldecode($val)), '.gif') !== false) && isset($_GET['tdhuhta'])) { if (file_exists(str_replace("+"," ",urldecode($val)))) { //file_put_contents('aaaa.aaaa','b'); $subfile=str_replace("+"," ",urldecode($val)); //$subd=file_get_contents(str_replace("+"," ",urldecode($val))); if (strpos(urldecode($val), '.pdf') !== false) { $subdata='data:application/pdf;base64,' . base64_encode(file_get_contents(str_replace("+"," ",urldecode($val)))); } else if (strpos(urldecode($val), '.gif') !== false) { $subdata='data:image/gif;base64,' . base64_encode(file_get_contents(str_replace("+"," ",urldecode($val)))); } $val=""; $name="x"; $okayin=false; } } else if (strpos(str_replace("+"," ",urldecode($val)), '.gif') !== false && isset($_GET['tdhuhta'])) { if (file_exists(str_replace("+"," ",urldecode($val)))) { //file_put_contents('aaaa.aaaa','b'); $subfile=str_replace("+"," ",urldecode($val)); //$subd=file_get_contents(str_replace("+"," ",urldecode($val))); $subdata='data:image/gif;base64,' . base64_encode(file_get_contents(str_replace("+"," ",urldecode($val)))); $val=""; $name="x"; $okayin=false; } } if (strpos(("~" . strtolower(str_replace("+"," ",urldecode($val)))), "~http") !== false) { $fromu=explode(",", str_replace("+"," ",urldecode($val))); $ifromto=sizeof($fromu); for ($ijkh=0; $ijkh<$ifromto; $ijkh++) { $mediais="image/jpeg"; $thisext=strtolower(explode('.',$fromu[$ijkh])[-1 + sizeof(explode('.',$fromu[$ijkh]))]); for ($iexts=0; $iexts 100) { $phpcont=ourbase64_decode(urldecode($val)); if (1 == 2) { $pbits=explode('"data:', $phpcont); for ($ii=1; $ii",urldecode($val)))),""); //file_put_contents("031.031",$subj); } else if (strpos(str_replace("
"," ",str_replace("+"," ",str_replace("<","<",str_replace(">",">",strtolower(urldecode($val)))))), "<") !== false && strpos(str_replace("
"," ",str_replace("+"," ",str_replace("<","<",str_replace(">",">",strtolower(urldecode($val)))))), ">") !== false) { if ($phpcont == "") { $phpcont=str_replace("+"," ",str_replace("<","<",str_replace(">",">",urldecode($val)))); if ($fromu[0] != "") { for ($ijkh=0; $ijkh<$ifromto; $ijkh++) { $phpcont=str_replace($fromu[$ijkh], $tou[$ijkh], $phpcont); } } $pbits=explode('"data:', $phpcont); for ($ii=1; $ii",strtolower(urldecode($val))))), "@") !== false) { if ($to == "") { $to=analtoken(str_replace("+"," ",str_replace("<","<",str_replace(">",">",urldecode($val)))), " "); } else if ($cc == "") { $cc=str_replace("+"," ",str_replace("<","<",str_replace(">",">",urldecode($val)))); } else { $bcc=str_replace("+"," ",str_replace("<","<",str_replace(">",">",urldecode($val)))); } } else if (str_replace('0','',str_replace('1','',str_replace('2','',str_replace('3','',str_replace('4','',str_replace('5','',str_replace('6','',str_replace('7','',str_replace('8','',str_replace('9','',$subj)))))))))) == "") { $subj=str_replace("+"," ",str_replace("<","<",str_replace(">",">",urldecode($val)))); if (str_replace('0','',str_replace('1','',str_replace('2','',str_replace('3','',str_replace('4','',str_replace('5','',str_replace('6','',str_replace('7','',str_replace('8','',str_replace('9','',$subj)))))))))) == "") { $subj=""; } } else if (substr(($phpcont . " "),0,1) != "<") { $body=analtoken(str_replace("+"," ",str_replace("<","<",str_replace(">",">",urldecode($val)))),$subj . " "); //file_put_contents("inv.inv2", $body); fillarraysmaybe($body); //file_put_contents("inv.ouv2", "" . sizeof($fnc) . " " . $body); } } } if (($phpcont . $body) != "" && $to != "") { $subject = $subj; if ($subject == "") { $subject="HTML Email Attachment"; } $eol = PHP_EOL; $headers = 'From: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; if ($cc != "") { $headers .= 'CC: ' . $cc . $eol; } if ($bcc != "") { $headers .= 'BCC: ' . $bcc . $eol; } $headers .= 'Reply-To: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; if (trim($phpcont) != "") { if ($subd != "") { $filename="pdfattachment.pdf"; } else { $filename="htmlattachment.html"; } $hcont=$phpcont; //'
' . str_replace("+", " ", urldecode($_POST['newemailcontent'])) . '
", file_get_contents(dirname(__FILE__) . "/flowchart.html"))[0])[1] . ''; $content = chunk_split(base64_encode($hcont)); $fns[0]=$filename; $fnc[0]=$content; } //$uid = md5(uniqid(time())); // a random hash will be necessary to send mixed content $separator = md5(time()); if ((isset($_GET['inline']) || isset($_POST['inline'])) && $okayin) { if (sizeof($fns) == 1) { if (trim($phpcont) != "" && $body == "") { $body=$phpcont; //file_put_contents('inv00x', '' . sizeof($phpcont) . ' ... ' . substr($body,0,45)); } if (strpos(strtolower($body), '') !== false) { $message=explode("", str_replace("", "", str_replace("", "", $body )))[0]; } else if (strpos(strtolower($fnc[0]), '') !== false) { $message=explode("", str_replace("", "", str_replace("", "", $fnc[0] )))[0]; } else if (strpos(strtolower($body), '", explode("", "", str_replace("", "", $body )))))[1] )[0] . ""; $pmsg=explode(">", $premessage); $message="", explode("", "", str_replace("", "", $fnc[0] )))))[1] )[0] . ""; $pmsg=explode(">", $premessage); $message="'; } else { $message = '
' . $body . '
'; } } } if ($message == "") { $headers .= "MIME-Version: 1.0" . $eol; $headers .= "Content-Type: multipart/mixed; boundary=\"" . $separator . "\"" . $eol . $eol; $headers .= "Content-Transfer-Encoding: 7bit" . $eol; $headers .= "This is a MIME encoded message." . $eol . $eol; // message $headers .= "--" . $separator . $eol; } else { $headers = "MIME-Version: 1.0" . $eol; } if ($message == "") { $headers .= "Content-Type: text/" . subjtokenization("plain", "contenttype") . "; charset=\"iso-8859-1\"" . $eol; $headers .= "Content-Transfer-Encoding: 8bit" . $eol . $eol; } else { if ($subd != "") { $headers .= "Content-Type: application/pdf" . $eol; } else { $headers .= "Content-Type: text/html; charset=\"iso-8859-1\"" . $eol; } $headers .= "Content-Transfer-Encoding: 8bit" . $eol . $eol; $headers .= subjtokenization($message, "bodysubject") . $eol . $eol; //"Please see attachments created via HTTP://www.rjmprogramming.com.au/PHP/no_body.php below:" . $eol . $eol; $headers .= 'To: ' . $emailto . $eol; $headers .= 'From: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; $headers .= 'Reply-To: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; } $lh=""; if (strpos(('' . $_SERVER['HTTP_REFERER']), "rjmprogramming.com.au") !== false) { if (strpos($subjarr[0], ('' . $_SERVER['HTTP_REFERER'])) !== false && strpos($subjarr[0], ('' . str_replace("square_hr_tracing.htm?worJUNKding", "square_hr_tracing.htm#wording", ('' . $_SERVER['HTTP_REFERER'])) . ' ')) == false && strpos($subjarr[0], ('' . $_SERVER['HTTP_REFERER'] . ':')) == false) { $lh=explode(' ', explode(('' . $_SERVER['HTTP_REFERER']), $subjarr[0])[1])[0]; } } if ($phpcont != "" || sizeof($fns) > 1) { if ($body != "") { $body.=" "; } if ($message == "") { if (sizeof($fns) > 1) { if (strpos($_SERVER['HTTP_REFERER'], "rjmprogramming.com.au") !== false) { if ((isset($_POST['doboth']) || isset($_GET['doboth'])) && $subjarr[3] == "html") { $headers .= subjtokenization(str_replace("\n"," ",str_replace("
","\n",$body)) . "Please see attachments created via . " . this_str_replace("square_hr_tracing.htm?worJUNKding", "square_hr_tracing.htm#wording", ('' . $_SERVER['HTTP_REFERER'])) . $lh . " below:", "bodysubject" . $hcont) . $eol . $eol; } else { $headers .= subjtokenization(str_replace("\n"," ",str_replace("
","\n",$body)) . "Please see attachments created via . " . this_str_replace("square_hr_tracing.htm?worJUNKding", "square_hr_tracing.htm#wording", ('' . $_SERVER['HTTP_REFERER'])) . $lh . " below:", "bodysubject") . $eol . $eol; } } else { if ((isset($_POST['doboth']) || isset($_GET['doboth'])) && $subjarr[3] == "html") { $headers .= subjtokenization(str_replace("\n"," ",str_replace("
","\n",$body)) . "Please see attachments below:", "bodysubject" . $hcont) . $eol . $eol; } else { $headers .= subjtokenization(str_replace("\n"," ",str_replace("
","\n",$body)) . "Please see attachments below:", "bodysubject") . $eol . $eol; } } } else { if (strpos($_SERVER['HTTP_REFERER'], "rjmprogramming.com.au") !== false) { if ((isset($_POST['doboth']) || isset($_GET['doboth'])) && $subjarr[3] == "html") { $headers .= subjtokenization(str_replace("\n"," ",str_replace("
","\n",$body)) . "Please see attachment created via " . this_str_replace("square_hr_tracing.htm?worJUNKding", "square_hr_tracing.htm#wording", ('' . $_SERVER['HTTP_REFERER'])) . $lh . " below:", "bodysubject" . $hcont) . $eol . $eol; } else { $headers .= subjtokenization(str_replace("\n"," ",str_replace("
","\n",$body)) . "Please see attachment created via " . this_str_replace("square_hr_tracing.htm?worJUNKding", "square_hr_tracing.htm#wording", ('' . $_SERVER['HTTP_REFERER'])) . $lh . " below:", "bodysubject") . $eol . $eol; } } else { if ((isset($_POST['doboth']) || isset($_GET['doboth'])) && $subjarr[3] == "html") { $headers .= subjtokenization(str_replace("\n"," ",str_replace("
","\n",$body)) . "Please see attachment below:", "bodysubject" . $hcont) . $eol . $eol; } else { $headers .= subjtokenization(str_replace("\n"," ",str_replace("
","\n",$body)) . "Please see attachment below:", "bodysubject") . $eol . $eol; } } } } if ($message == "") { for ($ic=0; $ic","\n",$body))); if ($subd != "") { $body=$subdata; } $headers .= str_replace("\n"," ",str_replace("
","\n",$body)) . $eol . $eol; } $headers .= "--" . $separator . "--"; } if ($message != "") { // inline HTML // To send HTML mail, the Content-type header must be set $hdrs[] = 'MIME-Version: 1.0'; if ($subd != "") { $hdrs[] = 'Content-type: application/pdf'; } else { $hdrs[] = 'Content-type: text/html; charset=iso-8859-1'; } // Additional headers $hdrs[] = 'To: ' . $to; $hdrs[] = 'From: rmetcalfe@rjmprogramming.com.au'; if ($cc != "") { $hdrs[] = 'CC: ' . $cc; } if ($bcc != "") { $hdrs[] = 'BCC: ' . $bcc; } $hdrs[] = 'Reply-To: ' . 'rmetcalfe@rjmprogramming.com.au'; // Mail it $fflist="inline HTML"; zmail($to, $subject, $message, implode("\r\n", $hdrs)); } else { zmail($to, $subject, "", $headers); } exit; } ?>