$login = $_SESSION['login'];
include "conf.php";
$conn = @mysql_connect("$base_name","$base_user","$base_pass");
!@mysql_select_db("$db_name",$conn);
mysql_query("SET NAMES cp1251");
$sql = mysql_query("SELECT * FROM characters WHERE login='$login'");
while ($res = mysql_fetch_array($sql)){
$money = $res['money'];
}
?>
function new_game () {
?>
}
if (!$_GET[set])
{
new_game();
}
if ($_GET[set]==game) {
if ($_POST[type]==1 or $_POST[type]==2 or $_POST[type]==3 or $_POST[type]==4 or $_POST[type]==5) {
if ($_POST[type]==1) $st=10;
if ($_POST[type]==2) $st=25;
if ($_POST[type]==3) $st=50;
if ($_POST[type]==4) $st=100;
if ($_POST[type]==5) $st=200;
if ($stat[money]>=$st) {
if ($_POST[play]==1) {
$player_1 = rand(1,6);
$player_2 = rand(1,6);
$comp_1 = rand(2,6);
$comp_2 = rand(2,6);
}
?>