1) { if (PHP_OS == "Darwin") { for ($ii=1; $ii<$numargs; $ii++) { if ($ii == 1 && strtolower($argv[$ii]) == 'say') { $commandsofar="say "; } else { $commandsofar.=' ' . $argv[$ii]; } } passthru($commandsofar); exit; } } else { if (PHP_OS == "Darwin") { passthru("info say"); exit; } } } else if (isset($_GET['curlit'])) { // curl $commandsofar="say "; if (PHP_OS == "Darwin") { passthru(str_replace("say say ","say ","say " . str_replace('+',' ',urldecode($_GET['curlit'])))); exit; } } $audioft=""; if (PHP_OS == "Darwin") { $audioft=' title="This made to be blank and the topmost say dropdown choice will cause the text to audio to play through your speakers." onblur="if (this.value.trim().length == 0 && document.getElementById(' . "'" . 'saymode' . "'" . ').value.length == 0) { document.getElementById(' . "'" . 'saysub' . "'" . ').value=document.getElementById(' . "'" . 'saysub' . "'" . ').value.replace(' . "'" . 'Record ' . "'" . ',' . "'" . 'Say ' . "'" . '); } else if (this.value.trim().length != 0 && document.getElementById(' . "'" . 'saymode' . "'" . ').value.length == 0) { document.getElementById(' . "'" . 'saysub' . "'" . ').value=document.getElementById(' . "'" . 'saysub' . "'" . ').value.replace(' . "'" . 'Say ' . "'" . ',' . "'" . 'Record ' . "'" . '); }"'; } $types = ["audio/x-m4r","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", "text/html", "text/html", "text/html", "text/javascript", "text/css", "text/plain", "text/xml", "text/csv", "application/vnd.ms-word", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/x-php", "application/pdf", "application/vnd.openxmlformats-officedocument.presentationml.presentation", "application/vnd.ms-powerpoint", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]; $exts = [".m4r",".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", ".htm", ".html", ".htmls", ".js", ".css", ".txt", ".xml", ".csv", ".doc", ".docx", ".php", ".pdf", ".pptx", ".ppt", ".xls", ".xlsx"]; $ort=""; $bestext="aiff"; $rtw="Record These Words"; $dsm=""; $trto="en"; $icount="0"; $lastmedia=""; $pretc=""; $posttc=""; $gtc=""; $tc=""; if (strpos(('' . $_SERVER['HTTP_REFERER']), "/stparam.htm") !== false) { $tc.=""; $gtc="&viareminders=x"; } else if (isset($_POST['viareminders']) || isset($_GET['viareminders'])) { $tc.=""; $gtc="&viareminders=z"; } $htmlfile=""; $langcode=""; $preposttc="pptc(); \n function pptc() { } \n"; if (isset($_GET['docronwork'])) { exec(str_replace('+',' ',urldecode($_GET['docronwork']))); if (isset($_GET['andclose'])) { echo "
"; } else if (isset($_GET['andsoonclose'])) { $icount=shell_exec("curl http://www.rjmprogramming.com.au/intranet_access_count.php"); echo ""; } exit; } if (isset($_GET['topchat'])) { $bestext="wav"; $tc.=""; $pretc="&topchat=" . str_replace("+"," ",urldecode($_GET['topchat'])); if (strpos(strtolower('' . $_SERVER['HTTP_REFERER']), "rjmprogramming.com.au") !== false) { $htmlfile="PHP/x_" . str_replace("+"," ",urldecode($_GET['topchat'])) . ".html"; } else { $htmlfile="x_" . str_replace("+"," ",urldecode($_GET['topchat'])) . ".html"; } } else if (isset($_POST['topchat'])) { $bestext="wav"; $tc.=""; $pretc="&topchat=" . str_replace("+"," ",urldecode($_POST['topchat'])); if (strpos(strtolower('' . $_SERVER['HTTP_REFERER']), "rjmprogramming.com.au") !== false) { $htmlfile="PHP/x_" . str_replace("+"," ",urldecode($_POST['topchat'])) . ".html"; } else { $htmlfile="x_" . str_replace("+"," ",urldecode($_POST['topchat'])) . ".html"; } } $noncontain='100% calc(100% - 55px)'; // 100% 75% $noncontainregex="/100\%\ calc\(100\%\ \-\ \d+px\)/g"; $regfrom="youllneverfindthis"; $regto="\\d+px"; $fiftyfive="55"; if (strpos($noncontain, "px)") !== false) { $fiftyfive=explode("-",explode(" ",explode("px)", $noncontain)[0])[-1 + sizeof(explode(" ",explode("px)", $noncontain)[0]))])[-1 + sizeof(explode("-",explode(" ",explode("px)", $noncontain)[0])[-1 + sizeof(explode(" ",explode("px)", $noncontain)[0]))]))]; $regfrom=$fiftyfive . "px"; } $noncontainregex="/" . str_replace($regfrom,$regto,str_replace("+","\\+",str_replace("-","\\-",str_replace(" ","\\ ",str_replace(")","\\)",str_replace("(","\\(",str_replace("%","\\%",$noncontain))))))) . "/g"; //100\%\ calc\(100\%\ \-\ \d+px\)/g"; $contain="CONTAIN"; if (isset($_GET['contain'])) { $contain=str_replace("+"," ",urldecode($_GET['contain'])); } else if (isset($_POST['contain'])) { $contain=str_replace("+"," ",urldecode($_POST['contain'])); } if (isset($_GET['noncontain'])) { $noncontain=str_replace("+"," ",urldecode($_GET['noncontain'])); $regfrom="youllneverfindthis"; $regto="\\d+px"; if (strpos($noncontain, "px)") !== false) { $fiftyfive=explode("-",explode(" ",explode("px)", $noncontain)[0])[-1 + sizeof(explode(" ",explode("px)", $noncontain)[0]))])[-1 + sizeof(explode("-",explode(" ",explode("px)", $noncontain)[0])[-1 + sizeof(explode(" ",explode("px)", $noncontain)[0]))]))]; $regfrom=$fiftyfive . "px"; } $noncontainregex="/" . str_replace($regfrom,$regto,str_replace("+","\\+",str_replace("-","\\-",str_replace(" ","\\ ",str_replace(")","\\)",str_replace("(","\\(",str_replace("%","\\%",$noncontain))))))) . "/g"; //100\%\ calc\(100\%\ \-\ \d+px\)/g"; } else if (isset($_POST['noncontain'])) { $noncontain=str_replace("+"," ",urldecode($_POST['noncontain'])); $regfrom="youllneverfindthis"; $regto="\\d+px"; if (strpos($noncontain, "px)") !== false) { $fiftyfive=explode("-",explode(" ",explode("px)", $noncontain)[0])[-1 + sizeof(explode(" ",explode("px)", $noncontain)[0]))])[-1 + sizeof(explode("-",explode(" ",explode("px)", $noncontain)[0])[-1 + sizeof(explode(" ",explode("px)", $noncontain)[0]))]))]; $regfrom=$fiftyfive . "px"; } $noncontainregex="/" . str_replace($regfrom,$regto,str_replace("+","\\+",str_replace("-","\\-",str_replace(" ","\\ ",str_replace(")","\\)",str_replace("(","\\(",str_replace("%","\\%",$noncontain))))))) . "/g"; //100\%\ calc\(100\%\ \-\ \d+px\)/g"; } function topchat($inmedia) { global $lastmedia, $tc, $posttc, $htmlfile, $gtc; if ($inmedia != $lastmedia) { $lastmedia=$inmedia; $posttc=" parent.document.getElementById('tdi').innerHTML='" . str_replace(" autoplay","",$lastmedia) . "'; "; if (file_exists($htmlfile)) { file_put_contents($htmlfile, str_replace("" . str_replace(" autoplay","",$lastmedia) . "