session_start();
if(!isset($_SESSION['uid'])) { header('Location: ../../index.php'); exit(); }
include('../../config.php');
include('../../functions.php');
if($user['klan'] == '') { header('Location: ../../main.php'); exit(); }
$clan = mysql_fetch_array(mysql_query('SELECT `id`, `recruits`, `short`, `name`, `descr`, `glava`, `vozm`, `align`, `mshadow`, `wshadow`, `homepage`, `rating`, `zbor`, `zamok`, `izamok`, `ifon` FROM `clans` WHERE `id` = "'.$user['klan'].'" LIMIT 1'));
if($clan['recruits'] > 0) {
$recrut = mysql_fetch_array(mysql_query('SELECT `id`, `recruits`, `short`, `name`, `descr`, `glava`, `vozm`, `align`, `mshadow`, `wshadow`, `homepage`, `rating`, `zbor`, `zamok`, `izamok`, `ifon` FROM `clans` WHERE `id` = "'.$clan['recruits'].'" LIMIT 1'));
}
function show_klan_members($pl) {
global $rooms;
$r = '';
$clan = mysql_fetch_array(mysql_query('SELECT `id`, `recruits`, `short`, `name`, `descr`, `glava`, `vozm`, `align`, `mshadow`, `wshadow`, `homepage`, `rating`, `zbor`, `zamok`, `izamok`, `ifon` FROM `clans` WHERE `id` = "'.$pl.'" LIMIT 1'));
if(isset($clan['id'])) {
$sp = mysql_query('SELECT `id`, `login`, `invis`, `align`, `level`, `status`, `room`, (SELECT `id` FROM `online` WHERE `date` >= "'.(time()-60).'" AND `id` = `users`.`id`) AS `online` FROM `users` WHERE `klan` = "'.$pl.'" ORDER BY `level` DESC');
while($us = mysql_fetch_array($sp)) {
if($us['online'] > 0 && $us['invis'] == 0) {
$r .= '';
} else {
$r .= '';
}
$r .= ' '.$us['login'].' ['.$us['level'].'] ';
$r .= '';
$r .= $us['status']?" - ".$us['status']:" - Нет звания";
if($us['online'] > 0 && $us['invis'] == 0) {
$r .= ' - '.$rooms[$us['room']].'';
}
$r .= '
';
}
} else {
$r = 'Клан не найден ..';
}
return $r;
}
?>
=$clan['short']; ?>
|
||