Файл: test.zfarm.mobi/mystylecollect/linkcollectionshansupload.php
Строк: 86
<?php
/////////////////////////
/*
Author MyStyle ZomBi.Biz
12/05/2013
*/
/////////////////////////
if($user['collection_shans'] == 100) $user_lr = 2;
if($user['collection_shans'] == 90) $user_lr = 3;
if($user['collection_shans'] == 80) $user_lr = 4;
if($user['collection_shans'] == 70) $user_lr = 5;
if($user['collection_shans'] == 60) $user_lr = 6;
if($user['collection_shans'] == 50) $user_lr = 7;
if($user['collection_shans'] == 40) $user_lr = 8;
if($user['collection_shans'] == 30) $user_lr = 9;
if($user['collection_shans'] == 20) $user_lr = 10;
$lr=rl($user_lr);
if($user['collection_shans'] == 100) $lrl = 20;
if($user['collection_shans'] == 90) $lrl = 30;
if($user['collection_shans'] == 80) $lrl = 40;
if($user['collection_shans'] == 70) $lrl = 50;
if($user['collection_shans'] == 60) $lrl = 60;
if($user['collection_shans'] == 50) $lrl = 70;
if($user['collection_shans'] == 40) $lrl = 80;
if($user['collection_shans'] == 30) $lrl = 90;
if($user['collection_shans'] == 20) $lrl = 100;
if($user['collection_shans']>10)
{
if(isset($_GET['linkprofilemystylegood']))
{
if($user['ruby']>=$lr)
{
$tr = $user['collection_shans']-10;
mysql_query("UPDATE `mystyle_user` SET `collection_shans` = '".$tr."' WHERE `id` = '$user[id]'");
mysql_query("UPDATE `mystyle_user` SET `ruby` = '".($user['ruby']-$lr)."' WHERE `id` = '$user[id]'");
header("Location: ./?linkcollectionshansupload");
}
else
{
err_ruby($lr-$user['ruby']);
}
}
echo '<div class="btn">Подтверждение</div>';
echo '<div class="feedbackPanel">';
echo "<li><span>".($user['udobrenie']==0?"Покупка":"Увиличение")."</span>: <span><span class='level'>шанса</span>".($user['collection_shans']>0?", до $lrl%.":null)."</span><br/><span>цена</span>: <span><img width='16' height='16' src='images/zombi/cash.png' alt='o'> <span class='title'>$lr</span></span></li></ul>";
echo '</div>';
echo '<div>
<div class="feedbackPanel">
<div class="whiteLink">Вы уверены?</div>
<div style="text-align: center;">
<div class="fl" style="width: 49%;">
<a class="btn" href="?linkcollectionshansupload&linkprofilemystylegood">
<img width="16" height="16" alt="o" src="/images/icons/tick.png"/>
<span>Подтверждаю!</span>
</a>
</div>
<div class="fr" style="width: 49%;">
<a class="btn" href="./">
<img width="16" height="16" alt="o" src="/images/icons/cross.png"/>
<span>Отказываюсь!</span>
</a>
</div>
<div style="clear: both;"></div>
</div>
</div>
</div>';
}else{
header("Location: ./");
exit;
}
/////////////////////////
/*
Author MyStyle ZomBi.Biz
12/05/2013
*/
/////////////////////////
?>