Файл: chat/includes/moders.php
Строк: 18
<?php
/**
* @package Chat for JohnCMS
* @link http://johncms.com
* @copyright Copyright (C) 2010-2017 k_2
* @license LICENSE.txt (see attached file)
* @version VERSION.txt (see attached file)
* @author http://johncms.com/profile/?user=6251
*/
defined('_IN_JOHNCMS') or die('Error: restricted access');
/*
-----------------------------------------------------------------
Список модераторов чата
-----------------------------------------------------------------
*/
echo '<div class="phdr"><a href="index.php"><b>' . $lng_chat['chat'] . '</b></a> | ' . $lng_chat['chat_moders'] . '</div>';
$mod = db::query("SELECT * FROM `chat_users` WHERE `rights`='1'");
if (mysqli_num_rows($mod)) {
while ($res = mysqli_fetch_assoc($mod)) {
$mod_u = db::query("SELECT * FROM `users` WHERE `id`='" . $res['id_u'] . "'");
$mod_u_d = mysqli_fetch_assoc($mod_u);
echo ($i % 2) ? '<div class="list2">' : '<div class="list1">';
echo functions::display_user($mod_u_d) . '</div>';
++$i;
}
} else {
echo '<div class="rmenu"><p><b>' . $lng_chat['the_list_is_empty'] . '</b></p></div>';
}
echo '<div class="phdr"><a href="index.php">' . $lng_chat['to_chat'] . '</a></div>';