A new, object-oriented, better vesion of μForum
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
3.0 KiB

  1. <?php require_once('./templates/admin/overall_header.tpl.php'); ?>
  2. <script type="text/javascript">
  3. function confirm_action(c_name, url)
  4. {
  5. if (confirm(c_name))
  6. {
  7. document.location = url;
  8. }
  9. }
  10. </script>
  11. <div id="content">
  12. <span class="fsmall">
  13. <span style="font-weight: bold">Welcome in &micro;Forum Admin Control Panel!</span><br>
  14. Choose option from menu to manage forum.</span>
  15. <br><br>
  16. <div class="forum_table">
  17. <div class="row">
  18. <div class="hc1" style="width: 50%">Forum statistics</div>
  19. <div class="hc4">&nbsp;</div>
  20. </div>
  21. <div class="row">
  22. <div class="tc1 lc">
  23. Installation date:
  24. </div>
  25. <div class="tc4 rc">
  26. <span style="font-weight: bold"><?php echo $this->TPL['installation_date']; ?></span>
  27. </div>
  28. </div>
  29. <div class="row">
  30. <div class="tc1 lc">
  31. Topics total:
  32. </div>
  33. <div class="tc4 rc">
  34. <span style="font-weight: bold"><?php echo $this->TPL['topics_total']; ?></span>
  35. </div>
  36. </div>
  37. <div class="row">
  38. <div class="tc1 lc">
  39. Posts total:
  40. </div>
  41. <div class="tc4 rc">
  42. <span style="font-weight: bold"><?php echo $this->TPL['posts_total']; ?></span>
  43. </div>
  44. </div>
  45. <div class="row">
  46. <div class="tc1 lc">
  47. Users total:
  48. </div>
  49. <div class="tc4 rc">
  50. <span style="font-weight: bold"><?php echo $this->TPL['users_total']; ?></span>
  51. </div>
  52. </div>
  53. <div class="row">
  54. <div class="tc1 lc">
  55. Logged users total (last 5 min):
  56. </div>
  57. <div class="tc4 rc">
  58. <span style="font-weight: bold"><?php echo $this->TPL['logged_users_total']; ?></span>
  59. </div>
  60. </div>
  61. <div class="row">
  62. <div class="tc1 lc">
  63. Script version:
  64. </div>
  65. <div class="tc4 rc">
  66. <span style="font-weight: bold"><?php echo $this->TPL['script_version']; ?></span>
  67. </div>
  68. </div>
  69. <div class="row">
  70. <div class="tc1 lc">
  71. Updates:
  72. </div>
  73. <div class="tc4 rc">
  74. <span style="font-weight: bold">in future...</span>
  75. </div>
  76. </div>
  77. </div>
  78. <br>
  79. <div class="forum_table">
  80. <div class="row">
  81. <div class="hc1"">Logged users (last 5 min)</div>
  82. <div class="hc3">&nbsp;</div>
  83. <div class="hc4">&nbsp;</div>
  84. </div>
  85. <div class="row">
  86. <div class="tc1 tab_desc">Username</div>
  87. <div class="tc3 tab_desc">Rank</div>
  88. <div class="tc4 tab_desc">IP</div>
  89. </div>
  90. <?php
  91. for ($i=0; $i < count($this->TPL['logged_users']); $i++)
  92. {
  93. echo '
  94. <div class="row">
  95. <div class="tc1 tc2">'.$this->TPL['logged_users'][$i]['nick'].'</div>
  96. <div class="tc3">'.$this->getRankLevel($this->TPL['logged_users'][$i]['rank']).'</div>
  97. <div class="tc4">'.$this->TPL['logged_users'][$i]['IP'].'</div>
  98. </div>';
  99. }
  100. if (count($this->TPL['logged_users']) == 0)
  101. echo '<div class="rcol">No logged users.</div>';
  102. ?>
  103. </div>
  104. </div>
  105. <?php require_once('./templates/overall_footer.tpl.php'); ?>