Файл: vfermu.ru/By_Rus/loto/lotoRUS.php
Строк: 134
<div class="block">
<?php
/////монеты///////
$randm=rand(1,5);
$lotom="".rand(5000,50000)."0000";
//////рубины//////
$randr=rand(1,7);
$lotor="".rand(10,100)."0";
/////опыт///////
$rande=rand(1,5);
$lotoe="".rand(100,1000)."00000";
/////шмель///////
$randshmel=rand(10,30);
$lotoshmel=rand(5,7);
/////ястреб///////
$randyastr=rand(10,30);
$lotoyastr=rand(5,7);
//////Дракон//////
$randdrakon=rand(10,30);
$lotodrakon=rand(5,7);
///////Пугало/////
$randpugalo=rand(10,30);
$lotopugalo=rand(5,7);
//////Гидропоника//////
$randgidra=rand(10,30);
$lotogidra=rand(5,7);
////////////
$lotop=1;
if(isset($_GET['start'])){
if($ku['vip_bilet']>=$lotop){
mysql_query("UPDATE `farm_user` SET `vip_bilet` = `vip_bilet` - '".$lotop."' Where `id` = '".$ku['id']."' ");
$randes=rand(1,3);
if($randes==1 || $randes==3 || $randes==5){
if($randm==1 || $randm==3 || $randm==5){mysql_query("UPDATE `farm_user` SET `money` = `money` + '".$lotom."' Where `id` = '".$ku['id']."' "); $lotomv=1; }
if($randr==1 || $randr==3 || $randr==5){mysql_query("UPDATE `farm_user` SET `rubies` = `rubies` + '".$lotor."' Where `id` = '".$ku['id']."' ");$lotomr=1;}
if($rande==1 || $rande==3 || $rande==5){mysql_query("UPDATE `farm_user` SET `rating` = `rating` + '".$lotoe."' Where `id` = '".$ku['id']."' ");$lotome=1;}
if($randshmel==10 || $randshmel==13 || $randshmel==25){$timessaas=3600*$lotoshmel;
mysql_query("UPDATE `farm_user` SET `time_shmel` = '".($ku['time_shmel']>$time?"".($ku['time_shmel']+$timessaas)."":"".($time+$timessaas)."")."' WHERE `id` = '$ku[id]'");$lotomshmel=1;}
if($randyastr==10 || $randyastr==13 || $randyastr==25){$timessaas=3600*$lotoyastr;
mysql_query("UPDATE `farm_user` SET `time_yastreb` = '".($ku['time_yastreb']>$time?"".($ku['time_yastreb']+$timessaas)."":"".($time+$timessaas)."")."' WHERE `id` = '$ku[id]'");$lotomyastreb=1;}
if($randdrakon==10 || $randdrakon==13 || $randdrakon==25){$timessaas=3600*$lotodrakon;
mysql_query("UPDATE `farm_user` SET `time_drakon` = '".($ku['time_drakon']>$time?"".($ku['time_drakon']+$timessaas)."":"".($time+$timessaas)."")."' WHERE `id` = '$ku[id]'");$lotomdrakon=1;}
if($randpugalo==10 || $randpugalo==13 || $randpugalo==25){$timessaas=3600*$lotopugalo;
mysql_query("UPDATE `farm_user` SET `scarecrow_time` = '".($ku['scarecrow_time']>$time?"".($ku['scarecrow_time']+$timessaas)."":"".($time+$timessaas)."")."' WHERE `id` = '$ku[id]'");$lotomscarecrow=1;}
if($randgidra==10 || $randgidra==13 || $randgidra==25){$timessaas=3600*$lotopugalo;$ps=300;
mysql_query("UPDATE `farm_user` SET `hydropinics_time` = '".($ku['hydropinics_time']>$time?"".($ku['hydropinics_time']+$timessaas)."":"".($time+$timessaas)."")."', `hydropinics_type` = '$ps' WHERE `id` = '$ku[id]'");
$lotomgidra=1;
}
echo "<li class='title pt'>Ваш выигрыш:</li>";
if(isset($lotomv))echo "<li><span><img width='16' height='16' src='http://nashdom2.keo.su/imgezzy/icons/money.png' alt='o'> Монет <span class='title'>".($lotom)."</span></li>";
if(isset($lotomr))echo "<li><span><img width='16' height='16' src='http://nashdom2.keo.su/imgezzy/icons/ruby.png' alt='o'> рубинов <span class='title'>".($lotor)."</span></li>";
if(isset($lotome))echo "<li><span><img width='16' height='16' src='http://nashdom2.keo.su/imgezzy/icons/experience.png' alt='o'> опыта <span class='title'>".($lotoe)."</span></li>";
if(isset($lotomshmel))echo "<li><span><img width='16' height='16' src='http://nashdom2.keo.su/imgezzy/icons/heli1n.png' alt='o'> Вертолет Шмель на <span class='title'>".($timessaas)." минут</span></li>";
if(isset($lotomdrakon))echo "<li><span><img width='16' height='16' src='http://nashdom2.keo.su/imgezzy/icons/heli3n.png' alt='o'> Вертолет Дракон <span class='title'>".($timessaas)." минут</span></li>";
if(isset($lotomyastreb))echo "<li><span><img width='16' height='16' src='http://nashdom2.keo.su/imgezzy/icons/heli2n.png' alt='o'> Вертолет Ястреб <span class='title'>".($timessaas)." минут</span></li>";
if(isset($lotomscarecrow))echo "<li><span><img width='16' height='16' src='imgezzy/icons/scarecrow.png' alt='o'> Пугало на <span class='title'>".($timessaas)." минут</span></li>";
if(isset($lotomgidra))echo "<li><span><img width='16' height='16' src='http://nashdom2.keo.su/imgezzy/icons/hydropinics.png' alt='o'> Гидропоника на <span class='title'>".($timessaas)." минут</span></li>";
echo'</br></br>';
}
else
{
$_SESSION['msg']="Извините, Билет не выигрышный. Попробуйте еще раз.";
header("LOcation: ?lotoRUS ");
include'sys/other/foot.php';
}
}
else
{
$_SESSION['msg']="Извините, у вас нет VIP-билета. Купите его.";
header("LOcation: ?lotoRUS ");
include'sys/other/foot.php';
}
}
echo "<ul><li><img width='16' height='16' src='images/icons/ticket.png' alt='o'>
<a href='?lotoRUS&start'>Купить билет(1 VIP-билет)</a> У Вас ".$ku['vip_bilet']." VIP билетов</br></br></br> <a href=/?payment> Купить VIP билеты</a>
</li>";include'sys/other/foot.php';
?>
</div>