diff --git a/clan.php b/clan.php index 14f0626..3d53393 100644 --- a/clan.php +++ b/clan.php @@ -1,15 +1,25 @@ clan) { exit(err('Вы не состоите в клане!')); } try { - $clanRow = db::c()->query('SELECT * FROM `clans` WHERE `id` = ?i', $user->clan)->fetch_assoc(); - $polno = unserialize($clanRow['vozm']) ?? []; + $clanRow = $db->fetch('SELECT * FROM `clans` WHERE short_name = ?', $user->clan); } catch (Exception $e) { - echo "MYSQL_ERROR: Таблицы clans не существует! Вся панель — одна сплошная ошибка!"; + echo "
- = $clanRow['name'] ?>- Количество рейтинговых очков клана: = $clanRow['rating'] ?>+ = $clanRow['full_name'] ?>- id][0] == 1): ?> + id): ?>
@@ -125,18 +123,18 @@ $clan_memberlist = db::c()->query('SELECT `id`, `login`, `status`, `level`, `roo
- id][1] == 1 || $clanRow['glava'] == $user->id): ?>
-
+ id): ?>
+
| ||||
= Nick::id($row['id'])->full() ?> | -= $row['status'] ?> | += Nick::id($clan_memberlist[$i]['id'])->full() ?> | += $clan_memberlist[$i]['status'] ?> | = $rrm ?> |