1) {
//file_put_contents('x.x', file_get_contents('x.x') . "\n" . 'http://en.wikipedia.org/wiki/' . str_replace(' ','_',explode('#',$cwikistuffs[$ii])[0]) . '_(moon)');
$thisis=str_replace(($cwikistuffs[$ii] . ''), $cwikistuffs[$ii] . '' . explode('"', $biois[1])[0], $thisis);
file_put_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'inhouse_blog_game.php', $thisis);
$cwikistuffs[$ii].='' . explode('"', $biois[1])[0];
}
} else if (strpos($cwikistuffs[$ii], '#') === false) {
$bio=file_get_contents('http://en.wikipedia.org/wiki/' . str_replace(' ','_',$cwikistuffs[$ii]) . '_(moon)');
$biois=explode('' . $i . '<', '>##' . $rrandlist[-1 + $i] . '<', $templategame);
}
}
$templategame=str_replace('>##', '>', $templategame);
$templategame=str_replace('
', '', $templategame);
$templategame=str_replace('>Game<', '>Inhouse Bl' . 'og Game ... drag to matching correct answer to score<', $templategame);
$templategame=str_replace('>', '>' . $scorebit . '', $templategame);
$thepsource=explode('f0;">', explode("", $templategame)[0])[-1 + sizeof(explode('f0;">', explode("", $templategame)[0]))];
$templategame=str_replace(' July, 2023<', ' September, 2023<', $templategame);
$templategame=str_replace('>Reset example<', ' style="display:none;">Reset example<', $templategame);
//echo $crandlist . "\n" . $thepsource . "\n" . $correctans . "\n";
//exit;
//echo $crandlist . "\n";
//echo "" . $randlist[$correctans] . "\n" . $wikidescriptions[$randlist[$correctans]] . "\n" . $wikidesignations[$randlist[$correctans]];
//exit;
//file_put_contents('x.x', '' . $randmode . "\n" . $crandlist . "\n" . $thepsource . "\n" . $correctans . "\n" . $crandlist . "\n" . $randlist[$correctans] . "\n" . $wikidescriptions[$randlist[$correctans]] . "\n" . $wikidesignations[$randlist[$correctans]]);
$precall='';
$subwhat="";
if ($randmode == 0) { // designation up top and descriptions in drop zone
$jkh=0;
while (strpos($badlist, ',' . explode(' ... ', $wikidescriptions[$grandlist[$correctans]])[0] . ',') !== false) {
$jkh++;
$correctans=rand(0,8);
if ($jkh > 20) { header('Location: ' . $recallit); exit; }
}
$subwhat=$categorizations[$correctans];
$templategame=str_replace('>' . (1 + $correctans) . '<', ' data-answer="' . explode(' ... ', $wikidescriptions[$grandlist[$correctans]])[0] . '"><', $templategame);
//$templategame=str_replace('>' . (1 + $correctans) . '<', ' data-answer="' . explode(' ... ', $wikidescriptions[$randlist[$correctans]])[0] . '">' . $categorizations[$correctans] . '<', $templategame);
if (strpos($wikidesignations[$grandlist[$correctans]], '#') !== false) {
$templategame=str_replace(' style="background-color:#f0f0f0;"', ' ', $templategame);
$templategame=str_replace('>' . $thepsource . '<', ' data-answer="' . explode(' ... ', $wikidescriptions[$grandlist[$correctans]])[0] . '" style="background-color:#f0f0f0;background:URL(' . str_replace('http:','',explode('#', $wikidesignations[$grandlist[$correctans]])[1]) . '); background-repeat: no-repeat; background-size: contain;background-position: center right;border:5px dashed pink;" alt="f0;">
' . explode('#', $wikidesignations[$grandlist[$correctans]])[0] . '
<', $templategame);
} else {
$templategame=str_replace('>' . $thepsource . '<', ' data-answer="' . explode(' ... ', $wikidescriptions[$grandlist[$correctans]])[0] . '">' . explode('#', $wikidesignations[$grandlist[$correctans]])[0] . '<', $templategame);
}
for ($i=1; $i<=9; $i++) {
if ((-1 + $i) != $correctans) {
$templategame=str_replace('>' . $i . '' . $categorizations[-1 + $i] . ' 20) { header('Location: ' . $recallit); exit; }
}
if (strpos($wikidesignations[$grandlist[$correctans]], '#') !== false) {
$templategame=str_replace(' style="background-color:#f0f0f0;"', ' ', $templategame);
//$precall=file_get_contents('http' . str_replace('http:','',explode('#', $wikidesignations[$grandlist[$correctans]])[1]));
$templategame=str_replace('>' . (1 + $correctans) . '<', ' data-answer="' . explode('#', $wikidesignations[$grandlist[$correctans]])[0] . '" style="background-color:#f0f0f0;background:URL(' . str_replace('http:','',explode('#', $wikidesignations[$grandlist[$correctans]])[1]) . '); background-repeat: no-repeat; background-size: contain;background-position: center right;" alt="f0;">' . explode('#', $wikidesignations[$grandlist[$correctans]])[0] . '<', $templategame);
} else {
//$precall=file_get_contents('http' . str_replace('http:','',explode('#', $wikidesignations[$grandlist[$correctans]])[1]));
$templategame=str_replace('>' . (1 + $correctans) . '<', ' data-answer="' . explode('#', $wikidesignations[$grandlist[$correctans]])[0] . '">' . explode('#', $wikidesignations[$grandlist[$correctans]])[0] . '<', $templategame);
}
if (strpos($wikidesignations[$grandlist[$correctans]], '#') !== false && 1 == 7) {
$precall=file_get_contents('http:' . str_replace('http:','',explode('#', $wikidesignations[$grandlist[$correctans]])[1]));
$templategame=str_replace('>' . $thepsource . '<', ' data-answer="' . explode('#',$wikidesignations[$grandlist[$correctans]])[0] . '" style="background:URL(' . str_replace('http:','',explode('#', $wikidesignations[$grandlist[$correctans]])[1]) . '); background-repeat: no-repeat; background-size: contain;background-position: center right;border:5px dashed pink;" alt="f0;">
' . $wikidescriptions[$grandlist[$correctans]] . '
<', $templategame);
} else {
$templategame=str_replace(' style="border:5px dashed pink;background-color:#f0f0f0;"', ' ', $templategame);
$subwhat=$wikidescriptions[$grandlist[$correctans]];
$precall=file_get_contents('http:' . str_replace('http:','',explode('#', $wikidesignations[$grandlist[$correctans]])[1]));
$templategame=str_replace('>' . $thepsource . '<', ' style="border:5px dashed pink;background-color:#f0f0f0;" data-answer="' . explode('#', $wikidesignations[$grandlist[$correctans]])[0] . '"><', $templategame);
//$templategame=str_replace('>' . $thepsource . '<', ' style="border:5px dashed pink;background-color:#f0f0f0;" data-answer="' . explode('#', $wikidesignations[$randlist[$correctans]])[0] . '">' . $wikidescriptions[$randlist[$correctans]] . '<', $templategame);
}
for ($i=1; $i<=9; $i++) {
if ((-1 + $i) != $correctans) {
if (strpos($wikidesignations[$grandlist[-1 + $i]], '#') !== false) {
$precall=file_get_contents('http:' . str_replace('http:','',explode('#', $wikidesignations[$grandlist[-1 + $i]])[1]));
$templategame=str_replace('>' . $i . '' . explode('#', $wikidesignations[$grandlist[-1 + $i]])[0] . '' . $i . '' . explode('#', $wikidesignations[$grandlist[-1 + $i]])[0] . '<';
if (strpos($cont, $lookforis) !== false) {
if ($randmode == 1) {
$templategame=str_replace("location.href=document.getElementById('callback').value + '?score=' + score + '&secs=' + secs;", "setTimeout(function(){ location.href=document.getElementById('callback').value + '?score=' + score + '&secs=' + secs; }, 8000);", $templategame);
$tois='>' . explode("\n", explode($lookforis, $cont)[0])[-1 + sizeof(explode("\n", explode($lookforis, $cont)[0]))] . '';
$templategame=str_replace('>', $tois, $templategame);
if (1 == 1) {
for ($iw=1; $iw<=9; $iw++) {
$lookforis='?random=' . $ourrand . $iw;
$parts=explode('>' . $iw . '', $templategame);
if (sizeof($parts) >= 2) {
$dtois='';
$tois=explode(' (', explode("\n", explode($lookforis, $cont)[0])[-1 + sizeof(explode("\n", explode($lookforis, $cont)[0]))])[0];
if (strpos(explode("\n", explode($lookforis, $cont)[0])[-1 + sizeof(explode("\n", explode($lookforis, $cont)[0]))], ' (') !== false) {
$dtois=explode(')', explode(' (', explode("\n", explode($lookforis, $cont)[0])[-1 + sizeof(explode("\n", explode($lookforis, $cont)[0]))])[1])[0];
$templategame=str_replace('?random=' . $ourrand . $iw . '437195', '?mustbedated=' . toyyyymmdd($dtois), $templategame);
$parts=explode('>' . $iw . '', $templategame);
}
$templategame=str_replace($parts[0], $parts[0] . ' data-blogtitle="' . $tois . '"' . ' data-blogdate="' . $dtois . '" title="Double click for hint" ondblclick="window.open(' . "'//www.rjmprogramming.com.au/slideshow.html?title=' + encodeURIComponent(this.getAttribute('data-blogtitle')),'_blank','top=50,left=50,width=800,height=800'" . ');" oncontextmenu="window.open(' . "'//www.rjmprogramming.com.au/ITblog/' + thefauxencodeURIComponent(this.getAttribute('data-blogtitle')),'_blank','top=60,left=60,width=800,height=800'" . ');"', $templategame);
}
}
}
}
//} else {
// file_put_contents('x.x', $lookforis . ' ... ' . $cont);
// exit;
}
$templategame=str_replace(' contenteditable=', ' data-contenteditable=', $templategame);
echo $templategame;
}
?>