6,56d5 < < $midbit=rand(0,19876754); < $gretv=''; < < function oururldecode($inue) { < global $gretv; < $retv=urldecode($inue); < $retsare=explode("localhost", $inue); < if (sizeof($retsare) > 1) { < $retv=str_replace($retsare[0] . 'localhost' . explode('#', explode('?', explode('/', $retsare[1])[0])[0])[0] . '/', $_SERVER['DOCUMENT_ROOT'], $retv); < } < $gretv=$retv; < return $retv; < } < < //file_put_contents('x.x', $_SERVER['SERVER_NAME']); < if (isset($_GET['imagetest']) && strpos($_SERVER['SERVER_NAME'], 'localhost') !== false) { < //file_put_contents('xx.xx', (urldecode($_GET['imagetest']))); < $im = imagecreatetruecolor(120, 10); < $text_color = imagecolorallocate($im, 233, 14, 91); < imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color); < // Output the image < if (strpos(oururldecode($_GET['imagetest']), '.') === false) { < if (file_exists(dirname(__FILE__) . "/" . "imagetest.jpg")) { unlink(dirname(__FILE__) . "/" . "imagetest.jpg"); } < $gretv=dirname(__FILE__) . "/" . "imagetest.jpg"; < imagejpeg($im, dirname(__FILE__) . "/" . "imagetest.jpg"); < } else if (strpos(strtolower(oururldecode($_GET['imagetest'])), '.gif') !== false) { < //file_put_contents('xxx.xxx', $_SERVER['SERVER_NAME']); < if (file_exists(oururldecode($_GET['imagetest']))) { unlink(oururldecode($_GET['imagetest'])); } < imagegif($im, oururldecode($_GET['imagetest'])); < //file_put_contents('xxxx.xxxx', $_SERVER['SERVER_NAME']); < } else if (strpos(strtolower(oururldecode($_GET['imagetest'])), '.bmp') !== false) { < if (file_exists(oururldecode($_GET['imagetest']))) { unlink(oururldecode($_GET['imagetest'])); } < imagebmp($im, oururldecode($_GET['imagetest']), true); < } else if (strpos(strtolower(oururldecode($_GET['imagetest'])), '.png') !== false) { < if (file_exists(oururldecode($_GET['imagetest']))) { unlink(oururldecode($_GET['imagetest'])); } < imagepng($im, oururldecode($_GET['imagetest'])); < } else if (strpos(strtolower(oururldecode($_GET['imagetest'])), '.jp') !== false) { < if (file_exists(oururldecode($_GET['imagetest']))) { unlink(oururldecode($_GET['imagetest'])); } < imagejpeg($im, oururldecode($_GET['imagetest'])); < } < // Free up memory < imagedestroy($im); < if (file_exists($gretv)) { < unlink($gretv); < echo "
"; < } < //sleep(25); < //unlink(oururldecode($_GET['imgtest'])); < exit; < } 71c20 < $speakerblurb="'; maybeaudio(0); } \">🔊"; --- > $speakerblurb="'; maybeaudio(0); \">🔊"; 160,177d108 < var wast='HTTP://localhost:8888/what_is_the_english_word.php (MAMP)'; < < function relocalize() { < var onewast=wast.split(' ')[0]; < if (document.getElementById('asay').title.indexOf('did not find, ') != -1) { < onewast=document.getElementById('asay').split('did not find, ')[1].split(' ')[0]; < } < var pwast=prompt('Tell me where what_is_the_english_word.php is located in a macOS local web server with access to say command line commnd.', onewast); < if (pwast == null) { pwast=''; } < if (pwast != '' && pwast != onewast && pwast.indexOf('localhost') >= 7) { < if (pwast.toLowerCase().indexOf('.php') == -1) { if (pwast.slice(-1) == '/') { pwast+='what_is_the_english_word.php'; } else { pwast+='/what_is_the_english_word.php'; } } < if (('' + localStorage.getItem('what_is_the_english_word')).replace(/^null$/g,'') != '') { < localStorage.removeItem('what_is_the_english_word'); < localStorage.setItem('what_is_the_english_word', pwast); < } < location.href=document.URL; < } < } 429,455d359 < var localhostvalid=false; < var imgw=-1; < var imgh=-1; < var ywoisme=null; < var wast='HTTP://localhost:8888/what_is_the_english_word.php (MAMP)'; < var hlbit='HTTP://localhost:8888/what_is_the_english_word.php'; < < if (('' + localStorage.getItem('what_is_the_english_word')).replace(/^null$/g,'') != '') { < hlbit=localStorage.getItem('what_is_the_english_word'); < } < < function relocalize() { < var onewast=wast.split(' ')[0]; < if (document.getElementById('asay').title.indexOf('did not find, ') != -1) { < onewast=document.getElementById('asay').split('did not find, ')[1].split(' ')[0]; < } < var pwast=prompt('Tell me where what_is_the_english_word.php is located in a macOS local web server with access to say command line commnd.', onewast); < if (pwast == null) { pwast=''; } < if (pwast != '' && pwast != onewast && pwast.indexOf('localhost') >= 7) { < if (pwast.toLowerCase().indexOf('.php') == -1) { if (pwast.slice(-1) == '/') { pwast+='what_is_the_english_word.php'; } else { pwast+='/what_is_the_english_word.php'; } } < if (('' + localStorage.getItem('what_is_the_english_word')).replace(/^null$/g,'') != '') { < localStorage.removeItem('what_is_the_english_word'); < localStorage.setItem('what_is_the_english_word', pwast); < } < location.href=document.URL; < } < } 500c404 < if (document.URL.indexOf('localhost') == -1 || !isclick) { --- > if (document.URL.indexOf(':8888/') == -1 || !isclick) { 505c409 < xwoisme=window.open(hlbit + '?doaudio=' + (('' + location.hash).replace('#','') + '1').substring(0,1) + '&audio=' + encodeURIComponent((document.getElementsByTagName('h4')[0].innerText || document.getElementsByTagName('h4')[0].contentWindow || document.getElementsByTagName('h4')[0].contentDocument).replace(/\\\"/g,'')),'_blank','top=250,left=50,width=50,height=50'); --- > xwoisme=window.open('HTTP://localhost:8888/what_is_the_english_word.php?doaudio=' + (('' + location.hash).replace('#','') + '1').substring(0,1) + '&audio=' + encodeURIComponent((document.getElementsByTagName('h4')[0].innerText || document.getElementsByTagName('h4')[0].contentWindow || document.getElementsByTagName('h4')[0].contentDocument).replace(/\\\"/g,'')),'_blank','top=250,left=50,width=50,height=50'); 534c438 < if (document.URL.indexOf('localhost') == -1 || !isclick) { --- > if (document.URL.indexOf(':8888/') == -1 || !isclick) { 540c444 < var zwoisme=window.open(hlbit + '?doaudio=' + (('' + location.hash).replace('#','') + '1').substring(0,1) + '&audio=' + encodeURIComponent('Player ' + (('' + location.hash).replace('#','') + '1').substring(0,1) + ', ' + \"" . str_replace('Player ' . $_GET['doaudio'] . ', ','',str_replace('Player,','',$stufftosay)) . "\"),'_blank','top=250,left=50,width=50,height=50'); --- > var zwoisme=window.open('HTTP://localhost:8888/what_is_the_english_word.php?doaudio=' + (('' + location.hash).replace('#','') + '1').substring(0,1) + '&audio=' + encodeURIComponent('Player ' + (('' + location.hash).replace('#','') + '1').substring(0,1) + ', ' + \"" . str_replace('Player ' . $_GET['doaudio'] . ', ','',str_replace('Player,','',$stufftosay)) . "\"),'_blank','top=250,left=50,width=50,height=50'); 548,572d451 < < function lhostlook() { < if (hlbit != 'HTTP://localhost:8888/what_is_the_english_word.php' && hlbit != 'HTTP://localhost:8888/what_is_the_english_word.php (MAMP)') { < document.getElementById('asay').title=document.getElementById('asay').title.replace('HTTP://localhost:8888/what_is_the_english_word.php (MAMP)', hlbit).replace('HTTP://localhost:8888/what_is_the_english_word.php', hlbit); < } < if (document.URL.indexOf('localhost') == -1) { < var midbit='' + '" . $midbit . "'; < if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) && ('' + inv).indexOf('-') != -1) { < ywoisme=window.open(hlbit + '?imagetest=imagetest' + midbit + '.jpg','_blank','top=250,left=50,width=50,height=50'); < setTimeout(yw, 2000); //ywoisme.close(); < } < } < } < < function yw() { < if (ywoisme.closed) { < console.log('found'); < document.getElementById('asay').title=document.getElementById('asay').title.replace('Will be trying ', 'Will be trying the found '); < } else { < document.getElementById('asay').title=document.getElementById('asay').title.replace('Will be trying ', 'Will be trying, but did not find, '); < console.log('not found'); < ywoisme.close(); < } < ywoisme=null; < } 574c453 < --- > 584c463 <