8,9d7
< $preget="";
<
11,13d8
< global $preget;
< $preget='';
< if (strlen(trim($indefe)) == 2) { $preget='|' . trim(strtoupper($indefe)); };
108,109c103,104
< if (!strstr($uniquecountries, "," . urlencode($thosetwobits[0] . $countriesisotwo[-1 + sizeof($countriesisotwo)] . $preget) . ",")) {
< $uniquecountries .= urlencode($thosetwobits[0] . $countriesisotwo[-1 + sizeof($countriesisotwo)] . $preget) . ",";
---
> if (!strstr($uniquecountries, "," . urlencode($thosetwobits[0] . $countriesisotwo[-1 + sizeof($countriesisotwo)]) . ",")) {
> $uniquecountries .= urlencode($thosetwobits[0] . $countriesisotwo[-1 + sizeof($countriesisotwo)]) . ",";
162,163c157,158
< if (!strstr($uniquecountries, "," . urlencode(str_replace('"','',explode(",",$bits[$i])[$countrycol]) . $countriesisotwo[-1 + sizeof($countriesisotwo)] . $preget) . ",")) {
< $uniquecountries .= urlencode(str_replace('"','',explode(",",$bits[$i])[$countrycol]) . $countriesisotwo[-1 + sizeof($countriesisotwo)] . $preget) . ",";
---
> if (!strstr($uniquecountries, "," . urlencode(str_replace('"','',explode(",",$bits[$i])[$countrycol]) . $countriesisotwo[-1 + sizeof($countriesisotwo)]) . ",")) {
> $uniquecountries .= urlencode(str_replace('"','',explode(",",$bits[$i])[$countrycol]) . $countriesisotwo[-1 + sizeof($countriesisotwo)]) . ",";
204,205c199,200
< if (!strstr($uniquecountries, "," . urlencode($thosetwobits[0] . $countriesisotwo[-1 + sizeof($countriesisotwo)] . $preget) . ",")) {
< $uniquecountries .= urlencode($thosetwobits[0] . $countriesisotwo[-1 + sizeof($countriesisotwo)] . $preget) . ",";
---
> if (!strstr($uniquecountries, "," . urlencode($thosetwobits[0] . $countriesisotwo[-1 + sizeof($countriesisotwo)]) . ",")) {
> $uniquecountries .= urlencode($thosetwobits[0] . $countriesisotwo[-1 + sizeof($countriesisotwo)]) . ",";
228,229c223,224
< if (!strstr($uniquecountries, "," . urlencode(explode('"', $clarr[$ihg])[0] . $countriesisotwo[-1 + sizeof($countriesisotwo)] . $preget) . ",")) {
< $uniquecountries .= urlencode(explode('"', $clarr[$ihg])[0] . $countriesisotwo[-1 + sizeof($countriesisotwo)] . $preget) . ",";
---
> if (!strstr($uniquecountries, "," . urlencode(explode('"', $clarr[$ihg])[0] . $countriesisotwo[-1 + sizeof($countriesisotwo)]) . ",")) {
> $uniquecountries .= urlencode(explode('"', $clarr[$ihg])[0] . $countriesisotwo[-1 + sizeof($countriesisotwo)]) . ",";
251,252c246,247
< global $uniquecountries, $preget;
< $ret="";
---
> global $uniquecountries;
> $ret="";
256c251
< if (strlen($ucountriesarr[$i]) != 0) { $preget=""; if (strpos(urldecode($ucountriesarr[$i]), "|") !== false) { $preget=explode("|", urldecode($ucountriesarr[$i]))[1]; } $ret=str_replace("", "", $ret); }
---
> if (strlen($ucountriesarr[$i]) != 0) $ret=str_replace("", "", $ret);
278c273
< $ret="\n var completefinding='', kbsofar='', notc=''; \n var urlprefix='//www.google.com.au/search?tbm=isch&q='; \n var emdef='" . $emdef . "'; \n var firstgo=true; \n var goes=" . explode(" ", $egoes)[0] . "; \n var score=" . $escore . "; \n var lcity=''; \n var oucity=null; var numc=" . sizeof($citiesarr) . ";\n var ans=false; var lastg=-1;\n var ccountry=''; \n
---
> $ret="\n var urlprefix='//www.google.com.au/search?tbm=isch&q='; \n var emdef='" . $emdef . "'; \n var firstgo=true; \n var goes=" . explode(" ", $egoes)[0] . "; \n var score=" . $escore . "; \n var lcity=''; \n var oucity=null; var numc=" . sizeof($citiesarr) . ";\n var ans=false; var lastg=-1;\n var ccountry=''; \n
298c293
< document.getElementById('htmlis').value='City Guess Country Game
Which Country is City In?
' + document.getElementById('cgcform').outerHTML.replace(' action=\"//',' action=\"https://').replace(' value=\"\"',' value=\"' + incval + '\"').replace(huhsel + '','').replace(huhsel,'').replace('display:none','display:inline-block').replace('>','>') + '';
---
> document.getElementById('htmlis').value='City Guess Country Game
Which Country is City In?
' + document.getElementById('cgcform').outerHTML.replace(' action=\"//',' action=\"https://').replace(' value=\"\"',' value=\"' + incval + '\"').replace(huhsel + '','').replace(huhsel,'').replace('display:none','display:inline-block').replace('>','>') + '';
300,302c295
< function picked(gcountry, gcselo) {
< gcselo.setAttribute('data-topiso', '' + gcselo.options[gcselo.selectedIndex].getAttribute('data-iso'));
< notc=' (not ' + gcountry + ')';
---
> function picked(gcountry) {
309,310d301
< notc='';
< document.getElementById('ucountry').title=document.getElementById('ucountry').title.split(' ... ')[0];
315,317c306
< ans=confirm('Sorry, but answer is ' + ccountry + notc + '. OK does a Google (image) search.');
< notc='';
< document.getElementById('ucountry').title=document.getElementById('ucountry').title.split(' ... ')[0];
---
> ans=confirm('Sorry, but answer is ' + ccountry + '. OK does a Google (image) search.');
324,325d312
< document.getElementById('oneopt').innerHTML='Please select Country ...';
< kbsofar='';
346d332
< document.getElementById('thcity').innerHTML='City
' + ois.value + '';
350,464d335
< function dodecide() {
< if (completefinding.trim() != '') {
< document.getElementById('ucountry').value=completefinding;
< notc=' (not ' + completefinding + ')';
< picked(document.getElementById('ucountry').value, document.getElementById('ucountry'));
< kbsofar='';
< completefinding='';
< // location.href='#cgcform';
< }
< } \n
< function crokp(event) {
< if (event.keyCode == 13) {
< if (completefinding.trim() != '') {
< document.getElementById('ucountry').value=completefinding;
< notc=' (not ' + completefinding + ')';
< picked(document.getElementById('ucountry').value, document.getElementById('ucountry'));
< kbsofar='';
< completefinding='';
< // location.href='#cgcform';
< } else if (document.getElementById('bemail')) {
< document.getElementById('bemail').click();
< }
< }
< } \n
< function okp(event) {
< var optl=[], joptl=0, jdone=false, findings='', findingsd='', lendiff='', lendiffd='';
< completefinding='';
< if (event.keyCode >= 65 && event.keyCode <= 90) {
< kbsofar+=String.fromCharCode(event.keyCode);
< //document.title=kbsofar;
< if (kbsofar.length == 2 && kbsofar == kbsofar.toUpperCase()) {
< optl=document.getElementsByTagName('option');
< for (joptl=1; joptl= 97 && event.keyCode <= 122) || event.keyCode == 32) {
< kbsofar+=String.fromCharCode(event.keyCode);
< optl=document.getElementsByTagName('option');
< for (joptl=1; joptlCity Guess Country Game" . shownextcity() . "
---
> echo "City Guess Country Game" . shownextcity() . "
480c351
< " . notshowucities() . "" . notshowucities() . "