<?php
// word_jumble.php
if (isset($_GET['theword'])) {
$isthere = file_get_contents("http://" . str_replace(":443/","/",$_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . "/PHP/surprise.php?min=") . strlen(urldecode($_GET['theword'])) . "&max=" . (strlen(urldecode($_GET['theword'])) + 1) . "&hastobe=" . urldecode($_GET['theword']));
if (strlen($isthere) > 0) {
 echo "<!doctype html><html><head><script type='text/javascript'> function onl() { var huh=top.document.getElementById('heldword'); if (huh != null) { top.document.title=' " . strtoupper(str_replace(" ","",urldecode($_GET['theword']))) . " ';  huh.value='" . strtoupper(str_replace(" ","",urldecode($_GET['theword']))) . "'; } } </" . "script></head><body onload='onl();'>" . strtoupper(str_replace(" ","",urldecode($_GET['theword']))) . "</body></html>";
} else {
 echo "<!doctype html><html><head><script type='text/javascript'> function onl() { var huh=top.document.getElementById('heldword'); if (huh != null) { top.document.title=' NOWAYJOSE ';   huh.value=''; } } </" . "script></head><body onload='onl();'></body></html>";
}
}
?>

