Размер файла: 3.89Kb
- <?php
- $bes=mysql_num_rows(mysql_query("SELECT `id` FROM `guestbook`"));
- $besn=mysql_num_rows(mysql_query("SELECT `id` FROM `guestbook` WHERE `time` > '".(time()-84400)."'"));
- $mnen=mysql_num_rows(mysql_query("SELECT `id` FROM `mnen`"));
- $mnenn=mysql_num_rows(mysql_query("SELECT `id` FROM `mnen` WHERE `time` > '".(time()-84400)."'"));
- $chat=mysql_num_rows(mysql_query("SELECT `id` FROM `chat`"));
- $chatn=mysql_num_rows(mysql_query("SELECT `id` FROM `chat` WHERE `time` > '".(time()-84400)."'"));
- $news=mysql_num_rows(mysql_query("SELECT `id` FROM `news`"));
- $newsn=mysql_num_rows(mysql_query("SELECT `id` FROM `news` WHERE `time` > '".(time()-84400)."'"));
- $vote=mysql_num_rows(mysql_query("SELECT `id` FROM `user_vote`"));
- $voten=mysql_num_rows(mysql_query("SELECT `id` FROM `user_vote` WHERE `time` > '".(time()-84400)."'"));
- $fo=mysql_num_rows(mysql_query("SELECT `id` FROM `forum`"));
- $fon=mysql_num_rows(mysql_query("SELECT `id` FROM `forum` WHERE `time` > '".(time()-84400)."'"));
- $k=mysql_num_rows(mysql_query("SELECT `id` FROM `forum_komm`"));
- $kn=mysql_num_rows(mysql_query("SELECT `id` FROM `forum_komm` WHERE `time` > '".(time()-84400)."'"));
- $ofo=mysql_num_rows(mysql_query("SELECT `id` FROM `obmen`"));
- $ofon=mysql_num_rows(mysql_query("SELECT `id` FROM `obmen` WHERE `time` > '".(time()-84400)."'"));
- $ok=mysql_num_rows(mysql_query("SELECT `id` FROM `obmen_komm`"));
- $okn=mysql_num_rows(mysql_query("SELECT `id` FROM `obmen_komm` WHERE `time` > '".(time()-84400)."'"));
- $us=mysql_num_rows(mysql_query("SELECT `id` FROM `user`"));
- $usn=mysql_num_rows(mysql_query("SELECT `id` FROM `user` WHERE `reg` > '".(time()-84400)."'"));
- $uso=mysql_num_rows(mysql_query("SELECT `id` FROM `user` WHERE `click` > '".(time()-600)."'"));
- $admin=mysql_num_rows(mysql_query("SELECT `id` FROM `user` WHERE `admin` = '1'"));
- $moder=mysql_num_rows(mysql_query("SELECT `id` FROM `user` WHERE `moder` = '1'"));
- echo "<div class='left' height='100%'>";
- /*if ($user)echo "<a class='lef' href='/kab.php'>Кабинет</a><br>";
- echo "<a class='lef' href='/news.php'>Новости</a> ($news) <font color='red'>+$newsn</font>
- <a class='lef' href='/users.php'>Пользователи</a> ($us) <font color='red'>+$usn</font>
- <a class='lef' href='/admins.php'>Администрация</a> ($admin/$moder)
- <a class='lef' href='/online.php'>Кто онлайн?</a> ($uso)
- <a class='lef' href='/rules.php'>Законы</a>
- <a class='lef' href='/guestbook.php'>Беседка</a> ($bes) <font color='red'>+$besn</font>
- <a class='lef' href='/mnen.php'>Мнения</a> ($mnen) <font color='red'>+$mnenn</font>
- <a class='lef' href='/vote.php'>Опросы</a> ($vote) <font color='red'>+$voten</font>
- <a class='lef' href='/forum.php'>Форум</a> ($fo/$k) <font color='red'>+$fon</font> <font color='blue'>+$kn</font>
- <a class='lef' href='/obmen.php'>Обменник</a> ($ofo/$ok) <font color='red'>+$ofon</font> <font color='blue'>+$okn</font>
- <a class='lef' href='/chat.php'>Чат</a> ($chat) <font color='red'>+$chatn</font>
- <a class='lef' href='/bbcode.php'>BB-code</a><br>";
- if ($user)echo "<a class='lef' href='/exit.php'>Выйти</a>";*/
- if ($user)echo "<a class='lef' href='/kab.php'>Кабинет</a>";
- echo "<a class='lef' href='/news.php'>Новости</a>
- <a class='lef' href='/users.php'>Пользователи</a>
- <a class='lef' href='/admins.php'>Администрация</a>
- <a class='lef' href='/online.php'>Кто онлайн?</a>
- <a class='lef' href='/rules.php'>Законы</a>
- <a class='lef' href='/guestbook.php'>Беседка</a>
- <a class='lef' href='/mnen.php'>Мнения</a>
- <a class='lef' href='/vote.php'>Опросы</a>
- <a class='lef' href='/forum.php'>Форум</a>
- <a class='lef' href='/obmen.php'>Обменник</a>
- <a class='lef' href='/chat.php'>Чат</a>
- <a class='lef' href='/bbcode.php'>BB-code</a>";
- if ($user)echo "<a class='lef' href='/exit.php'>Выйти</a>";
- nodiv();
- ?>