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

  
include ("files/zag.php");

  if(isset(
$_COOKIE['aut']) and $_COOKIE['aut'
             == 
1){
  
  
$items     file('data/item.dat');
    
  if(empty(
$items[$id])){
  
  echo 
'
  Такой вещи не существует.
  '
;
  
  include(
'files/down.php'); exit;
  
  }

  
$item      explode(':||:'$items[$id]);

  if(
$item[1]
             == 
'res'$type 'Ресурс';
  elseif(
$item[1]
             == 
'wea'$type 'Оружие';
  elseif(
$item[1]
             == 
'hel'$type 'Шлем';


  echo 
'
  <b>'
.$item[0].'</b><br>- - -<br>
  
  Тип: <b>'
.$type.'</b><br>
  '
;
  
  if(!empty(
$item[2])){
  
  echo 
'
  Грейд: <b>'
.$item[2].'</b><br>
  '
;
  
  }
  
  echo 
'
  Описание: <b>'
.$item[11].'</b>
  <br>'
;
  
  if(!empty(
$item[3])) echo '<br><font color="#ff3030">HP: '.number_format($item[3]).'</font>';
  if(!empty(
$item[4])) echo '<br><font color="#3030ff">MP: '.number_format($item[4]).'</font>';
  if(!empty(
$item[5])) echo '<br>Физ.Атк.: '.number_format($item[5]).'';
  if(!empty(
$item[6])) echo '<br>Маг.Атк.: '.number_format($item[6]).'';
  if(!empty(
$item[7])) echo '<br>Физ.Защ.: '.number_format($item[7]).'';
  if(!empty(
$item[8])) echo '<br>Маг.Защ.: '.number_format($item[8]).'';

  if(empty(
$item[3]) && empty($item[4]) && empty($item[5]) && empty($item[6]) && empty($item[7]) && empty($item[8])) echo '<br>Модификаторов нет.';
  
  echo 
'
  <br><br>
  Цена: <b>'
.number_format($item[9]).'</b> ( <b>'.number_format($item[10]).'</b> Coin of Luck )
  '
;


  }else{
  
  
header('Location: /index.php');
  
  }
  
  include(
'files/down.php');
  
?>
Онлайн: 0
Реклама