<?php
$version = "version: v1.0";
$adven = "Planet Wars";
$no = "Wapple Planet Mercenary.";
$no1 = "Venusians";
$no2 = "Marsian";
$no3 = "Jupiterium";
$no4 = "Saturians";
$no5 = "Plutonium";
$x= "Fire in the hole!";
$xy="Have mercy!";
$lost="Stupid talo ka!";
$loste="natatalo ka na!";
$adver="Want to be the next moderator?";
$empower = "<a href=\"http://ads.admob.com/link_list.php?s=a147fd8352e7013\">$adver</a> <br/>";
$copy = "<a href=\"http://under-ground.890m.com/index.php\">http://under-ground.890m.com</a>";
?>
<?php
//header('Content-type: application/vnd.wap.xhtml+xml');
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
include("captainsafeconfig.php");
include("captainsafecore.php");
$bcon = connectdb();
if (!$bcon)
{
echo "<head>";
echo "<title>$sitename</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white.css\">";
echo "<head>";
echo "<body>";
echo "<p align=\"center\">";
echo "<img src=\"../images/notok.gif\" alt=\"!\"/><br/>";
echo "<b><strong>Error! Cannot Connect To Database...</strong></b><br/><br/>";
echo "This error happens usually when backing up the database, please be patient...";
echo "</p>";
echo "</body>";
echo "</html>";
exit();
}
$action = $_GET["action"];
$sid = $_GET["sid"];
$sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'"));
$sitename = $sitename[0];
$uid = getuid_sid($sid);
$theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'"));
if((islogged($sid)==false)||($uid==0))
{
echo "<head>";
echo "<title>Error!!!</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white_medium.css\">";
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
echo "You are not logged in<br/>";
echo "Or Your session has been expired<br/><br/>";
echo "<a href=\"http://under-ground.890m.com/index.php\">Login</a>";
echo "</p>";
echo "</body>";
echo "</html>";
exit();
}
if(isbanned($uid))
{
echo "<head>";
echo "<title>Error!!!</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
echo "<img src=\"../images/notok.gif\" alt=\"x\"/><br/>";
echo "<b>You are Banned</b><br/><br/>";
$banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2'"));
$banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'"));
$remain = $banto[0]- time();
$rmsg = gettimemsg($remain);
echo "<b>Time Left: </b>$rmsg<br/>";
$nick = getnick_uid($banto[2]);
echo "<b>By: </b>$nick<br/>";
echo "<b>Reason: </b>$banto[1]";
//echo "<a href=\"http://wapple.890m.com/index.php\">Login</a>";
echo "</p>";
echo "</body>";
echo "</html>";
exit();
}
if($action=="pwar")
{
addonline(getuid_sid($sid),"playing wapple planet adventure","");
$view = $_GET["view"];
if($view=="")$view="date";
echo "<card id=\"main\" title=\"Playing $adven\">";
echo "<p align=\"center\">";
echo "<img src=\"images/roll.gif\" alt=\"*\"/><br/>";
echo "<b>Welcome to Wapple Solar System! <br/> Planet Wars<br/> $version</b><br/><small>Now lets see your power to get in the action $adven !</small>";
echo "</p>";
//////ALL LISTS SCRIPT <<
echo "<p align=\"center\">";
echo "<a href=\"planet.php?action=go&sid=$sid\">»SpaceShip</a><br/>";
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
echo "<a href=\"index.php?action=funm&sid=$sid\"><img src=\"images/roll.gif\" alt=\"*\"/>";
echo "Fun/Games</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "<br/>";
}
else if($action=="go")
{
addonline(getuid_sid($sid),"adventuring wapple planet","");
$view = $_GET["view"];
if($view=="")$view="date";
echo "<card id=\"main\" title=\"wapple planet\">";
echo "<p align=\"center\">";
echo "<big><b>$adven $version</b></big><br/>";
echo "<b><small>Mania!</small></b>";
echo "<br/>";
echo "</p>";
if(getplusses(getuid_sid($sid))<75)
{
echo "You need at least 75 plusses to play adventure!";
}
//////ALL LISTS SCRIPT <<
echo "<p align=\"left\">";
echo "<i>Choose your planet destination:</i>";
echo "<br/><br/>";
echo "<a href=\"planet.php?action=a&sid=$sid\">Venusians</a>";
echo "<br/>";
echo "<a href=\"planet.php?action=b&sid=$sid\">Marsian</a>";
echo "<br/>";
echo "planet not yet supported<a href=\"planet.php?action=c&sid=$sid\">Jupiterium</a>";
echo "<br/>";
echo "planet not yet supported<a href=\"planet.php?action=d&sid=$sid\">Saturians</a>";
echo "<br/>";
echo "planet not yet supported<a href=\"planet.php?action=e&sid=$sid\">Plotonium</a>";
echo "<br/><br/>";
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
echo "<a href=\"index.php?action=funm&sid=$sid\">«back to fun menu</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "<br/>";
}
if($action=="a")
{
addonline(getuid_sid($sid),"adventuring wapple planet","");
$view = $_GET["view"];
if($view=="")$view="date";
echo "<card id=\"main\" title=\"wapple planet\">";
echo "<p align=\"center\">";
echo "<big><b>$adven $version</b></big><br/>";
echo "<b><small>Mania!</small></b>";
echo "<br/>";
echo "</p>";
if(getplusses(getuid_sid($sid))<75)
{
echo "You need at least 75 plusses to play adventure!";
}
//////ALL LISTS SCRIPT <<
echo "<p align=\"left\">";
echo "$no<br/><i>Choose your preferred character:</i>";
echo "<br/><br/>";
echo "<a href=\"planet.php?action=aa&sid=$sid\">Xyve</a>";
echo "<br/>";
echo "<a href=\"planet.php?action=aa&sid=$sid\">Gondor</a>";
echo "<br/>";
echo "<a href=\"planet.php?action=aa&sid=$sid\">Nexus</a>";
echo "<br/>";
echo "<a href=\"planet.php?action=aa&sid=$sid\">Societ</a>";
echo "<br/>";
echo "<a href=\"planet.php?action=aa&sid=$sid\">Hitler</a>";
echo "<br/><br/>";
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
echo "<a href=\"index.php?action=funm&sid=$sid\">«back to fun menu</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "<br/>";
}
if($action=="aa")
{
addonline(getuid_sid($sid),"playing wapple planet adventure","");
$view = $_GET["view"];
if($view=="")$view="date";
echo "<card id=\"main\" title=\"Playing $adven\">";
echo "<p align=\"center\">";
echo "<img src=\"images/roll.gif\" alt=\"*\"/><br/>";
echo "<b>Ready? Make your self ready, against all the enemy!</b><br/><br/><i>You are entering Venusians portal.</i>";
echo "</p>";
//////ALL LISTS SCRIPT <<
echo "<p align=\"center\">";
echo "<a href=\"planet.php?action=aaa&sid=$sid\">»Venusians</a><br/>";
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
echo "<a href=\"index.php?action=funm&sid=$sid\"><img src=\"images/roll.gif\" alt=\"*\"/>";
echo "Fun/Games</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "<br/>";
}
if($action=="aaa")
{
addonline(getuid_sid($sid),"playing wapple planet adventure","");
$view = $_GET["view"];
if($view=="")$view="date";
echo "<card id=\"main\" title=\"Playing $adven\">";
echo "<p align=\"center\">";
echo "<img src=\"images/roll.gif\" alt=\"*\"/><br/>";
echo getshoutbox($sid);
echo "<br/><br/><b>Your first move is missile bombing the planet!</b><br/>";
echo "<i>Push the button to hit!(missile)</i>";
echo "</p>";
//////ALL LISTS SCRIPT <<
echo "<p align=\"center\">";
echo "<a href=\"planet.php?action=aaaa&sid=$sid\">[Missile]</a><br/>";
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
echo "<a href=\"index.php?action=funm&sid=$sid\"><img src=\"images/roll.gif\" alt=\"*\"/>";
echo "Fun/Games</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "<br/>";
}
if($action=="aaaa")
{
addonline(getuid_sid($sid),"ADVENTURING Venusians Planetons","");
echo "<head>";
echo "<title>$adven</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
//////ALL LISTS SCRIPT <<
$num1 = rand(1, 10);
$uid = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_ses WHERE id='".$sid."'"));
$uid = $uid[0];
$usrid = $uid;
echo "<b><u>$adven</u></b><br/>";
echo "<b>$adven</b><br/>";
echo "<b><u>$copy</u></b><br/><br/>empowered by: $empower<br/><br/>";
$fmsg = getbbcode(getfmsg(), $sid, 0);
echo "<p align=\"center\">$fmsg</p>";
echo getshoutbox($sid);
echo "<br/><br/><p align=left><a href=\"planet.php?action=aaaa&sid=$sid\">Missile</a> , <a href=\"planet.php?action=aaaa&sid=$sid\">Flame Trower</a> , <a href=\"planet.php?action=aaaa&sid=$sid\">Huge Gun</a>";
echo "</p>";
$ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$ugpl = $ugpl[0];
echo "Golden Plusses: <b>$ugpl</b><br/>";
$power = rand(50,100);
echo "Power: <b>$power</b> <br/>";
echo "King Wapple Message: <b>$x</b> <br/>";
echo "<i>$no1 Message: $xy</i> <br/>";
$damage = rand(60,100);
$evil = Venusian-Monsters;
$gold = rand(75,100);
if ($num1 == 1) {
$num = rand(1, 3);
echo "You hit $evil with damage $damage. You've Won $gold Gold! ";
$ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$ugpl = $ugpl[0];
$ugpl2 = $ugpl + "$gold";
mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if ($num1 == 2) {
$num = rand(1, 3);
echo "You hit $evil with damage $damage,but he return 2 kick for you with damage $gold. You've been attacked and Lost $gold gold! $loste ";
$ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$ugpl = $ugpl[0];
$ugpl2 = $ugpl - "$gold";
mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if ($num1 == 3) {
$num = rand(1, 3);
echo "You hit $evil damaging him $damage %. Then $evil return magic attack to you, damaging you $damage %. You draw! Minus 10 plusses for that attack";
$ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$ugpl = $ugpl[0];
$ugpl2 = $ugpl - "10";
mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if ($num1 == 4) {
$num = rand(1, 3);
echo "You hit $evil with a damage of $damage %. Then $evil return a scratch attack to you $gold %. You draw! Minus $gold plusses for that attack";
$ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$ugpl = $ugpl[0];
$ugpl2 = $ugpl - "$gold";
mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if ($num1 == 5) {
$num = rand(1, 3);
echo "You hit $evil damaging him 0%. Miss... Miss! Miss! Minus 10 plusses for that attack";
$ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$ugpl = $ugpl[0];
$ugpl2 = $ugpl - "10";
mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if ($num1 == 6) {
$num = rand(1, 3);
echo "$lost Your remaining plusses is 75.";
mysql_query("UPDATE ibwf_users SET plusses='75' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if ($num1 == 7) {
$num = rand(1, 3);
echo "$evil : $lost Your remaining plusses is 75.";
mysql_query("UPDATE ibwf_users SET plusses='75' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if ($num1 == 8) {
$num = rand(1, 3);
echo "You hit $evil with a damage of $damage %. Then $evil return a suntok attack to you $gold %. $loste You lost! Minus $gold plusses for that attack";
$ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$ugpl = $ugpl[0];
$ugpl2 = $ugpl - "$gold";
mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if ($num1 == 9) {
$num = rand(1, 3);
echo "You hit $evil with a damage of $gold %. Then $evil return a pahid kulangot attack to you $gold %. You draw! Minus $gold plusses for that attack";
$ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$ugpl = $ugpl[0];
$ugpl2 = $ugpl - "$gold";
mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if ($num1 == 10) {
$num = rand(1, 3);
echo "You hit $evil with a damage of $damage %. Then $evil return a sipa attack to you $gold %. $loste ! Minus $gold plusses for that attack";
$ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$ugpl = $ugpl[0];
$ugpl2 = $ugpl - "$gold";
mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if($action=="b")
{
addonline(getuid_sid($sid),"adventuring wapple planet","");
$view = $_GET["view"];
if($view=="")$view="date";
echo "<card id=\"main\" title=\"wapple planet\">";
echo "<p align=\"center\">";
echo "<big><b>$adven $version</b></big><br/>";
echo "<b><small>Mania!</small></b>";
echo "<br/>";
echo "</p>";
if(getplusses(getuid_sid($sid))<75)
{
echo "You need at least 75 plusses to play adventure!";
}
//////ALL LISTS SCRIPT <<
echo "<p align=\"left\">";
echo "$no<br/><i>Choose your preferred character:</i>";
echo "<br/><br/>";
echo "<a href=\"planet.php?action=bb&sid=$sid\">Xyve</a>";
echo "<br/>";
echo "<a href=\"planet.php?action=bb&sid=$sid\">Gondor</a>";
echo "<br/>";
echo "<a href=\"planet.php?action=bb&sid=$sid\">Nexus</a>";
echo "<br/>";
echo "<a href=\"planet.php?action=bb&sid=$sid\">Societ</a>";
echo "<br/>";
echo "<a href=\"planet.php?action=bb&sid=$sid\">Hitler</a>";
echo "<br/><br/>";
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
echo "<a href=\"index.php?action=funm&sid=$sid\">«back to fun menu</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "<br/>";
}
if($action=="bb")
{
addonline(getuid_sid($sid),"playing wapple planet adventure","");
$view = $_GET["view"];
if($view=="")$view="date";
echo "<card id=\"main\" title=\"Playing $adven\">";
echo "<p align=\"center\">";
echo "<img src=\"images/roll.gif\" alt=\"*\"/><br/>";
echo "<b>Ready? Make your self ready, against all the enemy!</b><br/><br/><i>You are entering Marsians portal.</i>";
echo "</p>";
//////ALL LISTS SCRIPT <<
echo "<p align=\"center\">";
echo "<a href=\"planet.php?action=bbb&sid=$sid\">»Marsians</a><br/>";
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
echo "<a href=\"index.php?action=funm&sid=$sid\"><img src=\"images/roll.gif\" alt=\"*\"/>";
echo "Fun/Games</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "<br/>";
}
if($action=="bbb")
{
addonline(getuid_sid($sid),"playing wapple planet adventure","");
$view = $_GET["view"];
if($view=="")$view="date";
echo "<card id=\"main\" title=\"Playing $adven\">";
echo "<p align=\"center\">";
echo "<img src=\"images/roll.gif\" alt=\"*\"/><br/>";
echo getshoutbox($sid);
echo "<br/><br/><b>Your first move is missile bombing the planet!</b><br/>";
echo "<i>Push the button to hit!(missile)</i>";
echo "</p>";
//////ALL LISTS SCRIPT <<
echo "<p align=\"center\">";
echo "<a href=\"planet.php?action=bbbb&sid=$sid\">[Missile]</a><br/>";
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
echo "<a href=\"index.php?action=funm&sid=$sid\"><img src=\"images/roll.gif\" alt=\"*\"/>";
echo "Fun/Games</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "<br/>";
}
if($action=="bbbb")
{
addonline(getuid_sid($sid),"ADVENTURING Venusians Planetons","");
echo "<head>";
echo "<title>$adven</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
//////ALL LISTS SCRIPT <<
$num1 = rand(1, 10);
$uid = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_ses WHERE id='".$sid."'"));
$uid = $uid[0];
$usrid = $uid;
echo "<b><u>$adven</u></b><br/>";
echo "<b>$adven</b><br/>";
echo "<b><u>$copy</u></b><br/><br/>empowered by: $empower<br/><br/>";
$fmsg = getbbcode(getfmsg(), $sid, 0);
echo "<p align=\"center\">$fmsg</p>";
echo getshoutbox($sid);
echo "<br/><br/><p align=left><a href=\"planet.php?action=bbbb&sid=$sid\">Missile</a> , <a href=\"planet.php?action=bbbb&sid=$sid\">Flame Trower</a> , <a href=\"planet.php?action=bbbb&sid=$sid\">Huge Gun</a>";
echo "</p>";
$ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$ugpl = $ugpl[0];
echo "Golden Plusses: <b>$ugpl</b><br/>";
$power = rand(50,100);
echo "Power: <b>$power</b> <br/>";
echo "King Wapple Message: <b>$x</b> <br/>";
echo "<i>$no2 Message: $xy</i> <br/>";
$damage = rand(60,100);
$evil2 = $no2-alliens;
$gold = rand(75,100);
if ($num1 == 1) {
$num = rand(1, 3);
echo "You hit $evil2 with damage $damage. You've Won $gold Gold! ";
$ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$ugpl = $ugpl[0];
$ugpl2 = $ugpl + "$gold";
mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if ($num1 == 2) {
$num = rand(1, 3);
echo "You hit $evil2 with damage $damage,but he return 2 kick for you with damage $gold. You've been attacked and Lost $gold gold! $loste ";
$ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$ugpl = $ugpl[0];
$ugpl2 = $ugpl - "$gold";
mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if ($num1 == 3) {
$num = rand(1, 3);
echo "You hit $evi2 damaging him $damage %. Then $evil2 return magic attack to you, damaging you $damage %. You draw! Minus 10 plusses for that attack";
$ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$ugpl = $ugpl[0];
$ugpl2 = $ugpl - "10";
mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if ($num1 == 4) {
$num = rand(1, 3);
echo "You hit $evil2 with a damage of $damage %. Then $evil2 return a scratch attack to you $gold %. You draw! Minus $gold plusses for that attack";
$ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$ugpl = $ugpl[0];
$ugpl2 = $ugpl - "$gold";
mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if ($num1 == 5) {
$num = rand(1, 3);
echo "You hit $evil2 damaging him 0%. Miss... Miss! Miss! Minus 10 plusses for that attack";
$ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$ugpl = $ugpl[0];
$ugpl2 = $ugpl - "10";
mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if ($num1 == 6) {
$num = rand(1, 3);
echo "$evil2 message:$lost Your remaining plusses is 75.";
mysql_query("UPDATE ibwf_users SET plusses='75' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if ($num1 == 7) {
$num = rand(1, 3);
echo "$lost Your remaining plusses is 75.";
mysql_query("UPDATE ibwf_users SET plusses='75' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if ($num1 == 8) {
$num = rand(1, 3);
echo "You hit $evil2 with a damage of $damage %. Then $evil2 return a suntok attack to you $gold %. $loste You lost! Minus $gold plusses for that attack";
$ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$ugpl = $ugpl[0];
$ugpl2 = $ugpl - "$gold";
mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if ($num1 == 9) {
$num = rand(1, 3);
echo "You hit $evil2 with a damage of $gold %. Then $evil2 return a pahid kulangot attack to you $gold %. You draw! Minus $gold plusses for that attack";
$ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$ugpl = $ugpl[0];
$ugpl2 = $ugpl - "$gold";
mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
if ($num1 == 10) {
$num = rand(1, 3);
echo "You hit $evil2 with a damage of $damage %. Then $evil2 return a sipa attack to you $gold %. $loste ! Minus $gold plusses for that attack";
$ugpl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$ugpl = $ugpl[0];
$ugpl2 = $ugpl - "$gold";
mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'");
echo "<br/><br/><br/>";
}
echo "<br/><br/><small><a href=\"index.php?action=funm&sid=$sid\">Back To Fun Zone</a></small>";
echo "<br/>----------<br/>";
echo "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
echo "</p>";
echo "<br/>";
echo "</body>";
}
?>