File size: 1.57Kb
<? $date=date("Y.m.d");
$gobook=mysql_num_rows(mysql_query("select * from `shurik_gobook`"));
$news=mysql_fetch_array(mysql_query("select * from `shurik_news` order by `date` desc limit 1"));
$users=mysql_num_rows(mysql_query("select * from `shurik_users`"));
$admins=mysql_num_rows(mysql_query("select * from `shurik_users` WHERE admin!=0"));
$chats=mysql_num_rows(mysql_query("select * from `shurik_chat` where date='$date'"));
$f_cat=mysql_num_rows(mysql_query("select * from `shurik_f_cat`"));
$f_tem=mysql_num_rows(mysql_query("select * from `shurik_f_tem`"));
$f_post=mysql_num_rows(mysql_query("select * from `shurik_f_post`"));
if(isset($_SESSION['user_id'])){echo '<img src="images/menu.gif"> <a href="settings.php">Мой кабинет</a><br/>';
if($me['admin']==1)echo "<img src='images/menu.gif'> <a href=moder/index.php>Модер-меню</a><br/>";
if($me['admin']==2)echo "<img src='images/menu.gif'> <a href=admin/index.php>Админ-меню</a><br/>";
if($me['admin']==3)echo "<img src='images/menu.gif'> <a href=sisadmin/index.php>Админ-меню</a><br/>";
}
echo "
<img src='images/menu.gif'> <a href='gost/index.php'>Гостевая книга</a>($gobook)<br/>
<img src='images/menu.gif'> <a href='chat/index.php'>Мини чатик</a>($chats)<br/>
<img src='images/menu.gif'> <a href='new.php'>Новости сайта</a>($news[date])<br/>
<img src='images/menu.gif'> <a href='forum/index.php'>Форум</a>($f_cat/$f_tem/$f_post)<br/>
<hr/>
<img src='images/menu.gif'> <a href='users.php'>Пользователи</a>($users)<br/>
<img src='images/menu.gif'> <a href='admins.php'>Администраторы</a>($admins)<br/>";
?>