6,59d5
<
< $tois = "";
< $ideatois = "";
< if (file_exists("rls_" . server_remote_addr() . ".huh")) {
< $ideatois = @file_get_contents("rls_" . server_remote_addr() . ".huh");
< }
<
<
< function server_remote_addr() {
< $rma = $_SERVER['REMOTE_ADDR'];
< $ua = strtolower($_SERVER['HTTP_USER_AGENT']);
< // you can add different browsers with the same way ..
< if (1 == 2) {
< if(preg_match('/(chromium)[ \/]([\w.]+)/', $ua))
< $rma = '000000'.$rma;
< elseif(preg_match('/(chrome)[ \/]([\w.]+)/', $ua))
< $rma = '00000'.$rma;
< elseif(preg_match('/(safari)[ \/]([\w.]+)/', $ua))
< $rma = '0000'.$rma;
< elseif(preg_match('/(opera)[ \/]([\w.]+)/', $ua))
< $rma = '000'.$rma;
< elseif(preg_match('/(msie)[ \/]([\w.]+)/', $ua))
< $rma = '00'.$rma;
< elseif(preg_match('/(mozilla)[ \/]([\w.]+)/', $ua))
< $rma = '0'.$rma;
< }
< return $rma;
< }
<
<
< if (isset($_GET['to']) && isset($_GET['subject']) && isset($_GET['body'])) {
< $to = urldecode($_GET['to']);
< if (strpos($to, "@") !== false) {
< @file_put_contents("rls_" . server_remote_addr() . ".huh", $to);
< }
< $subject = urldecode($_GET['subject']);
< $body = urldecode($_GET['body']);
< if (strpos($subject, "My Rhopalic Letter Sentence") !== false) {
< if (strpos($body, "http://www.rjmprogramming.com.au/PHP/rhopalic_letter_sentence.php?") !== false && strpos($body, "w1=") !== false && strpos($body, "&w2=") !== false) {
< $huhs = explode("w1=", $body);
< if (strpos($huhs[1], "%20") === false && strpos($huhs[1], " ") === false) {
< mail($to, $subject, str_replace(" ", "+", str_replace("tois=","toisx=",$body) . urlencode("&tois=" . $to)));
< } else if (1 == 2) {
< @file_put_contents("aaa.ddd", $huhs[1]);
< }
< } else if (1 == 4) {
< @file_put_contents("aaa.ccc", $body);
< }
< } else if (1 == 9) {
< @file_put_contents("aaa.bbb", $subject);
< }
< exit;
< } else {
<
73,78c19
< if (isset($_GET['tois'])) {
< if (strpos(urldecode($_GET['tois']), "@") !== false) {
< $tois = urldecode($_GET['tois']);
< }
< }
< if (isset($_GET['w21'])) $ending = urldecode($_GET['w21']);
---
> if (isset($_GET['w21'])) $ending = $_GET['w21'];
86d26
< $roff = 0;
94,95c34
< if (strlen($words[$j]) != ($j + 1)) $westart = -1;
< $startword = file_get_contents(str_replace(":443","","http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT']) . "/PHP/surprise.php?huh=" . strtolower($words[$j]) . "&youllneverfindthis=y");
---
> $startword = file_get_contents("http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . "/PHP/surprise.php?huh=" . strtolower($words[$j]) . "");
99c38
< $startword = file_get_contents(str_replace(":443","","http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT']) . "/PHP/surprise.php?huh=" . str_replace("*","",str_replace("s*","",(strtolower($words[$j]) . "*"))) . "&youllneverfindthis=y");
---
> $startword = file_get_contents("http://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . "/PHP/surprise.php?huh=" . str_replace("*","",str_replace("s*","",(strtolower($words[$j]) . "*"))) . "");
103d41
< if ($startword == "false") $roff += strlen($words[$j]);
134c72
< $onload = "" + ' onload=" setTimeout(andthen,1000); emailto(' + "''" + '); "';
---
> $onload = "";
140,141c78,79
< if ((isset($_GET['submit']) || isset($_GET['submitemail'])) && $westart >= 0 && ((strlen($rest) - 19) - $roff) > 0) {
< $score = $score + (strlen($rest) - 19) - $roff;
---
> if ((isset($_GET['submit']) || isset($_GET['submitemail'])) && $westart >= 0) {
> $score = $score + (strlen($rest) - 19);
143,157c81
< if (isset($_GET['submitemail'])) {
< if (strpos($emailee, "@") === false) $emailee = $ideatois;
< $onload = ' onload=" setTimeout(andthen,1000); emailto(' . "'" . $emailee . "'" . '); "';
< }
< }
<
< $showing = "";
< for ($j=0; $j<20; $j++) {
< if ($wordd[$j] != "none") $showing = "y";
< }
<
< if ($showing == "") {
< for ($j=0; $j<12; $j++) {
< $wordd[$j] = "inline";
< }
---
> if (isset($_GET['submitemail'])) $onload = ' onload=" emailto(' . "'" . $emailee . "'" . '); "';
160d83
< }
162d84
<
165,166d86
<
<
176,244c96
< var emailee='';
<
< function ask(fromid) {
< if (fromid == "submitemail" && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
< emailee = prompt("... and your email is going to?", "");
< if (emailee == null) emailee = "";
< if (emailee.indexOf("@") != -1) {
< document.getElementById(fromid).value = document.getElementById(fromid).value.replace(/ /g, '');
< document.getElementById('tois').value = emailee;
< document.getElementById('imya').src = './rhopalic_letter_sentence.php?to=' + encodeURIComponent(emailee) + '&subject=My%20Rhopalic%20Letter%20Sentence&body=' + encodeURIComponent(document.URL.replace("submitemail","email=y&submit").replace(/ /g, "%20"));
< }
< return true;
< } else if (fromid != "submitemail") {
< var ii;
< var upto = 1;
< var urlsofar = './rhopalic_letter_sentence.php';
< var thesentence = prompt("Please type in your rhopalic sentence to be validated.", "");
< if (thesentence == null) {
< upto = upto;
< } else {
< if (thesentence != '') {
< thesentence = thesentence.replace(/,/g, "");
< var ois = document.getElementById(fromid);
< if ((thesentence + '*') != (thesentence + '*').replace(".*","")) {
< urlsofar += '?w21=' + encodeURIComponent(".") + "&" + ois.name + "=" + ois.value;
< thesentence = (thesentence + '*').replace(".*","");
< } else if ((thesentence + '*') != (thesentence + '*').replace("!*","")) {
< urlsofar += '?w21=' + encodeURIComponent("!") + "&" + ois.name + "=" + ois.value;
< thesentence = (thesentence + '*').replace("!*","");
< } else if ((thesentence + '*') != (thesentence + '*').replace("?*","")) {
< urlsofar += '?w21=' + encodeURIComponent("?") + "&" + ois.name + "=" + ois.value;
< thesentence = (thesentence + '*').replace("?*","");
< } else {
< urlsofar += '?w21=' + encodeURIComponent(".") + "&" + ois.name + "=" + ois.value;
< }
< var wordsare = thesentence.split(" ");
< for (ii=1; ii var emailee='';
247,249c99
< andthen();
< if (toemail != '' || emailee != '') {
< if (emailee == '') emailee = toemail;
---
> emailee = toemail;
251,258c101
< if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
< //alert('./rhopalic_letter_sentence.php?to=' + encodeURIComponent(emailee) + '&subject=My%20Rhopalic%20Letter%20Sentence&body=' + encodeURIComponent(document.URL.replace("submitemail","email=y&submit")));
< document.getElementById('imya').src = './rhopalic_letter_sentence.php?to=' + encodeURIComponent(emailee) + '&subject=My%20Rhopalic%20Letter%20Sentence&body=' + encodeURIComponent(document.URL.replace("submitemail","email=y&submit"));
< } else {
< document.getElementById('mya').href = 'mail' + 'to:' + emailee + '?subject=My%20Rhopalic%20Letter%20Sentence&body=' + encodeURIComponent(document.URL.replace("submitemail","email=y&submit"));
< }
< } else if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) && '' != '') {
< document.getElementById('imya').src = './rhopalic_letter_sentence.php?to=' + encodeURIComponent('') + '&subject=My%20Rhopalic%20Letter%20Sentence&body=' + encodeURIComponent(document.URL.replace("submitemail","email=y&submit"));
---
> document.getElementById('mya').href = 'mail' + 'to:' + emailee + '?subject=My%20Rhopalic%20Letter%20Sentence&body=' + encodeURIComponent(document.URL.replace("submitemail","email=y&submit"));
262,267c105
< if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
< toemail = toemail;
< } else {
< document.getElementById('mya').click();
< }
< }
---
> document.getElementById('mya').click();
302c140
< echo "\n | ";
---
> echo "\n | ";
324d161
<
326c163
< My Rhopalic Letter English Sentence Game
---
> My Rhopalic Letter English Sentence Game
330d166
<
336c172
< echo "\n | ";
---
> echo "\n | ";
339c175
< |
---
> |
344c180
<
";'>
---
>
";'>
348,352c184
<
<
<
---
>