Файл: selemege.tk/plugins/games/kaplya/index.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();
if (isset($_GET['id']))$ank['id'] = $_GET['id'];
else $ank['id'] = $user['id'];
$ank = get_user($ank['id']);
if (!$ank){header("Location: index.php?".SID);exit;}
$s1 = mysql_result(mysql_query("SELECT COUNT(`num`) FROM `kaplya` WHERE `id_user` = '$ank[id]' AND `num` = '10'"),0);
$s2 = mysql_result(mysql_query("SELECT COUNT(`num`) FROM `kaplya` WHERE `id_user` = '$ank[id]' AND `num` = '20'"),0);
$s3 = mysql_result(mysql_query("SELECT COUNT(`num`) FROM `kaplya` WHERE `id_user` = '$ank[id]' AND `num` = '30'"),0);
$s4 = mysql_result(mysql_query("SELECT COUNT(`num`) FROM `kaplya` WHERE `id_user` = '$ank[id]' AND `num` = '40'"),0);
$s5 = mysql_result(mysql_query("SELECT COUNT(`num`) FROM `kaplya` WHERE `id_user` = '$ank[id]' AND `num` = '50'"),0);
$s6 = mysql_result(mysql_query("SELECT COUNT(`num`) FROM `kaplya` WHERE `id_user` = '$ank[id]' AND `num` = '60'"),0);
$s7 = mysql_result(mysql_query("SELECT COUNT(`num`) FROM `kaplya` WHERE `id_user` = '$ank[id]' AND `num` = '70'"),0);
$s8 = mysql_result(mysql_query("SELECT COUNT(`num`) FROM `kaplya` WHERE `id_user` = '$ank[id]' AND `num` = '80'"),0);
$s9 = mysql_result(mysql_query("SELECT COUNT(`num`) FROM `kaplya` WHERE `id_user` = '$ank[id]' AND `num` = '90'"),0);
$s10 = mysql_result(mysql_query("SELECT COUNT(`num`) FROM `kaplya` WHERE `id_user` = '$ank[id]' AND `num` = '100'"),0);
$set['title'] = 'Капли';
include_once '../../../sys/inc/thead.php';
title();
err();
aut();
?>
<style>
.sx
{
max-width: 100px;
text-align:center;
display:inline-block;
padding:2px;
}
</style>
<?
echo '<div class="mess">';
echo 'Эта игра не требует никаких действий, просто передвигайтесь по страницам, и у вас в самом верху сайта, иногда будет выводится ссылка "Лови каплю", не упускайте шанс, и скорее жмите, вам будут начислены монетки....';
echo '</div>';
echo '<center>';
if (mysql_result(mysql_query("SELECT COUNT(`num`) FROM `kaplya` WHERE `id_user` = '$ank[id]'"),0) == 0)
{
echo '<div class="mess">';
echo 'Ваша чаша пуста';
echo '</div>';
}
if ($s1 > 0)
{
echo '<div class="sx">';
echo '<img src="img/10.png" /><br /><b>Капля</b> (' . $s1 . ')<br />';
echo '</div>';
}
if ($s2 > 0)
{
echo '<div class="sx">';
echo '<img src="img/20.png" /><br /><b>Капля</b> (' . $s2 . ')<br />';
echo '</div>';
}
if ($s3 > 0)
{
echo '<div class="sx">';
echo '<img src="img/30.png" /><br /><b>Капля</b> (' . $s3 . ')<br />';
echo '</div>';
}
if ($s4 > 0)
{
echo '<div class="sx">';
echo '<img src="img/40.png" /><br /><b>Капля</b> (' . $s4 . ')<br />';
echo '</div>';
}
if ($s5 > 0)
{
echo '<div class="sx">';
echo '<img src="img/50.png" /><br /><b>Капля</b> (' . $s5 . ')<br />';
echo '</div>';
}
if ($s6 > 0)
{
echo '<div class="sx">';
echo '<img src="img/60.png" /><br /><b>Капля</b> (' . $s6 . ')<br />';
echo '</div>';
}
if ($s7 > 0)
{
echo '<div class="sx">';
echo '<img src="img/70.png" /><br /><b>Капля</b> (' . $s7 . ')<br />';
echo '</div>';
}
if ($s8 > 0)
{
echo '<div class="sx">';
echo '<img src="img/80.png" /><br /><b>Капля</b> (' . $s8 . ')<br />';
echo '</div>';
}
if ($s9 > 0)
{
echo '<div class="sx">';
echo '<img src="img/90.png" /><br /><b>Капля</b> (' . $s9 . ')<br />';
echo '</div>';
}
if ($s10 > 0)
{
echo '<div class="sx">';
echo '<img src="img/100.png" /><br /><b>Капля</b> (' . $s10 . ')<br />';
echo '</div>';
}
echo '</center>';
include_once '../../../sys/inc/tfoot.php';
?>