", $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;
$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";
$inofinterest=str_replace("[date]", date('l jS \of F Y h:i:s A'), $inofinterest);
if (isset($_SERVER['HTTP_REFERER'])) {
$inofinterest=str_replace("[httpreferer]", $_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;
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 == "") { return str_replace("[date]", date('l jS \of F Y h:i:s A'), $inthing); }
if ($fflist == "") { return str_replace("", $ffname, str_replace("[name]", $ffname, str_replace("[date]", date('l jS \of F Y h:i:s A'), $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="