Вход Регистрация
Файл: LinkPodval/LinkShop.php
Строк: 90
<?php
////////////////////////////////////////////////////////////////////////// Не трогать .......
$Link mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_podval` WHERE `user` = '".$user['id']."'"));
if(
$Link['user'] == $user['id']){
header("Location: ?LinkPodval");
exit;
}

if(isset(
$_GET['LinkGood']) && num($_GET['LinkGood'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_podval_shop` WHERE `id` = '".num($_GET['LinkGood'])."' AND `level` <= '".$user['level']."' LIMIT 1"),0)!=0){
$fer mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_podval_shop` WHERE `id` = '".num($_GET['LinkGood'])."' AND `level` <= '".$user['level']."'"));
$need=$fer['cena'];
if(
$user['money']>=$need){
update_ruby('money',$need);
$time_got $time+$fer['time'];
update_podval('user',$user['id'],'time',$time_got,'exp',$fer['exp'],'money',$fer['money'],'img',$fer['img'],'name',$fer['name'],'id_d',$fer['id']);



header("Location: ?LinkPodvalShop");
exit;
}else{
err_money($need-$user['money']);   
}

}

$k_post mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_podval_shop` "),0);
$k_page=k_page($k_post,$user['set']);
$page=page($k_page);
$start=$user['set']*$page-$user['set'];
$q=mysql_query("SELECT * FROM `mystyle_podval_shop` LIMIT $start$user[set]");
while(
$post=mysql_fetch_array($q)){

echo 
'<li>
<div style="border: 1px solid #005f8a; margin: 4px 0; border-radius: 4px;">
<img class="portrait pt6 pl6 pr6" width="48" height="48" src="/images/cellar/'
.$post['img'].'" alt=""/>
<div class="pt6">
<span class="whiteBoldLink">'
.$post['name'].'</span>
<span class="fr pr6"><span><span class="money nobr textshadow"><img width="16" height="16" src="/images/icons/coins.png" alt=""/> <span>'
.$post['money'].'</span></span></span> <span><span class="expirience nobr textshadow"><img height="16" width="16" src="/images/icons/level.png"> <span>'.$post['exp'].'</span></span></span></span>
</div>
<span></span> <span class="fr pr6"><span>'
.time_left($post['time']).'</span> <span>
<span class="cook nobr textshadow"><img width="16" height="16" src="/images/icons/culinary.png" alt="баландерство" title="баландерство"> <span>'
.$post['vkus'].'</span></span>
</span></span>
<div style="clear:both"></div>

<a class="btnwom" href="?LinkPodvalShop&amp;LinkGood='
.$post['id'].'">
<img src="/images/icons/tick.png" width="16" height="16" alt="o"/>
Сворганить '
.$post['level'].' - уровень
<span class="fr"><span class="money nobr textshadow"><img width="16" height="16" src="/images/icons/coins.png" alt=""/> <span>'
.$post['cena'].'</span></span></span>
</a>

</div>
</li>'
;


}
if (
$k_page>1)str("?LinkPodvalShop&",$k_page,$page); // Вывод страниц





?>
Онлайн: 1
Реклама