Просмотр файла inc/left.menu.php

Размер файла: 3.89Kb
  1. <?php
  2. $bes=mysql_num_rows(mysql_query("SELECT `id` FROM `guestbook`"));
  3. $besn=mysql_num_rows(mysql_query("SELECT `id` FROM `guestbook` WHERE `time` > '".(time()-84400)."'"));
  4. $mnen=mysql_num_rows(mysql_query("SELECT `id` FROM `mnen`"));
  5. $mnenn=mysql_num_rows(mysql_query("SELECT `id` FROM `mnen` WHERE `time` > '".(time()-84400)."'"));
  6. $chat=mysql_num_rows(mysql_query("SELECT `id` FROM `chat`"));
  7. $chatn=mysql_num_rows(mysql_query("SELECT `id` FROM `chat` WHERE `time` > '".(time()-84400)."'"));
  8. $news=mysql_num_rows(mysql_query("SELECT `id` FROM `news`"));
  9. $newsn=mysql_num_rows(mysql_query("SELECT `id` FROM `news` WHERE `time` > '".(time()-84400)."'"));
  10. $vote=mysql_num_rows(mysql_query("SELECT `id` FROM `user_vote`"));
  11. $voten=mysql_num_rows(mysql_query("SELECT `id` FROM `user_vote` WHERE `time` > '".(time()-84400)."'"));
  12. $fo=mysql_num_rows(mysql_query("SELECT `id` FROM `forum`"));
  13. $fon=mysql_num_rows(mysql_query("SELECT `id` FROM `forum` WHERE `time` > '".(time()-84400)."'"));
  14. $k=mysql_num_rows(mysql_query("SELECT `id` FROM `forum_komm`"));
  15. $kn=mysql_num_rows(mysql_query("SELECT `id` FROM `forum_komm` WHERE `time` > '".(time()-84400)."'"));
  16. $ofo=mysql_num_rows(mysql_query("SELECT `id` FROM `obmen`"));
  17. $ofon=mysql_num_rows(mysql_query("SELECT `id` FROM `obmen` WHERE `time` > '".(time()-84400)."'"));
  18. $ok=mysql_num_rows(mysql_query("SELECT `id` FROM `obmen_komm`"));
  19. $okn=mysql_num_rows(mysql_query("SELECT `id` FROM `obmen_komm` WHERE `time` > '".(time()-84400)."'"));
  20. $us=mysql_num_rows(mysql_query("SELECT `id` FROM `user`"));
  21. $usn=mysql_num_rows(mysql_query("SELECT `id` FROM `user` WHERE `reg` > '".(time()-84400)."'"));
  22. $uso=mysql_num_rows(mysql_query("SELECT `id` FROM `user` WHERE `click` > '".(time()-600)."'"));
  23. $admin=mysql_num_rows(mysql_query("SELECT `id` FROM `user` WHERE `admin` = '1'"));
  24. $moder=mysql_num_rows(mysql_query("SELECT `id` FROM `user` WHERE `moder` = '1'"));
  25. echo "<div class='left' height='100%'>";
  26. /*if ($user)echo "<a class='lef' href='/kab.php'>Кабинет</a><br>";
  27. echo "<a class='lef' href='/news.php'>Новости</a> ($news) <font color='red'>+$newsn</font>
  28. <a class='lef' href='/users.php'>Пользователи</a> ($us) <font color='red'>+$usn</font>
  29. <a class='lef' href='/admins.php'>Администрация</a> ($admin/$moder)
  30. <a class='lef' href='/online.php'>Кто онлайн?</a> ($uso)
  31. <a class='lef' href='/rules.php'>Законы</a>
  32. <a class='lef' href='/guestbook.php'>Беседка</a> ($bes) <font color='red'>+$besn</font>
  33. <a class='lef' href='/mnen.php'>Мнения</a> ($mnen) <font color='red'>+$mnenn</font>
  34. <a class='lef' href='/vote.php'>Опросы</a> ($vote) <font color='red'>+$voten</font>
  35. <a class='lef' href='/forum.php'>Форум</a> ($fo/$k) <font color='red'>+$fon</font> <font color='blue'>+$kn</font>
  36. <a class='lef' href='/obmen.php'>Обменник</a> ($ofo/$ok) <font color='red'>+$ofon</font> <font color='blue'>+$okn</font>
  37. <a class='lef' href='/chat.php'>Чат</a> ($chat) <font color='red'>+$chatn</font>
  38. <a class='lef' href='/bbcode.php'>BB-code</a><br>";
  39. if ($user)echo "<a class='lef' href='/exit.php'>Выйти</a>";*/
  40. if ($user)echo "<a class='lef' href='/kab.php'>Кабинет</a>";
  41. echo "<a class='lef' href='/news.php'>Новости</a>
  42. <a class='lef' href='/users.php'>Пользователи</a>
  43. <a class='lef' href='/admins.php'>Администрация</a>
  44. <a class='lef' href='/online.php'>Кто онлайн?</a>
  45. <a class='lef' href='/rules.php'>Законы</a>
  46. <a class='lef' href='/guestbook.php'>Беседка</a>
  47. <a class='lef' href='/mnen.php'>Мнения</a>
  48. <a class='lef' href='/vote.php'>Опросы</a>
  49. <a class='lef' href='/forum.php'>Форум</a>
  50. <a class='lef' href='/obmen.php'>Обменник</a>
  51. <a class='lef' href='/chat.php'>Чат</a>
  52. <a class='lef' href='/bbcode.php'>BB-code</a>";
  53. if ($user)echo "<a class='lef' href='/exit.php'>Выйти</a>";
  54. nodiv();
  55. ?>