Просмотр файла release_fix#2/mods/game/info.php

Размер файла: 3.34Kb
<?php
session_start();
$_GET['dox']=htmlspecialchars($_GET['dox']);
$mod_title="игра-инфо о $_GET[dox]";
$mod_status="on";
if($mod_status=="on")
{
function mod_body($auth,$adminauth)
{
$level="";
$guildc="";
$arenac="";
if($auth=="ok")
{
$mcl="";
$query = "SELECT * FROM users WHERE login='$_COOKIE[login]'";
$cat = mysql_query ($query);
if(!$cat) exit (mysql_error());
while(list($id,$login,$pass,$mail,$reg,$class,$m,$h,$z,$s,$mon,$gold,$pms,$lvl,$ava,$ban,$online) = mysql_fetch_row($cat))
{
$mcl=$class;
$level=$lvl;
}
$query = "SELECT * FROM count";
$cat = mysql_query ($query);
if(!$cat) exit (mysql_error());
while(list($id,$guild,$arena) = mysql_fetch_row($cat))
{
$guildc=$guild;
$arenac=$arena;
}
echo "
<img src='img/bo.png'> <a href='?do=game/char'>персонаж($level)</a>|<img src='img/bs.png'> <a href='?do=game/history'>история</a><br>
<br>
";
$_pg="0";
$ag="-10";
$_pg2="10";
if(!empty($_GET['_pg']))
{
$ag=$_GET['_pg']-"10";
$_pg=$_GET['_pg'];
$_pg2=$_GET['_pg']+"10";
}
$lxc="";
$query = "SELECT * FROM users WHERE login='$_GET[dox]'";
$cat = mysql_query ($query);
if(!$cat) exit (mysql_error());
while(list($id,$login,$pass,$mail,$reg,$class,$m,$h,$z,$s,$mon,$gold,$pms,$lvl,$ava,$ban,$online,$exp,$guild,$points,$pvp) = mysql_fetch_row($cat))
{
$lxc=$login;
$ol="";
if($online=="no")
{
$ol="<span style='color:red'>[off]</span>";
}
else
{
$ol="<span style='color:green'>[on]</span>";
}
echo "
инфо о $login $ol:<br>
e-mail:$mail
";
if($reg=="ok")
{
}
else
{
echo "[<span style='color:red'>не подтверждён</span>]";
}
echo "<br>
<img src='$ava' alt='avatar'><br>
класс:$class<br>
сила:$s<br>
магия:$m<br>
защита:$z<br>
HP:$h<br>
уровень:$lvl<br>
exp:$exp<br>
гильдия:$guild<br>
PvP очки:$pvp<br>";
echo "Награды $_GET[dox]:<br>";
$query = "SELECT * FROM awards WHERE login='$_GET[dox]' ORDER BY id DESC LIMIT 0,5";
$cat = mysql_query ($query);
if(!$cat) exit (mysql_error());
while(list($id,$login,$name,$img) = mysql_fetch_row($cat))
{
echo "<a href='?do=game/award_info&name=$name'><img src='$img' alt='$name' border='0'></a> ";
}
echo "<br><a href='?do=game/awards&login=$_GET[dox]'>[все награды]</a><br>";
echo "Подарки $_GET[dox]:<br>";
$query = "SELECT * FROM mygifts WHERE login='$_GET[dox]' ORDER BY id DESC LIMIT 0,5";
$cat = mysql_query ($query);
if(!$cat) exit (mysql_error());
while(list($id,$login,$img,$name) = mysql_fetch_row($cat))
{
echo "<a href='?do=game/gift_info&name=$name'><img src='img/gifts/$img' alt='$name' border='0'></a>";
}
echo "<br><a href='?do=game/gifts&login=$_COOKIE[login]'>[все подарки]</a><br><br>";
echo "
<a href='?do=game/mail/sent&xs=$lxc&style=2'>отправить сообщение</a><br><br>
";
echo "Модификации:<br>";
$query = "SELECT * FROM mods WHERE login='$_GET[dox]' ORDER BY id DESC";
$cat = mysql_query ($query);
if(!$cat) exit (mysql_error());
while(list($id3,$login3,$name3,$mid3) = mysql_fetch_row($cat))
{
echo "<a href='?do=game/mods/info&mid=$mid3'>$name3</a><br>";
}
}
include "data/buttons.auth.php";
}
else
{
echo "
Ошибка авторизации!<br>
";
}
}
}
else
{
function mod_body($auth,$adminauth)
{
echo "мод выключен администратором!<br>";
}
}
?>