Файл: selemege.tk/plugins/games/kaplya/fortuna.php
Строк: 98
<?
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/adm_check.php';
include_once '../../../sys/inc/user.php';
only_reg();
$key = abs(intval($_GET['key']));
if ($_SESSION['s_code'] == $key && isset($user))$dostup = true; else {header('Location: /index.php'); exit;}
$set['title'] = 'Лови Каплю';
if ($_SESSION['s_rand'] == 10)
{
$name = 'Каплю';
$money = 1;
}
elseif ($_SESSION['s_rand'] == 20)
{
$name = 'Каплю';
$money = 1;
}
elseif ($_SESSION['s_rand'] == 30)
{
$name = 'Каплю';
$money = 1;
}
elseif ($_SESSION['s_rand'] == 40)
{
$name = 'Каплю';
$money = 1;
}
elseif ($_SESSION['s_rand'] == 50)
{
$name = 'Каплю';
$money = 1;
}
elseif ($_SESSION['s_rand'] == 60)
{
$name = 'Каплю';
$money = 1;
}
elseif ($_SESSION['s_rand'] == 70)
{
$name = 'Каплю';
$money = 1;
}
elseif ($_SESSION['s_rand'] == 80)
{
$name = 'Каплю';
$money = 1;
}
elseif ($_SESSION['s_rand'] == 90)
{
$name = 'Каплю';
$money = 1;
}
elseif ($_SESSION['s_rand'] == 100)
{
$name = ' Золотую Каплю';
$money = 10;
}
// Начисление
mysql_query("UPDATE `user` SET `money` = `money` + '$money' WHERE `id` = '" . $user['id'] . "'");
mysql_query("INSERT INTO `kaplya` (`id_user`, `num`, `time`, `cena`) values('$user[id]', '$_SESSION[s_rand]', '$time', '$money')");
$fortuna = 0;
include_once '../../../sys/inc/thead.php';
title();
aut();
err();
echo '<div class="foot">';
echo '<a href="/plugins/games/kaplya/index.php">Чаша с каплями</a> | <b>Собранные капли</b>';
echo '</div>';
echo '<div class="mess">';
echo 'Вы поймали <img src="img/' . ($_SESSION['s_rand']) . '.png" alt="' . $name . '"/> <font color="blue">' . $name . '</font> вам начислено <font color="green">' . $money . '</font> Монет';
echo '</div>';
// Обнуляем
$_SESSION['s_code'] = rand( 1111, 9999 );
$_SESSION['s_rand'] = null;
include_once '../../../sys/inc/tfoot.php';
?>