") !== false) { if (isset($_POST['words'])) { $wording=str_replace("", "", str_replace("
", "\\n", str_replace("\n", "\\n", urldecode($_POST['words'])))); } else if (strlen($_SERVER['QUERY_STRING']) == 0) { // first call ... check mailbox existance if (!file_exists("mailbox/mb_in_" . short_server_remote_addr() . ".html")) { file_put_contents("mailbox/mb_in_" . short_server_remote_addr() . ".html", ""); } if (!file_exists("mailbox/mb_out_" . short_server_remote_addr() . ".html")) { file_put_contents("mailbox/mb_out_" . short_server_remote_addr() . ".html", ""); } echo '' . "'" . '; } ">'; } else if (strpos($_SERVER['QUERY_STRING'], "rnum=-1") !== false) { // subsequent call ... clear inbox file_put_contents("mailbox/mb_in_" . short_server_remote_addr() . ".html", ""); echo ""; } else if (strpos($_SERVER['QUERY_STRING'], "rnum=-2") !== false) { // subsequent call ... clear outbox file_put_contents("mailbox/mb_out_" . short_server_remote_addr() . ".html", ""); echo ""; } else if (isset($_GET['words'])) { $wording=str_replace("", "", str_replace("
", "\\n", str_replace("\n", "\\n", urldecode($_GET['words'])))); } if (strlen($wording) > 0) { if (isset($_POST['subject'])) { $subject=str_replace("", "", urldecode($_POST['subject'])); } else if (isset($_GET['datetimebit'])) { $subject=str_replace("", "", urldecode($_GET['subject'])); } if (isset($_POST['datetimebit'])) { $dt=str_replace("", "", urldecode($_POST['datetimebit'])); } else if (isset($_GET['datetimebit'])) { $dt=str_replace("", "", urldecode($_GET['datetimebit'])); } if ($dt == " @ ") $dt=""; if (isset($_POST['emailname'])) { $identity=str_replace("", "", urldecode($_POST['emailname'])); if ($subject == "Broadcast") { if ($identity != "") $subject .= " by " . $identity; if ($dt != "") $subject .= " at " . $dt; } } else if (isset($_GET['emailname'])) { $identity=str_replace("", "", urldecode($_GET['emailname'])); if ($subject == "Broadcast") { if ($identity != "") $subject .= " by " . $identity; if ($dt != "") $subject .= " at " . $dt; } } $plus=" (live)"; $bits=explode('>' . $subject . $plus . '', $contents); if (sizeof($bits) == 1) { $plus=""; $bits=explode('>' . $subject . $plus . '', $contents); } if (sizeof($bits) > 1) { if (strpos($bits[-1 + sizeof($bits)], "") === false) { $prebits=explode("', '', $contents); } else { $contents=str_replace('', '', $contents); } } else { $contents=str_replace('', '' . "\n", $contents); } } else { $contents=str_replace('', '' . "\n", $contents); } file_put_contents("broadcast_list.html", $contents); file_put_contents("mailbox/subject_" . strtolower(str_replace(" ", "", $subject)) . ".html", "mailbox/mb_in_" . short_server_remote_addr() . ".html"); file_put_contents("mailbox/datetime_" . strtolower(str_replace(" ", "", str_replace("/", "", str_replace(":", "", str_replace(" @ ", "", $dt))))) . ".html", "mailbox/mb_in_" . short_server_remote_addr() . ".html"); file_put_contents("mailbox/emailname_" . strtolower(str_replace(" ", "", str_replace("/", "", str_replace("[", "", str_replace(".", "", str_replace(":", "", str_replace("@", "", str_replace(" @ ", "", $identity)))))))) . ".html", "mailbox/mb_in_" . short_server_remote_addr() . ".html"); echo ''; } } } ?>