5,44d4 < $ahkxoff=-40; < $ahkyoff=-32; < < $ahkmappings=["%,90,260", < "*-1*,84,314", < "C,248,260", < "7,88,370", < "4,91,429", < "1,91,481", < "+/-,91,538", < "*2*,169,314", < "8,169,370", < "5,169,429", < "2,169,481", < "0,169,538", < "*0.5*,248,314", < "9,248,370", < "6,248,429", < "3,248,481", < ".,248,538", < "/,326,314", < "*,326,370", < "-,326,429", < "+,326,481", < "=,326,538" < ]; < < $ahkprefix="IfWinExist Calculator < WinActivate < else < Run calculator:// < WinActivate calculator < < // 75 / 8 = < < CoordMode, Mouse, Window < Click 208,228 < Sleep, 2500 < "; < 52,85d11 < < var ahkthere=false; < var ahkcthere=false; < < var ahkxoff=-40; < var ahkyoff=-32; < < var ahkmappings=['%,90,260', < '*-1*,84,314', < 'C,248,260', < '7,88,370', < '4,91,429', < '1,91,481', < '+/-,91,538', < '*2*,169,314', < '8,169,370', < '5,169,429', < '2,169,481', < '0,169,538', < '*0.5*,248,314', < '9,248,370', < '6,248,429', < '3,248,481', < '.,248,538', < '/,326,314', < '*,326,370', < '-,326,429', < '+,326,481', < '=,326,538' < ]; < < var wop=null; < var ahkprefix='IfWinExist Calculator' + String.fromCharCode(10) + ' WinActivate' + String.fromCharCode(10) + 'else' + String.fromCharCode(10) + ' Run calculator://' + String.fromCharCode(10) + ' WinActivate calculator' + String.fromCharCode(10) + '' + String.fromCharCode(10) + '// 75 / 8 =' + String.fromCharCode(10) + '' + String.fromCharCode(10) + 'CoordMode, Mouse, Window' + String.fromCharCode(10) + 'Click 208,228' + String.fromCharCode(10) + 'Sleep, 2500' + String.fromCharCode(10); < 196,215d121 < var zahkthere=location.search.split('ahks=')[1] ? decodeURIComponent(location.search.split('ahks=')[1].split('&')[0]) : ''; < if (zahkthere == 'y') { < ahkthere=true; < document.getElementById('ahks').value='y'; < } else if (zahkthere == 'n') { < ahkthere=false; < document.getElementById('ahks').value='n'; < } < if (window.localStorage) { < if (('' + window.localStorage.getItem('ahkthere')).replace(/^null$/g,'').toLowerCase == 'y') { < document.getElementById('ahks').value='y'; < ahkthere=true; < } else if (!ahkthere && document.getElementById('ahks').value == '' && window.self === window.top && !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { < wop=window.open('HTTP://localhost/send_over.php?ahkthere=y','_blank','left=' + eval(-100 + eval('' + screen.width)) + ',top=100,width=100,height=100' ); < setTimeout(wopcheck, 5000); < } < } else if (!ahkthere && document.getElementById('ahks').value == '' && window.self === window.top && !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { < wop=window.open('HTTP://localhost/send_over.php?ahkthere=y','_blank','left=' + eval(-100 + eval('' + screen.width)) + ',top=100,width=100,height=100' ); < setTimeout(wopcheck, 5000); < } 219,285d124 < var ij=0, ji=0; < document.getElementById('firstnum').value=document.getElementById('firstnum').value.replace(/\,/g,''); < document.getElementById('secnum').value=document.getElementById('secnum').value.replace(/\,/g,''); < var matchwith=document.getElementById('oper').value; < var operx=0, opery=0; < if (matchwith == '**' && document.getElementById('secnum').value == '2') { < matchwith='*2*'; < } else if (matchwith == '**' && document.getElementById('secnum').value == '0.5') { < matchwith='*0.5*'; < } else if (matchwith == '**' && document.getElementById('secnum').value == '-1') { < matchwith='*-1*'; < } < for (ij=0; ij --- > 407c227 < "; --- > "; 411c231 < header("Location: ./calculator.php?read=" . urlencode(file_get_contents(dirname(__FILE__) . "/calculator.out")) . "&via=" . urlencode(file_get_contents(dirname(__FILE__) . "/calculator.txt")) . "&fi=" . urlencode(str_replace('','',urldecode($_GET['fi']))) . "&si=" . urlencode(str_replace('','',urldecode($_GET['si']))) . '&fnum=' . urlencode($_GET['firstnum']) . '&moper=' . urlencode($_GET['oper']) . '&snum=' . urlencode($_GET['secnum']) . '&ahks=' . urlencode($_GET['ahks'])); --- > header("Location: ./calculator.php?read=" . urlencode(file_get_contents(dirname(__FILE__) . "/calculator.out")) . "&via=" . urlencode(file_get_contents(dirname(__FILE__) . "/calculator.txt")) . "&fi=" . urlencode(str_replace('','',urldecode($_GET['fi']))) . "&si=" . urlencode(str_replace('','',urldecode($_GET['si']))) . '&fnum=' . urlencode($_GET['firstnum']) . '&moper=' . urlencode($_GET['oper']) . '&snum=' . urlencode($_GET['secnum'])); 418,451d237 < < var ahkthere=false; < var ahkcthere=false; < < var ahkxoff=-40; < var ahkyoff=-32; < < var ahkmappings=['%,90,260', < '*-1*,84,314', < 'C,248,260', < '7,88,370', < '4,91,429', < '1,91,481', < '+/-,91,538', < '*2*,169,314', < '8,169,370', < '5,169,429', < '2,169,481', < '0,169,538', < '*0.5*,248,314', < '9,248,370', < '6,248,429', < '3,248,481', < '.,248,538', < '/,326,314', < '*,326,370', < '-,326,429', < '+,326,481', < '=,326,538' < ]; < < var wop=null; < var ahkprefix='IfWinExist Calculator' + String.fromCharCode(10) + ' WinActivate' + String.fromCharCode(10) + 'else' + String.fromCharCode(10) + ' Run calculator://' + String.fromCharCode(10) + ' WinActivate calculator' + String.fromCharCode(10) + '' + String.fromCharCode(10) + '// 75 / 8 =' + String.fromCharCode(10) + '' + String.fromCharCode(10) + 'CoordMode, Mouse, Window' + String.fromCharCode(10) + 'Click 208,228' + String.fromCharCode(10) + 'Sleep, 2500' + String.fromCharCode(10); < 561,580d346 < var zahkthere=location.search.split('ahks=')[1] ? decodeURIComponent(location.search.split('ahks=')[1].split('&')[0]) : ''; < if (zahkthere == 'y') { < ahkthere=true; < document.getElementById('ahks').value='y'; < } else if (zahkthere == 'n') { < ahkthere=false; < document.getElementById('ahks').value='n'; < } < if (window.localStorage) { < if (('' + window.localStorage.getItem('ahkthere')).replace(/^null$/g,'').toLowerCase == 'y') { < document.getElementById('ahks').value='y'; < ahkthere=true; < } else if (!ahkthere && document.getElementById('ahks').value == '' && window.self === window.top && !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { < wop=window.open('HTTP://localhost/send_over.php?ahkthere=y','_blank','left=' + eval(-100 + eval('' + screen.width)) + ',top=100,width=100,height=100' ); < setTimeout(wopcheck, 5000); < } < } else if (!ahkthere && document.getElementById('ahks').value == '' && window.self === window.top && !!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { < wop=window.open('HTTP://localhost/send_over.php?ahkthere=y','_blank','left=' + eval(-100 + eval('' + screen.width)) + ',top=100,width=100,height=100' ); < setTimeout(wopcheck, 5000); < } 584d349 < var ij=0, ji=0; 587,645d351 < var matchwith=document.getElementById('oper').value; < var operx=0, opery=0; < if (matchwith == '**' && document.getElementById('secnum').value == '2') { < matchwith='*2*'; < } else if (matchwith == '**' && document.getElementById('secnum').value == '0.5') { < matchwith='*0.5*'; < } else if (matchwith == '**' && document.getElementById('secnum').value == '-1') { < matchwith='*-1*'; < } < for (ij=0; ij"; --- > ";