= $klan['name'] ?>
Количество рейтинговых очков клана: = $klan['rating'] ?>
';
else echo 'У клана пока нет Замка
';
?>
query('SELECT * FROM `users` WHERE `klan` = "?s" AND `login` = "?s"', $klan['id'], $user['id'])->fetch_assoc();
}
if ($klan['glava'] == $user['id'] OR $polno[$user['id']][0] == 1 OR $polno[$user['id']][1] == 1) {
echo "';
}
}
if (($klan['zbor'] >= '25000') AND ($klan['zamok'] == '1') AND ($klan['glava'] == $user['id'])) {
err('Сумма собрана, но замки ещё не введены в игру. 🙁');
}
if ($klan['rating'] >= '1000000' AND $klan['zamok'] == 1 AND $klan['zbor'] < '25000') {
$ex = $klan['zbor'];
echo "Сбор средств на постройку кланового замка: $ex кр./25000 кр. ";
echo '
';
}
if (!empty($_POST['login']) AND $_POST['action'] == 'edit_status') {
$sok = db::c()->query('SELECT `id`, `status` FROM `users` WHERE `klan` = "?s" AND `login` = "?s"', $klan['id'], $_POST['login'])->fetch_assoc();
if (!empty($_POST['status'])) {
$st = strip_tags(str_replace("<", "<", str_replace(">", ">", $_POST['status'])), "");
}
if ($sok AND $sok['id'] != $klan['glava']) {
if (!empty($_POST['save'])) {
if ($_POST['vin'] == 'on') {
$polno[$sok['id']][0] = 1;
} else {
$polno[$sok['id']][0] = 0;
}
if ($_POST['tus'] == 'on') {
$polno[$sok['id']][1] = 1;
} else {
$polno[$sok['id']][1] = 0;
}
db::c()->query('UPDATE `users` SET `status` = "?s" WHERE `id` = ?i', $st, $sok['id']);
if ($klan['glava'] == $user['id']) {
db::c()->query('UPDATE `clans` SET `vozm` = "?s" WHERE `id` = ?i', serialize($polno), $klan['id']);
}
$sok['status'] = $st;
}
echo ' ';
} elseif ($sok['id'] == $klan['glava']) {
echo ' |
|
Соклановцы
query('SELECT `id`, `login`, `status`, `level`, `room`, `align`, (select `id` from `online` WHERE `date` >= ?i AND `id` = users.`id`) AS `online` FROM `users` WHERE `klan` = ?i ORDER BY `online` DESC , `login` ASC', (time()-60), $klan['id']);
while ($row = $data->fetch_assoc()) {
if ($row['online'] > 0) {
echo '💡 ';
echo nick::id($row['id'])->full();
if ($row['id'] == $klan['glava']) {
echo ' - Глава клана';
} else {
echo ' - ', $row['status'], '';
}
if ($row['room'] > 500 && $row['room'] < 561) {
$rrm = 'Башня смерти, участвует в турнире';
} else {
$rrm = $rooms[$row['room']];
}
echo ' - ', $rrm, ' ';
} else if ($row['online'] < 1) {
echo '';
echo nick::id($row['id'])->full();
if ($row['id'] == $klan['glava']) {
echo ' - Глава клана';
} else {
echo ' - ', $row['status'], '';
}
}
}
?>
|
|