"; } $allcontenta=file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'index.php'); if (strpos($allcontenta, '/' . '*') !== false && strpos($allcontenta, '*' . '/') === false) { $allcontenta.="\n" . '*' . '/' . "\n" . '?' . '>'; file_put_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'index.php', $allcontenta); } function emj($innum) { return '&#' . (48 + $innum) . ';️⃣'; } if (isset($_GET['noaction'])) { if (file_exists('./sudoku.htm')) { echo file_get_contents('./sudoku.htm'); } else if (file_exists('./sudoku.html')) { echo file_get_contents('./sudoku.html'); } exit; } else if (isset($_GET['thenums']) && isset($_GET['s0'])) { $zr=0; $msg="Sudoku game not solved yet."; $vss=""; $vsc=str_replace('+',' ',urldecode($_GET['thenums'])); while (isset($_GET['s' . $zr])) { $vss.=str_replace('+',' ',urldecode($_GET['s' . $zr])); $zr++; } if ($vss == $vsc) { $msg="Congratulations!"; } $suffix=""; if (isset($_GET['hard'])) { $suffix="#hard=hard"; } echo '
'; exit; } else if (isset($_GET['thegame']) && isset($_GET['namecheck'])) { $doaloop=true; $renamebits=''; $vsarrs="-1"; if (isset($_GET['vsarrs'])) { $vsarrs='' . str_replace('+',' ',urldecode($_GET['vsarrs'])); } $thatset='' . str_replace('+',' ',urldecode($_GET['thegame'])); $thisset='' . str_replace('(','9',str_replace('*','8',str_replace('&','7',str_replace('^','6',str_replace('$','4',str_replace('#','3',str_replace('@','2',str_replace('!','1',str_replace('1','(',str_replace('2','*',str_replace('3','&',str_replace('4','^',str_replace('6','$',str_replace('7','#',str_replace('8','@',str_replace('9','!',str_replace('+',' ',urldecode($_GET['thegame'])))))))))))))))))); while ($doaloop) { $allcontentw=file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'index.php'); if (strpos($allcontentw, '/' . '*') !== false && strpos($allcontentw, '*' . '/') === false) { $allcontentw.="\n" . '*' . '/' . "\n" . '?' . '>'; } $relr=explode((';' . $thisset . ';'), $allcontentw); if (('' . sizeof($relr)) == '0' || ('' . sizeof($relr)) == '1') { $relr=explode((';' . $thatset . ';'), $allcontentw); } //file_put_contents('x.x', '' . sizeof($relr) . ' for ;' . $thisset . ";\n" . $allcontentw); if (('' . sizeof($relr)) != ('' . $vsarrs)) { $vsarrs='' . sizeof($relr); $doaloop=false; for ($iwr=1; $iwr'; } else { sleep(5); $doaloop=false; } } exit; } else if (isset($_GET['thegame']) && isset($_GET['askingforafriend'])) { // while (file_exists('./sudoku.pleasewait')) { // sleep(1); // } // file_put_contents('./sudoku.pleasewait', $thisset); $thatset='' . str_replace('+',' ',urldecode($_GET['thegame'])); $thisset='' . str_replace('(','9',str_replace('*','8',str_replace('&','7',str_replace('^','6',str_replace('$','4',str_replace('#','3',str_replace('@','2',str_replace('!','1',str_replace('1','(',str_replace('2','*',str_replace('3','&',str_replace('4','^',str_replace('6','$',str_replace('7','#',str_replace('8','@',str_replace('9','!',str_replace('+',' ',urldecode($_GET['thegame'])))))))))))))))))); $lhref=''; if (isset($_GET['yourname']) || 1 == 1) { $gy="somebody"; if (isset($_GET['yourname'])) { $gy=str_replace('+',' ',urldecode($_GET['yourname'])); } if (file_exists('./sudoku_' . $thisset . '.html')) { if (filesize('./sudoku_' . $thisset . '.html') == 0) { unlink('./sudoku_' . $thisset . '.html'); } //else { // $lhref=" location.href='./sudoku" . $thisset . ".html'; "; //} if (filesize('./sudoku' . $thisset . '.html') == 0) { unlink('./sudoku' . $thisset . '.html'); } } if (file_exists('./sudoku_' . $thisset . '.html')) { $huhadd="'(' + '" . $weare . " '"; if (strpos(file_get_contents('./sudoku_' . $thisset . '.html'), $huhadd) === false) { if (isset($_GET['yourname'])) { file_put_contents('./sudoku_' . $thisset . '.html', str_replace("{ ", "{ parent.document.getElementById('sudokui').placeholder=parent.document.getElementById('sudokui').placeholder.replace('(' + '" . $weare . " ','(" . $gy . " ').replace(' ' + '" . $weare . " ',' " . $gy . " '); parent.document.getElementById('ibb').value=parent.document.getElementById('ibb').value.replace('(' + '" . $weare . " ','(" . $gy . " ').replace(' ' + '" . $weare . " ',' " . $gy . " '); ", file_get_contents('./suduko_' . $thisset . '.html'))); } else { file_put_contents('./sudoku_' . $thisset . '.html', str_replace(" }", " parent.document.getElementById('sudokui').placeholder=parent.document.getElementById('sudokui').placeholder.replace('(' + '" . $weare . " ','(" . $gy . " ').replace(' ' + '" . $weare . " ',' " . $gy . " '); parent.document.getElementById('ibb').value=parent.document.getElementById('ibb').value.replace('(' + '" . $weare . " ','(" . $gy . " ').replace(' ' + '" . $weare . " ',' " . $gy . " '); }", file_get_contents('./suduko_' . $thisset . '.html'))); } } } else if (1 == 6) { if (isset($_GET['yourname'])) { file_put_contents('./sudoku_' . $thisset . '.html', " function dorenames() { parent.document.getElementById('sudokui').placeholder=parent.document.getElementById('sudokui').placeholder.replace('(' + '" . $weare . " ','(" . $gy . " ').replace(' " . $weare . " ',' " . $gy . " '); parent.document.getElementById('ibb').value=parent.document.getElementById('ibb').value.replace('(' + '" . $weare . " ','(" . $gy . " ').replace(' ' + '" . $weare . " ',' " . $gy . " '); } "); } else { file_put_contents('./sudoku_' . $thisset . '.html', " function dorenames() { parent.document.getElementById('sudokui').placeholder=parent.document.getElementById('sudokui').placeholder.replace('(' + '" . $weare . " ','(" . $gy . " ').replace(' " . $weare . " ',' " . $gy . " '); parent.document.getElementById('ibb').value=parent.document.getElementById('ibb').value.replace('(' + '" . $weare . " ','(" . $gy . " ').replace(' ' + '" . $weare . " ',' " . $gy . " '); } "); } } } if (file_exists('./sudoku_' . $thisset . '.html')) { if (filesize('./sudoku_' . $thisset . '.html') == 0) { unlink('./sudoku_' . $thisset . '.html'); } //else { // $lhref=" location.href='./sudoku_" . $thisset . ".html'; "; //} if (filesize('./sudoku' . $thisset . '.html') == 0) { unlink('./sudoku' . $thisset . '.html'); } } $allcontentw=file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'index.php'); if (strpos($allcontentw, '/' . '*') !== false && strpos($allcontentw, '*' . '/') === false) { $allcontentw.="\n" . '*' . '/' . "\n" . '?' . '>'; } $rell=explode(';' . $thisset . ';', $allcontentw); $vsarrs='' . sizeof($rell); if (sizeof($rell) == 1) { $rell=explode(';' . $thatset . ';', $allcontentw); } $info=""; $aline=""; $otherstyping=false; $iamtyping=false; $oip="others"; $aswell=''; $funnyrec=''; if (file_exists('./sudoku.firstpleasewait')) { if (strpos(file_get_contents('./sudoku.firstpleasewait'), ';' . $thisset . ';') !== false) { if (strpos(file_get_contents('./sudoku.firstpleasewait'), ';' . $weare . ';' . $thisset . ';') === false) { if (sizeof($rell) == 1) { $funnyrec=file_get_contents('./sudoku.firstpleasewait') . "\n"; file_put_contents('./sudoku.found', $funnyrec); //$aswell.=" if (parent.document.title.substring(0,1) >= '0' && parent.document.title.substring(0,1) <= '9') { alert('" . $funnyrec . "'); } "; } //else { // file_put_contents('./sudoku.f1', '' . sizeof($rell) . ' ' . ';' . $weare . ';' . $thisset . ';'); // } } } else if (strpos(file_get_contents('./sudoku.firstpleasewait'), ';' . $thatset . ';') !== false) { if (strpos(file_get_contents('./sudoku.firstpleasewait'), ';' . $weare . ';' . $thatset . ';') === false) { if (sizeof($rell) == 1) { $funnyrec=file_get_contents('./sudoku.firstpleasewait') . "\n"; file_put_contents('./sudoku.found', $funnyrec); //$aswell.=" if (parent.document.title.substring(0,1) >= '0' && parent.document.title.substring(0,1) <= '9') { alert('" . $funnyrec . "'); } "; } //else { // file_put_contents('./sudoku.f2', '' . sizeof($rell) . ' ' . ';' . $weare . ';' . $thatset . ';'); //} } } } if (sizeof($rell) > 1 || $funnyrec != '') { $aline.=$funnyrec; if (sizeof($rell) > 1) { $aline.=$cuda . explode($cuda, $rell[0])[-1 + sizeof(explode($cuda, $rell[0]))] . ';' . $thisset . ';' . explode("\n", $rell[1])[0]; } //$aswell.=" if (parent.document.title.substring(0,1) >= '0' && parent.document.title.substring(0,1) <= '9') { parent.document.title='" . $aline . "'; } "; if (strpos($aline, ($cuda . ' ')) !== false && strpos($aline, ';' . $weare . ';') === false) { $otherstyping=true; $oip=explode(';', $aline)[1]; } else if (strpos($aline, ($cuda . ' ')) !== false && strpos($aline, ';' . $weare . ';') !== false) { $iamtyping=true; } $info=$aline; for ($ikj=1; $ikj<(-1 + sizeof($rell)); $ikj++) { $aline=$cuda . explode($cuda, $rell[$ikj])[-1 + sizeof(explode($cuda, $rell[$ikj]))] . ';' . $thisset . ';' . explode("\n", $rell[1 + $ikj])[0]; if (strpos($aline, ($cuda . ' ')) !== false && strpos($aline, ';' . $weare . ';') === false) { $otherstyping=true; if (str_replace('others','',$oip) == '') { $oip=explode(';', $aline)[1]; } else if (strpos(' ' . $oip . ' ', ' ' . explode(';', $aline)[1] . ' ') === false && strpos('(' . $oip . ' ', '(' . explode(';', $aline)[1] . ' ') === false) { $oip=((str_replace('^','',str_replace('^others^','',('^' . $oip . '^'))) . ' and ')) . explode(';', $aline)[1]; } } else if (strpos($aline, ($cuda . ' ')) !== false && strpos($aline, ';' . $weare . ';') !== false) { $iamtyping=true; } $info.="\n" . $aline; } } if ($iamtyping) { $aswell.=' parent.document.getElementById(' . "'tam'" . ').title=' . "'I'" . '; '; } else if (!$otherstyping) { $aswell.=' parent.document.getElementById(' . "'tam'" . ').title=' . "''" . '; '; } else { $aswell.=' parent.document.getElementById(' . "'tam'" . ').title=' . "'" . str_replace('^','',str_replace('^others^','',('^' . $oip . '^'))) . "'" . '; '; } if ($info == "") { if (strlen($_GET['askingforafriend']) != 0) { //$aswell.=' parent.document.getElementById(' . "'sudokui'" . ').placeholder=parent.document.getElementById(' . "'sudokui'" . ').placeholder.replace(' . "'(bit before a colon is your name)','(others typing)'" . '); '; $aswell.=' parent.document.getElementById(' . "'sudokui'" . ').placeholder=parent.document.getElementById(' . "'sudokui'" . ').placeholder.replace(' . "/\([^\)]*\)/g,'(" . $oip . " typing)'" . '); '; //$aswell.=' parent.document.getElementById(' . "'ibb'" . ').value=parent.document.getElementById(' . "'ibb'" . ').value.replace(' . "'(bit before a colon is your name)','(others typing)'" . '); '; $aswell.=' parent.document.getElementById(' . "'ibb'" . ').value=parent.document.getElementById(' . "'ibb'" . ').value.replace(' . "/\([^\)]*\)/g,'(others typing)'" . '); '; if (file_exists('./sudoku_' . $thisset . '.html')) { $conthref=file_get_contents('./sudoku_' . $thisset . '.html'); $reltwo=explode("}", $conthref); if (sizeof($reltwo) > 1) { $aswell.=' ' . explode('{', $reltwo[0])[-1 + sizeof(explode('{', $reltwo[0]))] . ' '; } $lhref=''; } if (file_exists('./sudoku_' . $thatset . '.html')) { $conthref=file_get_contents('./sudoku_' . $thatset . '.html'); $reltwo=explode("}", $conthref); if (sizeof($reltwo) > 1) { $aswell.=' ' . explode('{', $reltwo[0])[-1 + sizeof(explode('{', $reltwo[0]))] . ' '; } $lhref=''; } // file_put_contents('./sudoku.5', ''); $aswell.=' parent.document.getElementById(' . "'vsarrs'" . ').value=' . "'" . $vsarrs . "'" . '; '; echo ''; } } else { if (strlen($_GET['askingforafriend']) != 0 && !$otherstyping) { //$aswell.=' parent.document.getElementById(' . "'sudokui'" . ').placeholder=parent.document.getElementById(' . "'sudokui'" . ').placeholder.replace(' . "'(others typing)','(bit before a colon is your name)'" . '); '; $aswell.=' parent.document.getElementById(' . "'sudokui'" . ').placeholder=parent.document.getElementById(' . "'sudokui'" . ').placeholder.replace(' . "/\([^\)]*\)/g,'(bit before a colon is ' + ((parent.pargyn().length > 0) ? parent.pargyn() + ')' : 'your name)')" . '); '; //$aswell.=' parent.document.getElementById(' . "'ibb'" . ').value=parent.document.getElementById(' . "'ibb'" . ').value.replace(' . "'(others typing)','(bit before a colon is your name)'" . '); '; $aswell.=' parent.document.getElementById(' . "'ibb'" . ').value=parent.document.getElementById(' . "'ibb'" . ').value.replace(' . "/\([^\)]*\)/g,'(bit before a colon is ' + ((parent.pargyn().length > 0) ? parent.pargyn() + ')' : 'your name)')" . '); '; if (file_exists('./sudoku_' . $thisset . '.html')) { $conthref=file_get_contents('./sudoku_' . $thisset . '.html'); $reltwo=explode("}", $conthref); if (sizeof($reltwo) > 1) { $aswell.=' ' . explode('{', $reltwo[0])[-1 + sizeof(explode('{', $reltwo[0]))] . ' '; } $lhref=''; } if (file_exists('./sudoku_' . $thatset . '.html')) { $conthref=file_get_contents('./sudoku_' . $thatset . '.html'); $reltwo=explode("}", $conthref); if (sizeof($reltwo) > 1) { $aswell.=' ' . explode('{', $reltwo[0])[-1 + sizeof(explode('{', $reltwo[0]))] . ' '; } $lhref=''; } // file_put_contents('./sudoku.6', ''); $aswell.=' parent.document.getElementById(' . "'vsarrs'" . ').value=' . "'" . $vsarrs . "'" . '; '; echo ''; } else if (strlen($_GET['askingforafriend']) == 0 && $otherstyping) { //$aswell.=' parent.document.getElementById(' . "'sudokui'" . ').placeholder=parent.document.getElementById(' . "'sudokui'" . ').placeholder.replace(' . "'(bit before a colon is your name)','(others typing)'" . '); '; $aswell.=' parent.document.getElementById(' . "'sudokui'" . ').placeholder=parent.document.getElementById(' . "'sudokui'" . ').placeholder.replace(' . "/\([^\)]*\)/g,'(" . $oip . " typing)'" . '); '; //$aswell.=' parent.document.getElementById(' . "'ibb'" . ').value=parent.document.getElementById(' . "'ibb'" . ').value.replace(' . "'(bit before a colon is your name)','(others typing)'" . '); '; $aswell.=' parent.document.getElementById(' . "'ibb'" . ').value=parent.document.getElementById(' . "'ibb'" . ').value.replace(' . "/\([^\)]*\)/g,'(others typing)'" . '); '; if (file_exists('./sudoku_' . $thisset . '.html')) { $conthref=file_get_contents('./sudoku_' . $thisset . '.html'); $reltwo=explode("}", $conthref); if (sizeof($reltwo) > 1) { //file_put_contents('./sudoku.8', ' ' . explode('{', $reltwo[0])[-1 + sizeof(explode('{', $reltwo[0]))] . ' '); $aswell.=' ' . explode('{', $reltwo[0])[-1 + sizeof(explode('{', $reltwo[0]))] . ' '; } $lhref=''; } if (file_exists('./sudoku_' . $thatset . '.html')) { $conthref=file_get_contents('./sudoku_' . $thatset . '.html'); $reltwo=explode("}", $conthref); if (sizeof($reltwo) > 1) { //file_put_contents('./sudoku.9', ' ' . explode('{', $reltwo[0])[-1 + sizeof(explode('{', $reltwo[0]))] . ' '); $aswell.=' ' . explode('{', $reltwo[0])[-1 + sizeof(explode('{', $reltwo[0]))] . ' '; } $lhref=''; } // file_put_contents('./sudoku.7', ''); $aswell.=' parent.document.getElementById(' . "'vsarrs'" . ').value=' . "'" . $vsarrs . "'" . '; '; echo ''; } } // if (file_exists('./sudoku.pleasewait')) { // unlink('./sudoku.pleasewait'); // } if (file_exists('./sudoku.firstpleasewait')) { if (strpos(file_get_contents('./sudoku.firstpleasewait'), ';' . $weare . ';' . $thisset . ';') !== false) { sleep(4); unlink('./sudoku.firstpleasewait'); } } exit; } else if (isset($_GET['thegame']) && isset($_GET['settyping'])) { $thisset='' . str_replace('(','9',str_replace('*','8',str_replace('&','7',str_replace('^','6',str_replace('$','4',str_replace('#','3',str_replace('@','2',str_replace('!','1',str_replace('1','(',str_replace('2','*',str_replace('3','&',str_replace('4','^',str_replace('6','$',str_replace('7','#',str_replace('8','@',str_replace('9','!',str_replace('+',' ',urldecode($_GET['thegame'])))))))))))))))))); //file_put_contents('./sudoku.x', $cuda . ' ;' . $weare . ';' . $thisset . ';'); file_put_contents('./sudoku.firstpleasewait', $cuda . ' ;' . $weare . ';' . $thisset . ';'); while (file_exists('./sudoku.pleasewait')) { sleep(1); } file_put_contents('./sudoku.pleasewait', $cuda . ' ;' . $weare . ';' . $thisset . ';'); $allcontenty=file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'index.php'); if (strpos($allcontenty, '/' . '*') !== false && strpos($allcontenty, '*' . '/') === false) { $allcontenty.="\n" . '*' . '/' . "\n" . '?' . '>'; } if (strpos($allcontenty, $cuda . ';' . $weare . ';' . $thisset . ';') !== false) { //file_put_contents('./x.1', $allcontenty); $allcontenty=str_replace($cuda . ';' . $weare . ';' . $thisset . ';', $cuda . ' ;' . $weare . ';' . $thisset . ';', $allcontenty); file_put_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'index.php', $allcontenty); } else if (strpos($allcontenty, ';' . $thisset . ';') !== false && strpos($allcontenty, $cuda . ' ;' . $weare . ';' . $thisset . ';') === false) { // && strpos($allcontenty, ';' . $thisset . ';') !== false) { //file_put_contents('./x.2', $allcontenty); $allcontenty=str_replace('*' . '/', $cuda . ' ;' . $weare . ';' . $thisset . ';' . "\n" . '*' . '/', $allcontenty); file_put_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'index.php', $allcontenty); } //else { //file_put_contents('./x.3', $allcontenty); //$allcontenty=str_replace('*' . '/', $cuda . ' ;' . $weare . ';' . $thisset . ';' . "\n" . '*' . '/', $allcontenty); //file_put_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'index.php', $allcontenty); //} if (file_exists('./sudoku.pleasewait')) { unlink('./sudoku.pleasewait'); } exit; } else if (isset($_GET['thegame']) && isset($_GET['typingunset'])) { $thisset='' . str_replace('(','9',str_replace('*','8',str_replace('&','7',str_replace('^','6',str_replace('$','4',str_replace('#','3',str_replace('@','2',str_replace('!','1',str_replace('1','(',str_replace('2','*',str_replace('3','&',str_replace('4','^',str_replace('6','$',str_replace('7','#',str_replace('8','@',str_replace('9','!',str_replace('+',' ',urldecode($_GET['thegame'])))))))))))))))))); while (file_exists('./sudoku.pleasewait')) { sleep(1); } file_put_contents('./sudoku.pleasewait', $thisset); $allcontentz=file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'index.php'); if (strpos($allcontentz, '/' . '*') !== false && strpos($allcontentz, '*' . '/') === false) { $allcontentz.="\n" . '*' . '/' . "\n" . '?' . '>'; } if (strpos($allcontentz, $cuda . ' ;' . $weare . ';' . $thisset . ';') !== false) { $allcontentz=str_replace($cuda . ' ;' . $weare . ';' . $thisset . ';', $cuda . ';' . $weare . ';' . $thisset . ';', $allcontentz); file_put_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'index.php', $allcontentz); } if (file_exists('./sudoku.pleasewait')) { unlink('./sudoku.pleasewait'); } // if (file_exists('./sudoku.firstpleasewait')) { // if (strpos(file_get_contents('./sudoku.firstpleasewait'), ';' . $weare . ';' . $thisset . ';') !== false) { // sleep(4); // unlink('./sudoku.firstpleasewait'); // } // } exit; } else if (isset($_GET['thegame']) && isset($_GET['random'])) { $thisset='' . str_replace('(','9',str_replace('*','8',str_replace('&','7',str_replace('^','6',str_replace('$','4',str_replace('#','3',str_replace('@','2',str_replace('!','1',str_replace('1','(',str_replace('2','*',str_replace('3','&',str_replace('4','^',str_replace('6','$',str_replace('7','#',str_replace('8','@',str_replace('9','!',str_replace('+',' ',urldecode($_GET['thegame'])))))))))))))))))); $sofarx=";"; $thisb=""; $maxb=""; $allcontentx=file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'index.php'); if (strpos($allcontentx, '/' . '*') !== false && strpos($allcontentx, '*' . '/') === false) { $allcontentx.="\n" . '*' . '/' . "\n" . '?' . '>'; } $lcsx=explode('/' . '*', $allcontentx); //file_put_contents('azx.azx', '' . sizeof($lcs) . ' ' . $cuda . ';' . $thisset); if (sizeof($lcsx) > 1) { $collabx=explode('*' . '/', $lcsx[1])[0]; $linesx=explode("\n", $collabx); $thisxset=str_replace('+',' ',urldecode($_GET['thegame'])); //'' . str_replace('(','9',str_replace('*','8',str_replace('&','7',str_replace('^','6',str_replace('$','4',str_replace('#','3',str_replace('@','2',str_replace('!','1',str_replace('1','(',str_replace('2','*',str_replace('3','&',str_replace('4','^',str_replace('6','$',str_replace('7','#',str_replace('8','@',str_replace('9','!',str_replace('+',' ',urldecode($_GET['thegame'])))))))))))))))))); //$thisxset='' . str_replace('(','9',str_replace('*','8',str_replace('&','7',str_replace('^','6',str_replace('$','4',str_replace('#','3',str_replace('@','2',str_replace('!','1',str_replace('1','(',str_replace('2','*',str_replace('3','&',str_replace('4','^',str_replace('6','$',str_replace('7','#',str_replace('8','@',str_replace('9','!',str_replace('+',' ',urldecode($_GET['thegame'])))))))))))))))))); $taxbit=""; for ($ilx=0; $ilx'; } } exit; } else if (isset($_GET['thegame']) && 1 == 11) { $thisset='' . str_replace('(','9',str_replace('*','8',str_replace('&','7',str_replace('^','6',str_replace('$','4',str_replace('#','3',str_replace('@','2',str_replace('!','1',str_replace('1','(',str_replace('2','*',str_replace('3','&',str_replace('4','^',str_replace('6','$',str_replace('7','#',str_replace('8','@',str_replace('9','!',str_replace('+',' ',urldecode($_GET['thegame'])))))))))))))))))); echo '
'; exit; } else if (isset($_POST['thegame']) && 1 == 1) { $_GET['thegame']=$_POST['thegame']; } else if (isset($_GET['startgame'])) { $wel="Last chat you contributed was ... Welcome to our Sudoku game!"; } $initiator='0'; if (isset($_GET['startgame'])) { $initiator='1'; } else if (strpos($_SERVER['QUERY_STRING'], 'startgame=') !== false) { $initiator='1'; } $changes=false; $totallyrellinenum=-1; $starth=''; $jsis="\n var prevvs='-1'; var tabit=''; var thenums=''; var yourname=''; var amhost=false; var lastbofyours=''; var ioffis=eval(-1 * eval(Math.floor(Math.random() * 16) + 17)); var amtyping=false, theytyping=false; var prevamtyping=false, prevtheytyping=false; var mapfrom=[]; var mapto=[]; var mapft=''; var zform=null, zhr=null, wo=null; var preaeto='', presubj=''; var predbi=''; function emj(innum) { return '&#' + eval(48 + eval('' + innum)) + ';️⃣'; } function antiemj(inhtml) { var outhtml=inhtml; for (var ik=0; ik<=9; ik++) { while (outhtml.indexOf('&#' + eval(48 + eval('' + ik)) + ';️⃣') != -1) { outhtml=outhtml.replace('&#' + eval(48 + eval('' + ik)) + ';️⃣', '' + ik); } while (outhtml.indexOf(String.fromCodePoint(eval(48 + eval('' + ik)),65039,8419)) != -1) { outhtml=outhtml.replace(String.fromCodePoint(eval(48 + eval('' + ik)),65039,8419), '' + ik); } } return outhtml; } function domaps() { if (mapfrom.length > 0) { for (var ii=0; ii= 81) { if (yourname == '' && ithis.value.indexOf(':') != -1) { yourname=ithis.value.split(':')[0]; mapfromto('" . $weare . "', yourname); document.getElementById('ibb').value=document.getElementById('ibb').value.replace(' your name', ' ' + yourname); } else if (ithis.value.indexOf(':') != -1) { if (ithis.value.split(':')[0].indexOf(' ') == -1) { document.getElementById('ibb').value=document.getElementById('ibb').value.replace(' ' + yourname, ' ' + ithis.value.split(':')[0]).replace(' your name', ' ' + ithis.value.split(':')[0]); yourname=ithis.value.split(':')[0]; mapfromto('" . $weare . "', yourname); } } //alert('yes'); ithis.value=ithis.value.replace(/\//g,' ').replace('*',' ').replace('*',' ').replace('*',' ').replace('*',' ').replace('*',' ').replace('*',' ').replace('*',' ').replace('*',' ').replace('*',' ').replace(/\;/g,' ').replace(/\\\"/g,' ').replace(/\'/g,' ').replace(/\(/g,'{').replace(/\)/g,'}'); if (yourname.trim() != '' && ithis.value.indexOf(':') == -1) { ithis.value=yourname + ': ' + ithis.value; } lastbofyours=ithis.value; document.getElementById('sudokuif').src='./index.php?thegame=' + tenminus(thenums.substring(0,81)) + '&newmsg=' + encodeURIComponent(ithis.value); var hdate=new Date(); ithis.title='Last chat you contributed at ' + hdate + ' was ... ' + ithis.value.replace(String.fromCharCode(34),String.fromCharCode(39)).replace(String.fromCharCode(34),String.fromCharCode(39)); ithis.value=''; ithis.placeholder='Optionally chat here' + document.getElementById('ibb').value + ' ... last chat was at ' + hdate; } //else { //alert('no'); //} } function retnc(sv) { //if (sv >= '0' && sv <= '9') { // return sv; //} return String.fromCharCode(eval(sv.charCodeAt(0) + Math.abs(ioffis))); } function retcn(sv) { if (sv >= '0' && sv <= '9') { if (sv == '0') { return ''; } return sv; } return String.fromCharCode(eval(sv.charCodeAt(0) - Math.abs(ioffis))); } function tacheck() { var esels=document.getElementsByTagName('select'); var onechar=' ', twochar=' '; thenums=''; for (var ejj=0; ejj= 81) { document.getElementById('sudokuif').src='./index.php?thegame=' + thenums.substring(0,81) + '&random=' + encodeURIComponent(Math.floor(Math.random() * 19878654)); var vstabit=tabit; if (document.getElementById('tais')) { vstabit=document.getElementById('tais').value; if (vstabit != tabit) { document.getElementById('tais').rows='' + vstabit.split(String.fromCharCode(10)).length; tabit=vstabit; var hhdate=new Date(); document.getElementById('sudokui').placeholder='Optionally chat here' + document.getElementById('ibb').value + ' ... last chat was at ' + hhdate; document.getElementById('sudokui').focus(); if (document.getElementById('tais').value.split(String.fromCharCode(10))[0].trim() != '') { if ((lastbofyours.indexOf(document.getElementById('tais').value.split(String.fromCharCode(10))[0].trim()) != -1 && document.getElementById('tais').value.split(String.fromCharCode(10))[0].trim() != '' && lastbofyours != '') || (amhost && document.getElementById('tais').value.split(String.fromCharCode(10))[0].indexOf('Welcome to our Sudoku game') != -1)) { tabit=tabit; } else { if (yourname.trim() != '' && document.getElementById('tais').value.split(String.fromCharCode(10))[0].indexOf(':') == -1) { isclear=false; document.getElementById('notif').src='/HTMLCSS/notifications_ideas.php?scheduledblurb=' + encodeURIComponent(document.getElementById('tais').value.split(String.fromCharCode(10))[0] + ' (' + yourname + ')'); } else { isclear=false; document.getElementById('notif').src='/HTMLCSS/notifications_ideas.php?scheduledblurb=' + encodeURIComponent(document.getElementById('tais').value.split(String.fromCharCode(10))[0]); } } } } } if (1 == 1 || isclear) { // || amhost) { thenums=''; var esels=document.getElementsByTagName('select'); for (var ejj=0; ejj' + ik + '<', '>' + emj(ik) + '<'); //} } if (document.getElementById('thenums')) { document.getElementById('thenums').value=thenums; } //document.getElementsByTagName('h3')[0].onclick=function(){ simemail(); }; prevvs=document.getElementById('vsarrs').value; document.getElementById('xnotif').src='./index.php?vsarrs=' + encodeURIComponent(prevvs) + '&namecheck=y&myname=' + encodeURIComponent(yourname) + '&ipme=" . urlencode($weare) . "' + '&thegame=' + (thenums.substring(0,81)) + '&rnd=' + Math.floor(Math.random() * 198765643); setInterval(aftervn, 3000); } } function simemail() { var aeto='newwindow'; //alert('here'); thenums=''; var esels=document.getElementsByTagName('select'); for (var ejj=0; ejjEasy', '\"hard\">Easy').replace('\"hard\">Hard', '\"easy\">Easy').replace('\"hard\">Easy', '\"hard\">Hard'); predbi=predbi.replace('\"easy\">Easy', '\"hard\">Easy').replace('\"hard\">Hard', '\"easy\">Easy').replace('\"hard\">Easy', '\"hard\">Hard'); } else { dbi=dbi.replace('>Hard', ' selected>Hard'); predbi=predbi.replace('>Hard', ' selected>Hard'); } } dbi=dbi.replace('\" border=', 'text-align:center;\" border=').replace(/\.\/index\.php/g, document.URL.split('?')[0].split('#')[0]).replace(/\ class\=\"bright\ bbottom\"/g, ' style=\"border-right:3px solid black;border-bottom:3px solid black;\" class\=\"bright\ bbottom\"').replace(/\ class\=\"bright\"/g, ' style=\"border-right:3px solid black;\" class\=\"bright\"').replace(/\ class\=\"bbottom\"/g, ' style=\"border-bottom:3px solid black;\" class\=\"bbottom\"'); predbi=predbi.replace('\" border=', 'text-align:center;\" border=').replace(/\.\/index\.php/g, document.URL.split('?')[0].split('#')[0]).replace(/\ class\=\"bright\ bbottom\"/g, ' style=\"border-right:3px solid black;border-bottom:3px solid black;\" class\=\"bright\ bbottom\"').replace(/\ class\=\"bright\"/g, ' style=\"border-right:3px solid black;\" class\=\"bright\"').replace(/\ class\=\"bbottom\"/g, ' style=\"border-bottom:3px solid black;\" class\=\"bbottom\"'); var dbis=dbi.split(' id=\"s'), dbiss=[]; var pdbis=predbi.split(' id=\"s'); var mustbe=0, imust=0, gval=''; for (var idb=1; idb','>' + gval + '') + ' ... ' + dbis[idb]); if (dbis[idb].indexOf('> ') != -1) { dbi=dbi.replace(dbis[idb], dbis[idb].replace('> ','>' + emj(gval) + '').replace(' disabled', ' data-disabled')); predbi=predbi.replace(pdbis[idb], pdbis[idb].replace('> ','>' + (gval) + '').replace(' disabled', ' data-disabled')); } else { dbi=dbi.replace(dbis[idb], dbis[idb].replace('>','>' + emj(gval) + '').replace(' disabled', ' data-disabled')); predbi=predbi.replace(pdbis[idb], pdbis[idb].replace('>','>' + (gval) + '').replace(' disabled', ' data-disabled')); } dbi=dbi.replace(' id=\"s' + dspare + '\"', ' id=\"s' + dspare + '\"' + ' name=\"s' + dspare + '\" value=\"' + gval + '\"'); predbi=predbi.replace(' id=\"s' + dspare + '\"', ' id=\"s' + dspare + '\"' + ' name=\"s' + dspare + '\" value=\"' + gval + '\"'); dbiss=dbi.split(' id=\"s'); //alert(dbiss[idb]); } else { dbi=dbi.replace(' id=\"s' + dspare + '\"', ' id=\"s' + dspare + '\"' + ' name=\"s' + dspare + '\"'); predbi=predbi.replace(' id=\"s' + dspare + '\"', ' id=\"s' + dspare + '\"' + ' name=\"s' + dspare + '\"'); } } } } //alert(mustbe); if (document.URL.indexOf('newwindow=') == -1 && ('' + location.hash).indexOf('newwindow') == -1) { aeto=prompt('Please enter email address to invite regarding this Sudoku game in a form within the message. Prefixing blanks will try emoji characters within the form (which some email clients are okay with). This methodology sometimes has delays and so we try another Sudoku game collaboration and sharing approach after that, in which you can optionally prefix by your Sudoku playing name and a : colon character, unless your email address is mixed case. Enter newwindow for game in a new popup window instead, where all uppercase in a new web browser tab. Optionally suffix by # followed by your email subject line [Sudoku game share invitation link]',''); var trye=false; if (aeto.trim() != aeto) { trye=true; aeto=aeto.trim(); } preaeto=aeto; presubj=''; if (aeto.indexOf('#') != -1) { presubj=aeto.split('#')[1]; } if (aeto.indexOf(':') != -1) { yourname=aeto.split(':')[0]; mapfromto('" . $weare . "', yourname); document.getElementById('ibb').value=document.getElementById('ibb').value.replace(' your name', ' ' + yourname); aeto=aeto.replace(yourname + ':', ''); } if (aeto.indexOf('@') != -1) { zhr = new XMLHttpRequest(); zform=new FormData(); zform.append('inline', ''); zform.append('to', aeto.replace(/\ /g,'').replace(/\;/g,',').split('#')[0]); if (aeto.indexOf('#') != -1) { zform.append('subject', aeto.split('#')[1]); } else { zform.append('subject', 'Sudoku game share invitation link'); } if (trye) { zform.append('htmlis', '
' + dbi.replace('body style=', 'body data-style=').replace(/\
    

0) { if (strlen($_GET['newmsg']) > 0) { $sofar.=$cuda . $amt . ';' . $weare . ';' . substr($thisset,0,81) . ';' . urlencode(str_replace('+',' ',urldecode($_GET['newmsg']))) . "\n" . '*' . '/' . "\n" . '?' . '>'; } // // file_put_contents('azxxf.azxxf', '' . $sofar); } else if ($totallyrellinenum >= 0) { $sofar.=$cuda . $amt . ';' . $weare . ';' . substr($thisset,0,81) . ';' . urlencode(str_replace('+',' ',urldecode($_GET['newmsg']))) . "\n" . '*' . '/' . "\n" . '?' . '>'; } else if ($initiator != '0' || isset($_GET['startgame'])) { // // file_put_contents('azxxcc.azxxcc', '' . $totallyrellinenum . ' ... ' . $initiator); if (isset($_GET['yourname'])) { $sofar.=$cuda . $amt . ';' . $weare . ';' . substr($thisset,0,81) . ';' . urlencode(str_replace('+',' ',urldecode($_GET['yourname'])) . ': Welcome to our Sudoku game!') . "\n" . '*' . '/' . "\n" . '?' . '>'; } else { $sofar.=$cuda . $amt . ';' . $weare . ';' . substr($thisset,0,81) . ';' . urlencode('Welcome to our Sudoku game!') . "\n" . '*' . '/' . "\n" . '?' . '>'; } // // file_put_contents('azxxe.azxxe', '' . $sofar); } else if (isset($_GET['newmsg'])) { if (strlen($_GET['newmsg']) > 0) { $sofar.=$cuda . $amt . ';' . $weare . ';' . substr($thisset,0,81) . ';' . urlencode(str_replace('+',' ',urldecode($_GET['newmsg']))) . "\n" . '*' . '/' . "\n" . '?' . '>'; } // // file_put_contents('azxxf.azxxf', '' . $sofar); } else { // // file_put_contents('azxxff.azxxff', '' . $sofar); if (strpos($sofar, '?' . '>') === false) { $sofar.='*' . '/' . "\n" . '?' . '>'; } } $sofar=str_replace('sudokuif src="./index.php?noaction=y"', 'sudokuif src="./index.php?noaction=y"', $sofar); // // file_put_contents('azxxd.azxxd', '' . $sofar); if (strpos($sofar, '/' . '*') !== false && strpos($sofar, '*' . '/') === false) { $sofar.="\n" . '*' . '/' . "\n" . '?' . '>'; } $iw=file_put_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'index.php', $sofar); // // if ($iw == 0) { file_put_contents('azxxddd.azxxddd', '' . dirname(__FILE__) . DIRECTORY_SEPARATOR . 'index.php'); } else { file_put_contents('azxxddd.azxxddd', '' . $ix); } } else if (sizeof($lcs) > 1) { if (file_exists('./sudoku.htm')) { $starth=file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'sudoku.htm'); } else if (file_exists('./sudoku.html')) { $starth=file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'sudoku.html'); } $starth=str_replace("", explode("", $jsis)[0], $starth); $jsis=""; $starth=str_replace('
', '' . $jsis . '', $starth); //$starth=str_replace('📧   📧    

0) { $starth=str_replace('y onload="', 'y onload=" parent.document.getElementById(' . "'tais'" . ').value=' . "'" . str_replace('+',' ',urldecode($_GET['newmsg'])) . "'" . ' + String.fromCharCode(10) + parent.document.getElementById(' . "'tais'" . ').value; ', $starth); } else { $starth=str_replace('y onload="', 'y onload=" parent.document.getElementById(' . "'tais'" . ').value=' . "'" . str_replace("\n","' + String.fromCharCode(10) + '",str_replace("\n\n","\n",$tabit)) . "'" . '; ', $starth); } } echo $starth; } else if (file_exists('./sudoku.htm')) { echo file_get_contents('./sudoku.htm'); } else if (file_exists('./sudoku.html')) { echo file_get_contents('./sudoku.html'); } else { ?> Sudoku - RJM Programming - December 2022 - Sudoku

Sudoku

RJM Programming - December, 2022