
<!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" xml:lang="ru">

<head><meta http-equiv='content-type' content='application/xhtml+xml; charset=windows-1251'/>
<link rel="shortcut icon" href="ico.ico" type="image/x-icon" />


<link rel="stylesheet" href="styleN.css" type="text/css" />
</head>
<body>
<div class='main' style='word-wrap:break-word;'>


<b>
<?
$r = $_GET['r'];
echo"

<a href=\"game.php\"><img src=\"img/al.png\" alt=\"c\" width=\"16\" height=\"16\">  </a>
<br/>
<img src=\"img/keyd.png\">
<br/>      15 <br/>";
$gold=mysql_query("SELECT * FROM users WHERE NICK=\"$_SESSION[s]\"");
$gold2=mysql_fetch_assoc($gold);
if($gold2[money]<15 AND isset($r)){echo"<div class=\"main_title\"><center><font color=\"red\"><img src=\"img/bad.png\">    </font></center></div>";}
if($gold2[money]>=15 AND isset($r)){echo"<div class=\"main_title\"><center><img src=\"img/success.png\">    ";
echo"<br/><img src=\"img/gold.png\"> - 15";
echo"<br/><img src=\"img/hp.png\"> + 50";
echo"</center></div>";
$monM=$gold2[money]-15;
$HPp=$gold2[MINhp]+50;
if($gold2[MINhp]+50<$gold2[MAXhp]){$updHP=mysql_query("UPDATE users SET money=\"$monM\" WHERE NICK=\"$_SESSION[s]\"");
$updHP=mysql_query("UPDATE users SET MINhp=\"$HPp\" WHERE NICK=\"$_SESSION[s]\"");
}
if($gold2[MINhp]+50>=$gold2[MAXhp]){$updHP=mysql_query("UPDATE users SET money=\"$monM\" WHERE NICK=\"$_SESSION[s]\"");
$updHP=mysql_query("UPDATE users SET MINhp=MAXhp WHERE NICK=\"$_SESSION[s]\"");
}
}
echo"<a href=\"game.php?speak=$speak&id=ke_rome&r=rome\"><img src=\"img/chat.png\" height=\"16\" width=\"16\"> !</a>
<div class=\"point-line\"></div>
<a href=\"game.php?speak=$speak\"><img src=\"img/chat.png\" height=\"16\" width=\"16\">     </a>
<div class=\"point-line\"></div>



</body>
</html>



";
?>
</div>
</div></div>
<div class="line"></div>
<div class='main_foot'><div class=center><div class=grey><div class=small><div class=foot><a href=pvp.php?r=381966></a> | <a href=forum.php></a> | <a href=lib.php?cat=rules></a> | <a href=lib.php></a> | <a href=support.php></a></div></div><div class='foot_margin'></div><div class=smallest><?echo date("H:i");?> <br/><div class='min_margin'></div>&copy; 2013 <u> </u></div></div></div></div></div>

<?
die;

?>










 
