Размер файла: 1.75Kb
<?php
##################################
# seniors.php #
##################################
# Форум на MySQL #
#Афтар : Morgan #
#ICQ : 530-648 #
#Email : [email protected] #
##################################
require_once 'includes/start.php';
require_once 'includes/functions.php';
require_once 'includes/db.php';
require_once 'includes/avt.php';
require_once 'includes/other.php';
require_once 'includes/head.php';
echo '</div><div class="main">
Супер админ
</div><div class="fon">';
$admin = mysql_fetch_array(mysql_query('SELECT login,posts FROM `users` WHERE `id`="1"'));
echo '» <a href="user.php?id=1">'.$admin['login'].'</a>'.online('1').' - <b>Главный админ</b> <br />
';
$adminss = mysql_query('SELECT login,id FROM `users` WHERE `dol`="admin" AND `id`<>"1"');
if(mysql_num_rows($adminss)!=0)
{
echo '</div><div class="main">
Админы
</div><div class="fon">';
while($admins = mysql_fetch_array($adminss))
{
echo '» <a href="user.php?id='.$admins['id'].'">'.$admins['login'].'</a>'.online($adimns['id']).'<br />';
}
}
$moderators = mysql_query('SELECT login,id FROM `users` WHERE `dol`="moderator" AND `id`<>"1"');
if(mysql_num_rows($moderators)!=0)
{
echo '</div><div class="main">
Модераторы
</div><div class="fon">';
while($moder = mysql_fetch_array($moderators))
{
echo '» <a href="user.php?id='.$moder['id'].'">'.$moder['login'].'</a>'.online($moder['id']).'<br />';
}
}
echo '</div><br />
';
require_once 'includes/foot.php';
##################################
# © Все права защищены #
##################################
?>