7,8d6
<
< $mtitles=["MAMP local Apache/PHP/MySql web server for URLs HTTP://localhost:8888/ ... if no others to right, a zipfile called mamptest.zip has good PHP code sources to save to /Applications/MAMP/htdocs/ to team up with MAMP HTTP://localhost:8888/","Convert text to audible speech","Interact with CD/DVD burners","Prevent the system from sleeping on behalf of a utility","Use FileMerge to graphically compare or merge file or directories","Quick Look Server debug and management tool","Secure copy (remote file copy program)"];
10,58c8
< function mamptest($mode) {
< global $mtitles;
< if ($_SERVER['SERVER_PORT'] === "8888" && PHP_OS === "Darwin") {
< if ($mode != "") {
< return " or MAMP URL appended to http://localhost:8888/";
< } else {
< $more="";
< if (file_exists("say.php")) $more.=" ";
< if (file_exists("drutil.php")) $more.=" ";
< if (file_exists("caffeinate.php")) $more.=" ";
< if (file_exists("opendiff.php")) $more.=" ";
< if (file_exists("qlmanage.php")) $more.=" ";
< if (file_exists("scp.php")) $more.=" ";
< return "" . $more;
< }
< }
< if ($mode == "") return "
";
< return "";
< }
<
< function reencode($theargs, $helpprefix, $sentencemode) {
< $retval="";
< if ($theargs == "") return $theargs;
< if (strpos(($theargs . "~!"), "&~!") !== false) $theargs=str_replace("&~!","?",($theargs . "~!"));
< if (strpos($theargs, "&") === false && $helpprefix != "") {
< $abits=explode(" ", $theargs);
< $retval.="&" . $helpprefix . '=' . urlencode($abits[0]);
< for ($iab=1; $iab $types = ["audio/wav","audio/x-wav","audio/x-pn-realaudio","audio/x-mpegurl","audio/x-aiff","audio/mpeg","audio/mid",
65c15
< $exts = [".wav",".wav",".ram",".m3u",".aiff",".aifc",".mp3",".rmi",
---
> $exts = [".wav",".wav",".ram",".m3u",".aiff",".mp3",".rmi",
72,73d21
<
< $mampurl="";
75d22
< $mampa="";
92,96d38
<
< $zipfile="";
< if (isset($_GET['zipfile'])) {
< $zipfile=urldecode($_GET['zipfile']);
< }
98c40
< $jsc="
---
> $jsc="
100,102c42
< var jmampa=\"\",lasterr=-1,could_be_mac=false, is_mac=false, bigiu=-1, req, tr='', jsup=1, jsub=1, rawy='', htok=true, vsynclist=[], asynclist=[], loadedsynclist=[]; avo=[];
< var mampideas=['say.php','drutil.php','caffeinate.php','opendiff.php','qlmanage.php','scp.php'];
< var mtitles=['MAMP local Apache/PHP/MySql web server for URLs HTTP://localhost:8888/ ... if no others to right a zipfile called mamptest.zip has good PHP code sources to save to /Applications/MAMP/htdocs/ to team up with MAMP HTTP://localhost:8888/','Convert text to audible speech','Interact with CD/DVD burners','Prevent the system from sleeping on behalf of a utility','Use FileMerge to graphically compare or merge file or directories','Quick Look Server debug and management tool','Secure copy (remote file copy program)'];
---
> var jsup=1, jsub=1, rawy='', htok=true, vsynclist=[], asynclist=[], loadedsynclist=[]; avo=[];
103a44
> //alert(document.getElementById('jsup').innerHTML.replace(' ','').replace('g',''));
105a47
> //alert(jsup + ' ... ' + jsub);
109a52
> //alert('#g' + jsup);
121a65
> //alert('#g' + jsup);
133a78,79
> //alert(wlstwo);
> //document.getElementById('ishow').src=wlstwo;
147a94,95
> //alert(wlstwo);
> //document.getElementById('ishow').src=wlstwo;
164d111
<
178c125
< if (loadedsynclist.length >= (document.getElementById('videoflag').value.length + document.getElementById('audioflag').value.length)) {
---
> if (loadedsynclist.length == (document.getElementById('videoflag').value.length + document.getElementById('audioflag').value.length)) {
211,303d157
< function ajobs() {
< for (var iu=0; iu\";
< }
< lasterr=-1;
< if (bigiu < eval(-1 + mampideas.length)) {
< bigiu++;
< ajobs();
< setTimeout(checkmamp, 5300);
< }
< }
< }
<
312,354c166
< setTimeout(checkrawy, 2800);
< setTimeout(checkmamp, 5300);
< setTimeout(checkjmampa, 6300);
<
< /" . "/ Thanks to https:/" . "/stackoverflow.com/questions/19035557/jsonp-request-error-handling
< $(document).ready(function(){
< $.ajax({
< url: 'http:/" . "/localhost:8888/MAMP/',
< dataType: 'jsonp',
< timeout: 5000,
< success: function (parsed_json) {
< //console.log(parsed_json);
< },
< error: function (parsedjson, textStatus, errorThrown) {
< if (('' + errorThrown).indexOf('Blocked loading ') != -1 && document.URL.toLowerCase().indexOf('https:') == 0) {
< window.location=newarg('http' + document.URL.substring(5)) + location.hash;
< } else if (('' + errorThrown).indexOf('Loading failed ') != -1) {
< if (document.URL.toLowerCase().indexOf('https:') == 0) {
< window.location=newarg('http' + document.URL.substring(5)) + location.hash;
< }
< lasterr=404;
< } else {
< lasterr=parsedjson.status;
< }
< if (lasterr != 200 && document.URL.toLowerCase().indexOf('https:') == 0) {
< if (('' + navigator.ospu).toUpperCase().indexOf('MAC') == 0) {
< is_mac=true;
< } else if (('' + navigator.platform).toUpperCase().indexOf('WIN') != 0) {
< could_be_mac=true;
< }
< if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
< is_mac=false;
< could_be_mac=false;
< }
< if (document.URL.toLowerCase().indexOf('https:') == 0) document.title=lasterr + ' ' + newarg('http' + document.URL.substring(5)) + location.hash;
< if (is_mac || could_be_mac) window.location=newarg('http' + document.URL.substring(5)) + location.hash;
< }
< //console.log(JSON.stringify(parsedjson).replace(/>/g,'>').replace(/ setTimeout(checkrawy, 2800);
358,359c170,171
< $rawystuff="";
< $syncstuff="";
---
> $rawystuff="";
> $syncstuff="";
377a190
> $zipfile="";
381a195,198
>
> if (isset($_GET['zipfile'])) {
> $zipfile=urldecode($_GET['zipfile']);
> }
385,399d201
< if (isset($_GET['say'])) {
< $mampurl="http://localhost:8888/say.php?argsfollow=" . reencode(str_replace("+"," ",str_replace("?","&",str_replace("say.php","",$ofinterest))),'say','sentence');
< } else if (isset($_GET['drutil'])) {
< $mampurl="http://localhost:8888/drutil.php?argsfollow=" . reencode(str_replace("+"," ",str_replace("?","&",str_replace("drutil.php","",$ofinterest))),'drutil','sentence');
< } else if (isset($_GET['caffeinate'])) {
< $mampurl="http://localhost:8888/caffeinate.php?argsfollow=" . reencode(str_replace("+"," ",str_replace("?","&",str_replace("caffeinate.php","",$ofinterest))),'caffeinate','sentence');
< } else if (isset($_GET['opendiff'])) {
< $mampurl="http://localhost:8888/opendiff.php?argsfollow=" . reencode(str_replace("+"," ",str_replace("?","&",str_replace("opendiff.php","",$ofinterest))),'opendiff','sentence');
< } else if (isset($_GET['qlmanage'])) {
< $mampurl="http://localhost:8888/qlmanage.php?argsfollow=" . reencode(str_replace("+"," ",str_replace("?","&",str_replace("qlmanage.php","",$ofinterest))),'qlmanage','sentence');
< } else if (isset($_GET['scp'])) {
< $mampurl="http://localhost:8888/scp.php?argsfollow=" . reencode(str_replace("+"," ",str_replace("?","&",str_replace("scp.php","",$ofinterest))),'scp','sentence');
< } else if (isset($_GET['mamp'])) {
< $mampurl="http://localhost:8888/MAMP/?argsfollow=" . reencode(str_replace("+"," ",str_replace("?","&",str_replace("MAMP/","",$ofinterest))),'mamp','sentence');
< }
408,411c210,213
< $formstuff="