15, 2 => 30, 3 => 50, 4 => 100); $vips = array(1 => 0.15, 2 => 0.30, 3 => 0.45); if($user['vip'] > 0 && $user['vip_time'] > time()) { $count = $base[$hostel['type']]; $count += floor($base[$hostel['type']]*$vips[$user['vip']]); } else { $count = $base[$hostel['type']]; } if($_GET['search']) { $r = show_itm_hostel($user['id'], (int)$_GET['otdel'], (int)$_GET['place']); } else { $r = '
Поиск ...
'; } if($_GET['set'] && $_GET['set'] == 1) { $it = mysql_fetch_array(mysql_query('SELECT `id`, `owner` FROM `inventory` WHERE `id` = "'.(int)$_GET['itm'].'" LIMIT 1')); if(isset($it['id'])) { if($it['owner'] == $user['id']) { if($in['cnt'] < $count) { mysql_query('UPDATE `inventory` SET `owner` = "-101'.$user['id'].'" WHERE `id` = "'.$it['id'].'" LIMIT 1'); $in['cnt']++; } else { $error = 'Не хватает места ...'; } } elseif($it['owner'] == '-101'.$user['id']) { mysql_query('UPDATE `inventory` SET `owner` = "'.$user['id'].'" WHERE `id` = "'.$it['id'].'" LIMIT 1'); $in['cnt']--; } } unset($it); header('Location: hostel_room.php?search=1&otdel='.$_GET['otdel'].'&place='.$_GET['place']); } if($_GET['search']) { $r = show_itm_hostel($user['id'], (int)$_GET['otdel'], (int)$_GET['place']); } ####### $w = (270*$d['mass']/get_meshok()); $w_a = 270-$w; $h = (270*$in['cnt']/$count); $h_a = 270-$h; ####### if($_GET['go_back'] == 1) { mysql_query('UPDATE `users`,`online` SET `users`.`room` = 660, `online`.`room` = 660 WHERE `users`.`id` = "'.$user['id'].'" AND `online`.`id` = "'.$user['id'].'"'); header('Location: hostel.php'); } ?> 404

Комнатуха

Фильтр инвентаря
 
Состояние
/
/
'.$error.''; } ?>