View file release_fix#2/mods/game/guild/users.php

File size: 2.62Kb
<?php
session_start();
$mod_title="игра-гильдия";
$mod_status="on";
if($mod_status=="on")
{
function mod_body($auth,$adminauth)
{
$level="";
$guildc="";
$arenac="";
$gcx1="";
$mz="";
if($auth=="ok")
{
$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,$exp,$guild) = mysql_fetch_row($cat))
{
$level=$lvl;
$gcx1=$guild;
$mz=$mon;
}
$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";
}
if($gcx1=="")
{
include "server_config.php";
echo "Вы не состоите в гильдии!<br>";
}
else
{
$cx="";
$query = "SELECT * FROM gbu WHERE login='$_COOKIE[login]'";
$cat = mysql_query ($query);
if(!$cat) exit (mysql_error());
while(list($id,$guild,$login) = mysql_fetch_row($cat))
{
$cx=$login;
}
if(!empty($cx))
{
echo "Вы забаняны!<br>";
include "data/buttons.auth.php";
exit();
}
$query = "SELECT*FROM guildc WHERE guild='$gcx1' ORDER BY id LIMIT $_pg,$_pg2";
$cat = mysql_query ($query);
if(!$cat) exit (mysql_error());
while(list($id,$guild,$login,$pmscvb) = mysql_fetch_row($cat))
{
$ol="";
$query3 = "SELECT * FROM users WHERE login='$login'";
$cat3 = mysql_query ($query3);
if(!$cat3) exit (mysql_error());
while(list($id4,$login4,$pass4,$mail4,$reg4,$class4,$m4,$h4,$z4,$s4,$mon4,$gold4,$pms4,$lvl4,$ava4,$ban4,$online) = mysql_fetch_row($cat3))
{
if($online=="no")
{
$ol="<span style='color:red'>[off]</span>";
}
else
{
$ol="<span style='color:green'>[on]</span>";
}
}
echo "<a href='?do=game/info&dox=$login'>$id-$login $ol(";
if($pmscvb=="100")
{
echo "<span style='color:green'>админ</span>";
}
else
{
echo "<span style='color:red'>пользователь</span>";
}
echo ")</a><br>";
}
echo "<br><a href='?do=game/guild/users&_pg=$ag'><<<назад</a>|<a href='?do=game/guild/users&_pg=$_pg2'>далее>>></a><br>";
}
include "data/buttons.auth.php";
}
else
{
echo "
Ошибка авторизации!<br>
";
}
}
}
else
{
function mod_body($auth,$adminauth)
{
echo "мод выключен администратором!<br>";
}
}
?>