File size: 2.63Kb
<?php
include("head.php");
if($action=="8ball"){
addonline(getuid_sid($sid),"Using Magic 8ball","");
echo "<div><br/>Magic 8 Ball!<br/></div>";
echo "<p align=\"center\">\n";
echo "<b>MAGIC <img src=\"images/8ball.gif\" alt=\"8\"/>BALL</b><br/><br/>";
echo "Ask the Magic 8Ball a question then press ANSWER!<br/><br/>";
echo "<b>Question: </b><br/>";
echo "</p>";
echo "<center>";
echo "<form action=\"8ball.php?action=results\" method=\"post\">";
echo "<input name=\"question\" maxlength=\"250\"/><br/>";
echo "<input type=\"submit\" value=\"ANSWER\"/>";
echo "</form>";
echo "</center>";
echo "<p align=\"center\">";
echo "<br/><a href=\"index.php?action=funm\"><b>Back To Fun Menu</b></a><br/>";
echo getfoot($sid,$folder);
exit();
}
/////////////////////////////////////////
else if($action=="results"){
addonline(getuid_sid($sid),"Getting Results From Magic 8ball","");
echo "<div><br/>Results!<br/></div>";
echo "<p align=\"center\">";
$ballcalc=rand (1,20);
echo "Magic 8ball says: <br/>";
if($ballcalc ==1) echo "<b>Yes!</b>";
elseif($ballcalc ==2) echo "<b>No!</b>";
elseif($ballcalc ==3) echo "<b>Of course!</b>";
elseif($ballcalc ==4) echo "<b>Never!</b>";
elseif($ballcalc ==5) echo "<b>Maybe!</b>";
elseif($ballcalc ==6) echo "<b>There's a chance!</b>";
elseif($ballcalc ==7) echo "<b>What do you think I am, psychic?</b>";
elseif($ballcalc == 8) echo "<b>Sometimes!</b>";
elseif($ballcalc ==9) echo "<b>I'm quite sure about that!</b>";
elseif($ballcalc == 10) echo "<b>That's probably true!</b>";
elseif($ballcalc ==11) echo "<b>Hell no...</b>";
elseif($ballcalc ==12) echo "<b>Dont even think about it!</b>";
elseif($ballcalc == 13) echo "<b>The chance is quite as big as seeing Jay Leno in a
g-string!</b>";
elseif($ballcalc ==14) echo "<b>I would not even consider it!</b>";
elseif($ballcalc == 15) echo "<b>I must say yes!</b>";
elseif($ballcalc == 16) echo "<b>Damn right...</b>";
elseif($ballcalc == 17) echo "<b>Sure thing...</b>";
elseif($ballcalc >17) echo "<b>HAHAHA... You're kidding right!</b>";
else echo "<b>If you're lucky...</b>";
echo "<br/><br/><br/><a href=\"index.php?action=funm\"><b>Back To Fun Menu</b></a><br/>";
echo getfoot($sid,$folder);
exit();
}
//////////////////////////////////////////// the end lol
else{
addonline(getuid_sid($sid),"Lost in 8 Ball!","");
echo "<div><br/>Doh!<br/></div>";
echo "<p align=\"center\">";
echo "I don't know how you got into here, but there's nothing to show<br/><br/>";
echo getfoot($sid,$folder);
exit();
}
?>