Вход Регистрация
Файл: region_clean/trainers.php
Строк: 117
<?php
#######################################
## Mod By KoT (borispol) [76-75-072] ##
#######################################

require_once "start.php";
require_once 
"sid.php";

header("Cache-Control: no-cache");
if (
$ver == "wml"header ("Content-type:text/vnd.wap.wml; charset=utf-8");
else 
header("Content-Type:text/html; charset=UTF-8");

require_once 
"inc.php";
$link connect_db();
list(
$row$id$ps$fsize1$fsize2) = check_login($link);
require_once 
"version.php";

$toUrl = isset($rm) ? $ses.'&amp;rm='.(int)$rm.'&amp;ref='.$ref.'&amp;' '&amp;ref='.$ref.'&amp;';
if (
$ver == "wml") {
echo 
$xml;
echo 
$dtd;
echo 
"<wml>n
      <head><meta http-equiv="
Cache-Control" content="no-cache" forua="true"/></head>n
      <card id="
chatmail" title="Тренажерный зал">n
      <p align="
left">n";
}else{
echo 
"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      
<html xmlns="http://www.w3.org/1999/xhtml">
      <
head><link rel="stylesheet" type="text/css" href="css/$css.css"/>
      <
title>Тренажерный зал</title>
      <
meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body>
      <
div align="left">";
}
include 'class/navigator.php';
$mod = isset($_GET['mod']) ? $_GET['mod'] : NULL;
switch(
$_GET['mod']) {
    //Список разделов
    default:
    echo '<div class="
c4">Тренажерный зал</div><br/>
    &raquo; <a href="
trainers.php?mod=force&amp;'.$toUrl.'">Сила</a> <br/>
    &raquo; <a href="
trainers.php?mod=endurance&amp;'.$toUrl.'">Выносливость</a> <br/>
    &raquo; <a href="
trainers.php?mod=adroitness&amp;'.$toUrl.'">Ловкость</a> <br/>
    &raquo; <a href="
trainers.php?mod=accuracy&amp;'.$toUrl.'">Меткость</a> <br/>';
    break;

    //Сила
    case 'force':
    echo '<div align="
center"><b>Тренажеры для повышения силы</b></div>';
    
$file = file('data/bk/trainers_force.dat');
    
$count = count($file);
    
$n = new navigator($count, 5, 'trainers.php?mod=force&amp;'.$toUrl.'&amp;');
    for(
$i=$n->start$i<$n->end$i++) {
        
$ex = explode('|::|', $file[$i]);
        echo '
        Команда: !'.
$ex[0].'<br />
        Повысит силу: '.
$ex[1].'<br />
        Цена: '.
$ex[2].'<br />
        Время тренировки : '.
$ex[3].'сек<hr />';
    }
    echo '&raquo; <a href="
trainers.php?'.$toUrl.'&amp;">Назад</a>';
    break;

    //Выносливость
    case 'endurance':
    echo '<div align="
center"><b>Тренажеры для повышения выносливости</b></div>';
    
$file = file('data/bk/trainers_endurance.dat');
    
$count = count($file);
    
$n = new navigator($count, 5, 'trainers.php?mod=endurance&amp;'.$toUrl.'&amp;');
    for(
$i=$n->start$i<$n->end$i++) {
        
$ex = explode('|::|', $file[$i]);
        echo '
        Команда: !'.
$ex[0].'<br />
        Повысит выносливость: '.
$ex[1].'<br />
        Цена: '.
$ex[2].'<br />
        Время тренировки : '.
$ex[3].'сек<hr />';
    }
    echo '&raquo; <a href="
trainers.php?'.$toUrl.'&amp;">Назад</a>';
    break;

    //Ловкость
    case 'adroitness':
    echo '<div align="
center"><b>Тренажеры для повышения ловкости</b></div>';
    
$file = file('data/bk/trainers_adroitness.dat');
    
$count = count($file);
    
$n = new navigator($count, 5, 'trainers.php?mod=adroitness&amp;'.$toUrl.'&amp;');
    for(
$i=$n->start$i<$n->end$i++) {
        
$ex = explode('|::|', $file[$i]);
        echo '
        Команда: !'.
$ex[0].'<br />
        Повысит ловкость: '.
$ex[1].'<br />
        Цена: '.
$ex[2].'<br />
        Время тренировки : '.
$ex[3].'сек<hr />';
    }
    echo '&raquo; <a href="
trainers.php?'.$toUrl.'&amp;">Назад</a>';
    break;

    //Меткость
    case 'accuracy':
    echo '<div align="
center"><b>Тренажеры для повышения меткости</b></div>';
    
$file = file('data/bk/trainers_accuracy.dat');
    
$count = count($file);
    
$n = new navigator($count, 5, 'trainers.php?mod=accuracy&amp;'.$toUrl.'&amp;');
    for(
$i=$n->start$i<$n->end$i++) {
        
$ex = explode('|::|', $file[$i]);
        echo '
        Команда: !'.
$ex[0].'<br />
        Повысит меткость: '.
$ex[1].'<br />
        Цена: '.
$ex[2].'<br />
        Время тренировки : '.
$ex[3].'сек<hr />';
    }
    echo '&raquo; <a href="
trainers.php?'.$toUrl.'&amp;">Назад</a>';
    break;
}
echo '
<br/><div class = "
d1">
 <a href="
chat.php?'.$toUrl.'">В чат</a><br/>
 <a href="
enter.php?'.$toUrl.'">Прихожая</a><br/>
</div>';
include_once "
foot.php";
?>
Онлайн: 0
Реклама