"; 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 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)']; function animqnextone() { jsup=eval(document.getElementById('jsup').innerHTML.replace(' ','').replace('g','')); jsub=eval(document.getElementById('jsub').innerHTML.replace(' ','').replace('g','')); if (jsup < jsub) { jsup++; document.getElementById('jsup').innerHTML=jsup; window.location='#g' + jsup; if (htok) setTimeout(animqnextone,2000); } else { if (htok) setTimeout(animqprevone,2000); } } function animqprevone() { jsup=eval(document.getElementById('jsup').innerHTML.replace(' ','').replace('g','')); jsub=eval(document.getElementById('jsub').innerHTML.replace(' ','').replace('g','')); if (jsup > 1) { jsup--; document.getElementById('jsup').innerHTML=jsup; window.location='#g' + jsup; if (htok) setTimeout(animqprevone,2000); } else { if (htok) setTimeout(animqnextone,2000); } } function animnextone() { var wls, wlstwo=''; if (document.getElementById('ishownext')) { if (document.getElementById('ishownext').outerHTML.indexOf(' onclick=') != -1) { wls=document.getElementById('ishownext').outerHTML.replace(/&/g,'&').split('window.location='); if (wls.length > 1) { wlstwo=wls[1].substring(1).split(wls[1].substring(0,1))[0].split('#')[0].replace('&animf=y','').replace('&animb=y','') + '&animf=y" . $itable . "'; window.location=wlstwo; } } else { setTimeout(animprevone,8000); } } } function animprevone() { var wls, wlstwo=''; if (document.getElementById('ishowprev')) { if (document.getElementById('ishowprev').outerHTML.indexOf(' onclick=') != -1) { wls=document.getElementById('ishowprev').outerHTML.replace(/&/g,'&').split('window.location='); if (wls.length > 1) { wlstwo=wls[1].substring(1).split(wls[1].substring(0,1))[0].split('#')[0].replace('&animf=y','').replace('&animb=y','') + '&animb=y" . $itable . "'; window.location=wlstwo; } } else { setTimeout(animnextone,8000); } } } function nounderline() { if (document.getElementById('ianim')) document.getElementById('ianim').style.textDecoration='none'; if (document.getElementById('janim')) document.getElementById('janim').style.textDecoration='none'; } function checkrawy() { if (document.getElementById('rawy').value != '') rawy='rawy=y&'; } function setoff0() { var mediao=avo[0]; mediao.play(); } function setoff1() { var mediao=avo[1]; mediao.play(); } function setoff2() { var mediao=avo[2]; mediao.play(); } function setoff3() { var mediao=avo[3]; mediao.play(); } function setoff4() { var mediao=avo[4]; mediao.play(); } function setoff5() { var mediao=avo[5]; mediao.play(); } function setoff6() { var mediao=avo[6]; mediao.play(); } function setoff7() { var mediao=avo[7]; mediao.play(); } function setoff8() { var mediao=avo[8]; mediao.play(); } function setoff9() { var mediao=avo[9]; mediao.play(); } function checkav() { if (loadedsynclist.length >= (document.getElementById('videoflag').value.length + document.getElementById('audioflag').value.length)) { for (var ij=0; ij\"; } lasterr=-1; if (bigiu < eval(-1 + mampideas.length)) { bigiu++; ajobs(); setTimeout(checkmamp, 5300); } } } if (document.URL.indexOf('&animf=') != -1) { setTimeout(nounderline, 300); setTimeout(animnextone, 8000); } else if (document.URL.indexOf('&animb=') != -1) { setTimeout(nounderline, 300); setTimeout(animprevone, 8000); } 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(/ "; $rawystuff=""; $syncstuff=""; $gthisis=1; $gtotis=0; $thisis=0; $totis=0; $numis=0; $ourfilename=""; $ofprevinterest=""; $firstone=""; $lastone=""; $secondone=""; $secondlastone=""; $prevone=""; $nextone=""; $prevtoprevone=""; $nexttoprevone=""; $nexttonextone=""; $prevtonextone=""; $gnumis=0; $greportdata=""; $gofprevinterest=""; $ofinterest="youllneverfindthis"; if (isset($_GET['ofinterest'])) { $ofinterest=urldecode($_GET['ofinterest']); 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'); } if ($ofinterest == "") $ofinterest="youllneverfindthis"; } $asgallery=""; if (isset($_GET['asgallery'])) { $asgallery=urldecode($_GET['asgallery']); } if (isset($_GET['ofinterest']) && isset($_GET['ofprevinterest']) && isset($_GET['ofnextinterest'])) { $formstuff="
Zipfile Name:
Zipfile File of Interest (can be comma separated list" . mamptest("suffix") . "):



" . mamptest("") . "

🎬" . $ic . "" . $ofinterest . "

"; } else if (isset($_GET['ofinterest']) && isset($_GET['ofprevinterest'])) { $formstuff="
Zipfile Name:
Zipfile File of Interest (can be comma separated list" . mamptest("suffix") . "):



" . mamptest("") . "

🎬" . $ic . "" . $ofinterest . "

"; } else if (isset($_GET['ofinterest']) && isset($_GET['ofnextinterest'])) { $formstuff="
Zipfile Name:
Zipfile File of Interest (can be comma separated list" . mamptest("suffix") . "):



" . mamptest("") . "

🎬" . $ic . "" . $ofinterest . "

"; } else if (1 == 2 && isset($_GET['ofinterest'])) { $formstuff="
Zipfile Name:
Zipfile File of Interest (can be comma separated list" . mamptest("suffix") . "):



" . mamptest("") . "

"; } else if ($zipfile != "") { $formstuff="
Zipfile Name:
Zipfile File of Interest (can be comma separated list" . mamptest("suffix") . "):



" . mamptest("") . "

"; } else { $formstuff="
Zipfile Name:
Zipfile File of Interest (can be comma separated list" . mamptest("suffix") . "):



" . mamptest("") . "

"; } $tabledata=""; if ($mampurl != "") { $tabledata="MAMP Functionality
"; } $reportdata=""; if ($zipfile != "") { $zip = zip_open($zipfile); if ($zip) { while ($zip_entry = zip_read($zip)) { $ourfilename=zip_entry_name($zip_entry); if (strpos($ourfilename, "__MACOSX/") === false) { $formstuff=str_replace("", "", $formstuff); $ourext=explode(".",$ourfilename)[-1 + sizeof(explode(".",$ourfilename))]; if (strtolower($ourext) == "php") { $mampa=" MAMP can help run PHP"; $jsc=str_replace('jmampa=""','jmampa="' . $mampa . '"',$jsc); } $ourmimetype=""; for ($i=0; $i
🎬
"; } if ($gnumis == 0) { $gtotis++; $gnumis++; // 🎬 $greportdata="🎬"; $gofprevinterest="&ofprevinterest=" . $ourfilename; } else { $gtotis++; $tabledata=str_replace($itable . "','_blank');\" id='g" . $gnumis . "'","&ofnextinterest=" . $ourfilename . $itable . "','_blank');\" id='g" . $gnumis . "'",$tabledata); $gnumis++; $greportdata="🎬"; $gofprevinterest="&ofprevinterest=" . $ourfilename; } $tabledata=str_replace("", "    " . $ourfilename . " " . $greportdata . "  ⬅⬅      ➡➡", $tabledata); $tabledata=str_replace("", "", $tabledata); } } if ($asgallery == "" && strpos("," . $ofinterest . ",","," . $ourfilename . ",") !== false) { if (!isset($_GET['ofprevinterest']) && !isset($_GET['ofnextinterest'])) { // new if if (zip_entry_open($zip, $zip_entry)) { // some code $cont=zip_entry_read($zip_entry, zip_entry_filesize($zip_entry)); zip_close($zip); if (!isset($_GET['raw']) && strpos($ourmimetype, "video/") !== false) { echo ""; exit; } else if (!isset($_GET['raw']) && strpos($ourmimetype, "audio/") !== false) { echo "