Вход Регистрация
Файл: stalkerus.tk/tremor.php
Строк: 63
<?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($dbctrim($type));    
  if (
$vip == 1){
  
$type 5
  }
  if (
$type <> and $type <> and $type <> and $type <> and $type <> 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"> -Только не сейчас... что там у тебя?
С медикаментами сейчас туговато, поэтому могу продать только определенное количество.</p>
  </div>
<div class="stats"><p>[<a <?php if ($type == 1) {?>class="white"<?php }?> href="tremor.php?type=1">Нов</a>] [<a <?php if ($type == 2) {?>class="white"<?php }?> href="salesman.php?type=2">Быв</a>] [<a <?php if ($type == 3) {?>class="white"<?php }?> href="salesman.php?type=3">Вет</a>] [<a <?php if ($type == 4) {?>class="white"<?php }?> href="salesman.php?type=4">Лег</a>][<a <?php if ($type == 6) {?>class="white"<?php }?> href="salesman.php?type=6">Артефакты</a>]</p>
  </div>
  <?php 
  ?>
  <div class="stats">
    <p>[<img src="img/ico/money.png" width="12" height="12"/> <span class="white"><?php echo "$money"?></span>] [<img src="img/ico/materials.png" width="12" height="12"/> <span class="white"><?php echo "$habar"?></span>]</p>
    <div class="zx">
    <p class="bonus">Советы:</p>
<p class="clothes"><span class="bonus"><img src="img/ico/money.png" width="12" height="12"/> Нет у тебя RUB ? [<a class="bonus" href="payment.php">пополни счет</a>]</span></p>
    <p class="clothes"><span class="bonus"><img src="img/ico/shield.png" width="12" height="12"/> Всё снаряжение вы можете приобрести на аукционе <a class="bonus" href="auction.php">дешевле</a> или получить на <a href="monsters.php">рейде</a>.</span></p>
    </div>
  </div>
  <div class="stats">
  <p class="podmenu"><?php 

  
</p>
  </
div>
  </
div>
  <
div class="stats">
  <?
  if (
$type == 6){
  

    
    
    
</
div>
<?
php
require_once('conf/navig.php');
require_once(
'conf/foot.php');
mysqli_close($dbc);
?>

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