Вход Регистрация
Файл: test.zfarm.mobi/mystylepostr/7.php
Строк: 124
<?php
/////////////////////////
/*
Author MyStyle ZomBi.Biz
Год 2013 Права предоставлены автору Шехову Виталию Александровичу
http://vk.com/online_user
*/
/////////////////////////

if($user['postroyki7'] == 7){}else{
header("Location: ./");
exit;
}

echo 
'<div class="feedbackPanel">Вавилон</div>';

$count1=6;
$count1=floor($user['level']/5)+$count1;
if(isset(
$flowerbed_act))$count1=$count1+$flowerbed_act;

$time_rub=floor(86400/$count1);
$time1=$time-$user['time_obmen'];
$col_rub=floor($time1/$time_rub);
if(
$col_rub>$count1)$col_rub=$count1;

if(isset(
$_GET['mystylerety']))
{
$need_mcr=10000*$col_rub;
if(
$user['money']>=$need_mcr)
{
if(
$col_rub>=$count1)
{
mysql_query("UPDATE `mystyle_user` SET `time_obmen` = '$time', `ruby` = '".($user['ruby']+$col_rub)."', `money` = '".($user['money']-$need_mcr)."' WHERE `id` = '$user[id]'");
}
else 
mysql_query("UPDATE `mystyle_user` SET `time_obmen` = '".($user['time_obmen']+($col_rub*$time_rub))."', `ruby` = '".($user['ruby']+$col_rub)."', `money` = '".($user['money']-$need_mcr)."' WHERE `id` = '$user[id]'");
}
else 
$_SESSION['no_money']=$need_mcr-$ku['money'];
header("Location:?link7");
exit;
}
elseif(isset(
$_GET['mystyleferttryolan']))
{
$need_mcr=1000;
if(
$user['money']>=$need_mcr)
{
if(
$col_rub>=$count1)
{
$tkt=$col_rub-1;
$tt=$time_rub*$tkt;
$ttt=$time-$tt;
if(
$col_rub>0)
{
mysql_query("UPDATE `mystyle_user` SET `time_obmen` = '$ttt', `ruby` = '".($user['ruby']+1)."', `money` = '".($user['money']-$need_mcr)."' WHERE `id` = '$user[id]'");
}
}
else 
if(
$col_rub>0)

mysql_query("UPDATE `mystyle_user` SET `time_obmen` = '".($user['time_obmen']+$time_rub)."', `ruby` = '".($user['ruby']+1)."', `money` = '".($user['money']-$need_mcr)."' WHERE `id` = '$user[id]'");

}
else 
$_SESSION['no_money']=$need_mcr-$user['money'];
header("Location:?link7");
exit;
}
elseif(isset(
$_GET['mystyleuqniyt']))
{
$need_mcr=1;
$mok=2000;
if(
$user['ruby']>=$need_mcr)
{
mysql_query("UPDATE `mystyle_user` SET `ruby` = '".($user['ruby']-$need_mcr)."', `money` = '".($user['money']+$mok)."' WHERE `id` = '$user[id]'");
}
else 
$_SESSION['no_rubies']=$need_mcr-$ku['rubies'];
header("Location:?link7");
exit;
}
elseif(isset(
$_GET['mystyleyhguiomnbyt']))
{
$need_mcr=10;
$mok=20000;
if(
$user['ruby']>=$need_mcr)
{
mysql_query("UPDATE `mystyle_user` SET `ruby` = '".($user['ruby']-$need_mcr)."', `money` = '".($user['money']+$mok)."' WHERE `id` = '$user[id]'");
}
else 
$_SESSION['no_rubies']=$need_mcr-$ku['rubies'];
header("Location:?link7");
exit;
}

?>
<div class="feedbackPanel">
<div class="block">
<h3>Обменять на монеты</h3>
<ul>
<li>
<img width="16" height="16" src="images/icons/convert.png" alt="o"> <a class="btnp" href="?link7&mystyleuqniyt">Обменять</a> <img width="16" height="16" src="images/zombi/cash.png" alt="o"> 1 зомби бакс
на <img width="16" height="16" src="images/zombi/coins.png" alt="o"> 2000 монет.
</li><br />
<li>
<img width="16" height="16" src="images/icons/convert.png" alt="o"> <a class="btnp" href="?link7&mystyleyhguiomnbyt">Обменять</a> <img width="16" height="16" src="images/zombi/cash.png" alt="o"> 10 зомби баксов на <img width="16" height="16" src="images/zombi/coins.png" alt="o"> 20000 монет.
</li>
</ul>
<h3>Обменять на зомби баксы</h3>
<div>
<img width="16" height="16" src="images/icons/convert.png" alt="o">
<?
if($col_rub>0)echo "<a class="btnp" href='?link7&mystyleferttryolan'>Обменять</a> <img width='16' height='16' src='images/zombi/coins.png' alt='o'> 1000 монет на <img width='16' height='16' src='images/zombi/cash.png' alt='o'> 1 рубин.<br /></div><br /><div><img width='16' height='16' src='images/icons/convert.png' alt='o'> <a class="btnp" href='?link7&mystylerety'>Обменять</a> <img width='16' height='16' src='images/zombi/coins.png' alt='o'> <span>".($col_rub*1000)."</span> монет на <img width='16' height='16' src='images/zombi/cash.png' alt='o'> <span>$col_rub</span> зомби баксов.<br/>";
else echo 
"<span>Обменять</span> <img width='16' height='16' src='images/zombi/coins.png' alt='o'> 10000 монет на <img width='16' height='16' src='images/zombi/cash.png' alt='o'> 1 зомби бакс.<br>";
echo 
"</div>
<div class='minor ptm'>Сейчас доступно к обмену:
<span class='title'>
$col_rub</span> / <span class='title'>$count1</span>";
?>
 (зависит от уровня).</div>
<div>
</div>
</div>
</div>
Онлайн: 1
Реклама