"; $numtoguess = 0; $score = "0"; $outof = "0"; $theword = ""; $theunderline = array("","","",""); $theword = array("","","",""); $inorder = array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25); $outoforder = array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25); $azorder = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"); $donottouch = rand(0,25); if (isset($_POST['word1of4'])) { $theword[0] = $_POST['word1of4']; $theword[1] = $_POST['word2of4']; $theword[2] = $_POST['word3of4']; $theword[3] = $_POST['word4of4']; } else if (isset($_GET['huhlarge'])) { if (strpos($_GET['huhlarge'], "~") !== false) { $theword = explode("~", $_GET['huhlarge']); } else { $theword[0] = $_GET['huhlarge']; } } else { $theword[0] = strtolower(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . str_replace(":443/","/",":" . $_SERVER['SERVER_PORT'] . "/PHP/surprise.php?min=4&max=10&youllneverfindthis=y"))); $theword[1] = strtolower(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . str_replace(":443/","/",":" . $_SERVER['SERVER_PORT'] . "/PHP/surprise.php?min=4&max=10&youllneverfindthis=y"))); $theword[2] = strtolower(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . str_replace(":443/","/",":" . $_SERVER['SERVER_PORT'] . "/PHP/surprise.php?min=4&max=10&youllneverfindthis=y"))); $theword[3] = strtolower(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . str_replace(":443/","/",":" . $_SERVER['SERVER_PORT'] . "/PHP/surprise.php?min=4&max=10&youllneverfindthis=y"))); } if (isset($_GET['okguesslist'])) { if (strpos($_GET['okguesslist'], "~") !== false) { $okguesslist = explode("~", $_GET['okguesslist']); } else { $okguesslist = array($_GET['okguesslist']); } } else { $okguesslist = array($azorder[$donottouch]); } for ($m=0; $m<26; $m++) { $asis = 0; for ($k=0; $k"; if ($asis == 1) { $theunderline[$j] .= strtolower(substr($theword[$j], $i, 1)); $tablehtml .= "" . strtolower(substr($theword[$j], $i, 1)) . ""; } else { $numtoguess = $numtoguess + 1; $kk = 0; for ($m=0; $m<26; $m++) { if (strtolower(substr($theword[$j], $i, 1)) == strtolower($azorder[$m])) $kk = $m; } $theunderline[$j] .= strtoupper($azorder[$outoforder[$kk]]); $tablehtml .= ''; $ztablehtml = 'Letters'; $ztablehtml .= 'a'; $ztablehtml .= 'b'; $ztablehtml .= 'c'; $ztablehtml .= 'd'; $ztablehtml .= 'e'; $ztablehtml .= 'f'; $ztablehtml .= 'g'; $ztablehtml .= 'h'; $ztablehtml .= 'i'; $ztablehtml .= 'j'; $ztablehtml .= 'k'; $ztablehtml .= 'l'; $ztablehtml .= 'm'; $ztablehtml .= 'n'; $ztablehtml .= 'o'; $ztablehtml .= 'p'; $ztablehtml .= 'q'; $ztablehtml .= 'r'; $ztablehtml .= 's'; $ztablehtml .= 't'; $ztablehtml .= 'u'; $ztablehtml .= 'v'; $ztablehtml .= 'w'; $ztablehtml .= 'x'; $ztablehtml .= 'y'; $ztablehtml .= 'z'; $ztablehtml = str_replace('"' . strtolower($azorder[$outoforder[$kk]]) . '">', '"' . strtolower($azorder[$outoforder[$kk]]) . '" selected="selected">', $ztablehtml); $ztablehtml = str_replace('"' . strtolower(substr($theword[$j], $i, 1)) . '"', '"' . strtoupper(substr($theword[$j], $i, 1)) . '"', $ztablehtml); $tablehtml .= $ztablehtml; $tablehtml .= ''; } $tablehtml .= ""; } $tablehtml .= ""; } $tablehtml .= ""; if (isset($_GET['score'])) { $score=$_GET['score']; } if (isset($_GET['outof'])) { $outof=$_GET['outof']; } if (isset($_POST['score'])) { $score=$_POST['score']; } if (isset($_POST['outof'])) { $outof=$_POST['outof']; } echo "\n" . '' . "\n"; echo "\n" . '' . "\n"; echo "\n" . 'Decoding the Scrambled Words - RJM Programming - 2014' . "\n"; echo "\n" , '' . "\n"; echo "\n" . ' \n"; } else { echo "\n \n"; } ?> Decoding the Scrambled Words HardEasy Score: " . $score . " / " . $outof . " \n"; echo "\n" . '' . "\n"; ?> Optionally click words above for dictionary meaning links Please Show If Correct on Each Guess
Optionally click words above for dictionary meaning links