Вход Регистрация
Файл: drop.php
Строк: 37
<?php

require_once('conf/dbc.php');
require_once(
'conf/session_start.php');
require_once(
'conf/ban.php');
if ((!isset(
$_SESSION['id'])) or (!isset($_SESSION['nick'])))  {
?>
<script type="text/javascript">
  document.location.href = "reg.php?err_login=1";
</script>
<?php
}
$page_title = 'Мирон';
require_once(
'conf/head.php');
require_once(
'conf/top.php');
  
$user_id = $_SESSION['id'];
  
$query = "Select lvl,money, habar from users where id = '$user_id'";
  
$result = mysqli_query($dbc, $query) or die ('Ошибка передачи запроса к БД');
  
$row = mysqli_fetch_array($result);
  
$money = $row['money'];
  
$vip = $row['vip'];
  
$habar = $row['habar'];
  
$lvl = $row['lvl'];
  
$type = $_GET['type'];
  
$type = mysqli_real_escape_string($dbc, trim($type));    
  if (
$vip == 1){
  
$type = 5; 
  }
  if (
$type <> 1 and $type <> 2 and $type <> 3 and $type <> 4 and $type <> 5 and $type <> 6) {
    if (
$lvl >=25) {$type = 3;}
    if (
$lvl <25) {$type = 2;}
    if (
$lvl <16) {$type = 1;}
  }
?>
<div id="main">
  <div class="stats">
<p class="podmenu">Мирон</p>
  </div>
  <div class="stats">
    <p><img src="img/ico/selesman.png"/></p>
<p class="white"> - Приветствую STALKER. Выбирай комплект по душе</p>
  </div>
<div class="stats">
<p><a <?php if ($type == 1) {?>class="white"<?php }?> href="drop.php?type=1"> <img src="onestalker.jpg"/> </a></p>
<p><a <?php if ($type == 2) {?>class="white"<?php }?> href="drop.php?type=2"> <img src="dolg.jpg"/> </a></p>
<p><a <?php if ($type == 3) {?>class="white"<?php }?> href="drop.php?type=3"> <img src="bandit.jpg"/> </a></p>
<p><a <?php if ($type == 4) {?>class="white"<?php }?> href="drop.php?type=4"> <img src="warstalker.jpg"/> </a></p>
  </div>
<?php
require_once('conf/navig.php');
require_once(
'conf/foot.php');
mysqli_close($dbc);
?>

</body>
</html>
Онлайн: 1
Реклама