";
} else {
echo "
Winter Olympics Game Winter Olympics Game ";
}
echo "
";
if (isset($_GET['score']) && isset($_GET['goes'])) {
echo "
";
echo "
";
} else {
echo "
";
echo "
";
}
echo "
";
echo "
";
echo "";
if ($po != "" || isset($_GET['pickone'])) {
if ($po == "") {
echo "\n
document.getElementById('wosel').value = '" . $woarr[rand(1, $tot)] . "'; document.getElementById('submit').click(); ";
} else {
if (substr($po,0,1) >= "0" && substr($po,0,1) <= "9") {
echo "\n
document.getElementById('wosel').value = '" . $woarr[$po] . "'; document.getElementById('submit').click(); ";
} else {
echo "\n
document.getElementById('wosel').value = '" . $woarr[rand(1, $tot)] . "'; document.getElementById('submit').click(); ";
}
}
}
//echo "
";
echo "\n
window.open('https://www.google.com.au/search?q=%22Winter+Olympics%22&biw=1280&bih=625&source=lnms&tbm=isch&sa=X&ei=mPFmVNriNqLXmgXxu4KoCQ&ved=0CAYQ_AUoAQ', '_blank', 'top=400,left=20,width=300,height=500'); window.open('https://www.google.com.au/search?q=%22Winter+Olympics%22&biw=1280&bih=625&tbm=vid&source=lnms&sa=X&ei=pvFmVOLnGuSNmwWcuICYCg&ved=0CAkQ_AUoAg&dpr=1', '_blank', 'top=400,left=320,width=300,height=500'); window.open('https://www.google.com.au/?gfe_rd=cr&ei=kPFmVIf7OMqN8QeXtIDQBw&gws_rd=ssl#q=%22Winter+Olympics%22', '_blank', 'top=400,left=620,width=900,height=500'); ";
echo "";
} else if (isset($_POST['stage'])) {
$yearlist = "
\nPlease select Year below ... ";
$citylist = "\nSelect City below ... ";
$sportlist = "\nSelect Sport below ... ";
$disciplinelist = "\nSelect Discipline below ... ";
$countrycodelist = "\nSelect Country Code below ... ";
$countrylist = "\nSelect Country below ... ";
$eventlist = "\nSelect Event below ... ";
$genderlist = "\nSelect Gender below ... ";
$typelist = "\nSelect Medal Type below ... Gold Silver Bronze ";
$wolist = "Please select a secret Winter Olympic medal presentation number below ... ";
$pageContent = file_get_contents("http://isithackday.com/medals.csv");
$pageContent .= "\n2002,Salt Lake City,Skating,Short Track S.,AUS,1000m,M,Gold\n";
$pageContent .= "\n2002,Salt Lake City,Skiing,Aerial Skiing,AUS,Aerials,W,Gold\n";
populate($pageContent);
$yearlist .= " ";
$citylist .= " ";
$sportlist .= " ";
$disciplinelist .= " ";
$countrycodelist .= " ";
$countrylist .= " ";
$eventlist .= " ";
$genderlist .= " ";
$typelist .= "
";
$wolist .= "
";
if ($_POST['stage'] == "0") { // have selected from first dropdown but not answered yet
echo "
Winter Olympics Game ... Score: " . $_POST['score'] . " Goes: " . $_POST['goes'] . " Winter Olympics Game ... Score: " . $_POST['score'] . " Goes: " . $_POST['goes'] . " ";
echo "
";
echo "";
} else { // check answer
$score = $_POST['score'];
$goes = 1 + $_POST['goes'];
$yearlist = "
Please select Year below ... ";
$citylist = "Select City below ... ";
$sportlist = "Select Sport below ... ";
$disciplinelist = "Select Discipline below ... ";
$countrycodelist = "Select Country Code below ... ";
$countrylist = "Select Country below ... ";
$eventlist = "Select Event below ... ";
$genderlist = "Select Gender below ... ";
$typelist = "Select Medal Type below ... Gold Silver Bronze ";
$wolist = "Please select a secret Winter Olympic medal presentation number below ... ";
$pageContent = file_get_contents("http://isithackday.com/medals.csv");
$pageContent .= "\n2002,Salt Lake City,Skating,Short Track S.,AUS,1000m,M,Gold\n";
$pageContent .= "\n2002,Salt Lake City,Skiing,Aerial Skiing,AUS,Aerials,W,Gold\n";
populate($pageContent);
$yearlist .= " ";
$citylist .= " ";
$sportlist .= " ";
$disciplinelist .= " ";
$countrycodelist .= " ";
$countrylist .= " ";
$eventlist .= " ";
$genderlist .= " ";
$typelist .= "
";
$wolist .= "
";
$xurl = '#';
$aurl = "https://www.google.com.au/?gfe_rd=cr&ei=GthlVPz3O8yN8QeBsoHQCA&gws_rd=ssl#q=" . urlencode($_POST['wosel']);
if (urldecode($_POST['wosel']) == urldecode($_POST['yearsel'] . ',' . $_POST['citysel'] . ',' . $_POST['sportsel'] . ',' . $_POST['disciplinesel'] . ',' . $_POST['countrysel'] . ',' . $_POST['eventsel'] . ',' . $_POST['gendersel'] . ',' . $_POST['typesel'])) {
$score = 1 + $_POST['score'];
echo "
Winter Olympics Game ... Score: " . $score . " Goes: " . $goes . " Winter Olympics Game ... Score: " . $score . " Goes: " . $goes . " ";
echo "
Great work ... optional research can start here
";
} else if (strpos($wolist, urldecode($_POST['yearsel'] . ',' . $_POST['citysel'] . ',' . $_POST['sportsel'] . ',' . $_POST['disciplinesel'] . ',' . $_POST['countrysel'] . ',' . $_POST['eventsel'] . ',' . $_POST['gendersel'] . ',' . $_POST['typesel'])) !== false) {
$score = 1 + $_POST['score'];
$aurl = "https://www.google.com.au/?gfe_rd=cr&ei=GthlVPz3O8yN8QeBsoHQCA&gws_rd=ssl#q=" . urldecode($_POST['yearsel'] . ',' . $_POST['citysel'] . ',' . $_POST['sportsel'] . ',' . $_POST['disciplinesel'] . ',' . $_POST['countrysel'] . ',' . $_POST['eventsel'] . ',' . $_POST['gendersel'] . ',' . $_POST['typesel']);
echo "
Winter Olympics Game ... Score: " . $score . " Goes: " . $goes . " Winter Olympics Game ... Score: " . $score . " Goes: " . $goes . " ";
echo "
Great work ... optional research can start here
";
} else {
echo "
Winter Olympics Game ... Score: " . $score . " Goes: " . $goes . " Winter Olympics Game ... Score: " . $score . " Goes: " . $goes . " ";
echo "
Sorry ... you said " . urldecode($_POST['yearsel'] . ',' . $_POST['citysel'] . ',' . $_POST['sportsel'] . ',' . $_POST['disciplinesel'] . ',' . $_POST['countrysel'] . ',' . $_POST['eventsel'] . ',' . $_POST['gendersel'] . ',' . $_POST['typesel']) . " ... but answer is " . $_POST['wosel'] . " ... optional research can start here
";
}
echo "
";
echo "
";
echo "
";
echo "
";
echo "
";
echo "";
echo "";
}
}
?>