Вход Регистрация
Файл: LinkMod/UserHouseItems.php
Строк: 221
<?php
$k_post 
mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_house` WHERE `user` = '".$user['id']."'"),0);
if (
$k_post==0)
{
echo 
'<a class="btnm">Вы не достигли 10-го Уровня!</a>';
}
$k_page=k_page($k_post,$user['set']);
$page=page($k_page);
$start=$user['set']*$page-$user['set'];
$q=mysql_query("SELECT * FROM `mystyle_house` WHERE `user` = '".$user['id']."' ORDER BY `id` DESC LIMIT $start$user[set]");
echo 
'<ul>';
while(
$post=mysql_fetch_array($q))

echo 
'<li><div>
<div style="border: 1px solid #005f8a; margin: 4px 0; border-radius: 4px;">'
;
if(
$post['type'] == 'no'){
echo 
'<img class="portrait pt6" width="48" height="48" alt="o" src="/images/home/empty.png">';
}else{
echo 
'<img class="portrait pt6" width="48" height="48" alt="o" src="/images/home/'.$post['img'].'">';

}


echo 
'<div class="pt6"><span class="whiteBoldLink">'.$post['name'].'</span></div>';
echo 
'<div>';
if(
$post['ver'] == 0){
echo 
'<span><img src="/images/home/progress/home0.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span>'
;
}if(
$post['ver'] == 1){
echo 
'<span><img src="/images/home/progress/home1.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span>'
;
}
if(
$post['ver'] == 2){
echo 
'<span><img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span>'
;
}
if(
$post['ver'] == 3){
echo 
'<span><img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home1.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span>'
;
}
if(
$post['ver'] == 4){
echo 
'<span><img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span>'
;
}
if(
$post['ver'] == 5){
echo 
'<span><img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home1.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span>'
;
}
if(
$post['ver'] == 6){
echo 
'<span><img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span>'
;
}
if(
$post['ver'] == 7){
echo 
'<span><img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home1.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span>'
;
}
if(
$post['ver'] == 8){
echo 
'<span><img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home0.png">
</span>'
;
}
if(
$post['ver'] == 9){
echo 
'<span><img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home1.png">
</span>'
;
}
if(
$post['ver'] == 10){
echo 
'<span><img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home2.png">
</span><span>
<img src="/images/home/progress/home2.png">
</span>'
;
}









echo 
'</div>
<div style="clear: both;"></div>'
;
if(
$post['type'] == 'no'){
echo 
'<a class="btnwom" href="?UserHouseItems&amp;Start='.$post['id'].'">
<img src="/images/icons/tick.png" alt="o"/>
<span>Купить</span>
<span class="fr"><span class="money nobr textshadow"><img width="16" height="16" src="/images/icons/ruby.png" alt=""/> 
<span class="required">'
.$post['ruby'].'</span></span></span>
</a>'
;
}else{
echo 
'<a class="btnwom" href="?UserHouseItems&amp;Start='.$post['id'].'">
<img src="/images/icons/tick.png" alt="o"/>
<span>Улучшить в разработке</span>
<span class="fr"><span class="money nobr textshadow"><img width="16" height="16" src="/images/icons/ruby.png" alt=""/> 
<span class="required">'
.$post['ruby'].'</span></span></span></a>';
}

echo 
'</div></div></li>';


}
echo 
'</ul>';
if (
$k_page>1)str("?UserHouseItems&",$k_page,$page);
///////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////Powered By MyStyle////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////08.02/2013/////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////
if(isset($_GET['Start']) && num($_GET['Start'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_house` WHERE `id` = '".num($_GET['Start'])."' AND `user` = '".$user['id']."'  AND `type` = 'no' LIMIT 1"),0)!=0){
$fer mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_house` WHERE `id` = '".num($_GET['Start'])."' AND `user` = '".$user['id']."'"));
$need=$fer['ruby'];
if(
$user['ruby']>=$need){
//////////////////////////////
$id num($_GET['Start']);
$yes 'yes';
update_dom('type',$yes,'id',$id);
$polka 'polka'.$fer['polka'].'';
$ver 'ver'.$fer['polka'].'';
$plus 1;
$plus_exp 10;
$plus_faith 13;

update_doms('polka'.$fer['polka'].'',$fer['img']);
update_domq('ver'.$fer['polka'].'',$plus);
update_domq('exp',$plus_exp);
update_domq('faith',$plus_faith);


$plus_rating rand(20,100);
//// Update Ruby End User ////
update_ruby('ruby',$need);
update_user('faith',$plus_faith);
update_user('dom_exp',$plus_exp);
update_user('rating',$plus_rating);

///////// The End Update /////

header("Location: ?UserHouseItems");
exit;
}else{
 
err_ruby($need-$user['ruby']);   
}
}














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