Файл: world-faces.ru/world-faces.ru/supermarket/game/777/777.php
Строк: 134
<?php
include_once '../../../sys/inc/start.php';
include_once '../../../sys/inc/compress.php';
include_once '../../../sys/inc/sess.php';
include_once '../../../sys/inc/home.php';
include_once '../../../sys/inc/settings.php';
include_once '../../../sys/inc/db_connect.php';
include_once '../../../sys/inc/ipua.php';
include_once '../../../sys/inc/fnc.php';
include_once '../../../sys/inc/user.php';
$set['title']='Кости'; // заголовок страницы
include_once '../../../sys/inc/thead.php';
title();
aut();
echo "<div class="str">n";
echo "<a href="/money/">Деньги</a> > <a href="/money/game/">Игры на KM</a> > 777<br />n";
echo "</div>n";
if (isset($user) & $user['balls']<=4)
{
echo "<b>Извини ,</b> n";
echo "но в игре минимальная ставка <b>5</b> KM<br/>У вас <b>$user[balls]</b> KMn";
}
else
{
////////////////////////////////////////////////////////Generation
$num1 = rand(1, 9);//////////////////////////////
$num_a = rand(1, 6);////////////////////////////
$num_b = rand(1, 6);///////////////////////////
$num_c = rand(1, 9);////////////////////////////
$num_d = array($num_a, $num_b, $num_c);////////
$num_e = rand(0, 2); ////////////////////////////////
$num2 = $num_d[$num_e];////////////////////////////////
$num3 = rand(1, 9);/////////////////////////////////
//////////////////////////////////////////////////////////Generation
mysql_query("UPDATE `user` SET `balls` = '".($user['balls']-5)."' WHERE `id` = '$user[id]' LIMIT 1");
echo "Выпали числа:<br/>";
echo "<div class="news">n";
echo "[ <b>$num1</b> ]-[ <b>$num2</b> ]-[ <b>$num3</b> ]";
echo "</div>n";
/////////////////////////////////////////////////////////////////////////////////////////
//if 6=6=6
if ($num1 == 6 and $num2 == 6 and $num3 == 6)
{
$num = rand(1, 3);
mysql_query("UPDATE `user` SET `balls` = '".($user['balls']+200)."' WHERE `id` = '$user[id]' LIMIT 1");
echo "<font color="red">Вы выйграли 200 KM!</font><br/>";
}
//if 8=8=8
if ($num1 == 8 and $num2 == 8 and $num3 == 8 )
{
mysql_query("UPDATE `user` SET `balls` = '".($user['balls']+100)."' WHERE `id` = '$user[id]' LIMIT 1");
echo "<font color="red">Вы выиграли 100 KM!</font><br/>";
}
//if 9=9=9
if ($num1 == 9 and $num2 == 9 and $num3 == 9)
{
mysql_query("UPDATE `user` SET `balls` = '".($user['balls']+90)."' WHERE `id` = '$user[id]' LIMIT 1");
echo "<font color="red">Вы выиграли 90 KM!</font><br/>";
}
//if 1=1=1
if ($num1 == 1 and $num2 == 1 and $num3 == 1)
{
$num = rand(1, 50);
mysql_query("UPDATE `user` SET `balls` = '".($user['balls']+50)."' WHERE `id` = '$user[id]' LIMIT 1");
echo "<font color="red">Вы выиграли 50 KM!</font><br/>";
}
// if 3=3=3
if ($num1 == 3 and $num2 == 3 and $num3 == 3)
{
$num = rand(1, 70);
mysql_query("UPDATE `user` SET `balls` = '".($user['balls']+50)."' WHERE `id` = '$user[id]' LIMIT 1");
echo "<font color="red">Вы выиграли 50 KM!</font><br/>";
}
//if 7=7=7
if ($num1 == 7 and $num2 == 7 and $num3 == 7)
{
mysql_query("UPDATE `user` SET `balls` = '".($user['balls']+150)."' WHERE `id` = '$user[id]' LIMIT 1");
echo "<font color="red">Вы выиграли 150 KM!</font><br/>";
}
// if *=7=7
if ($num2 == 7 and $num3 == 7)
{
$num = rand(1, 18);
mysql_query("UPDATE `user` SET `balls` = '".($user['balls']+20)."' WHERE `id` = '$user[id]' LIMIT 1");
echo "<font color="red">Вы выйграли 20 KM!</font><br/>";
}
// if *=*=7
if ($num3 == 7)
{
$num = rand(1, 14);
mysql_query("UPDATE `user` SET `balls` = '".($user['balls']+5)."' WHERE `id` = '$user[id]' LIMIT 1");
echo "<font color="red">Вы выйграли 5 KM!</font><br/>";
}
//Go
echo "→ <a href="go.php">Крутануть!</a><br/>";
}
include_once '../../../sys/inc/tfoot.php';
?>