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.
 
 
 

112 lines
3.0 KiB

<?php require_once('./templates/admin/overall_header.tpl.php'); ?>
<script type="text/javascript">
function confirm_action(c_name, url)
{
if (confirm(c_name))
{
document.location = url;
}
}
</script>
<div id="content">
<span class="fsmall">
<span style="font-weight: bold">Welcome in &micro;Forum Admin Control Panel!</span><br>
Choose option from menu to manage forum.</span>
<br><br>
<div class="forum_table">
<div class="row">
<div class="hc1" style="width: 50%">Forum statistics</div>
<div class="hc4">&nbsp;</div>
</div>
<div class="row">
<div class="tc1 lc">
Installation date:
</div>
<div class="tc4 rc">
<span style="font-weight: bold"><?php echo $this->TPL['installation_date']; ?></span>
</div>
</div>
<div class="row">
<div class="tc1 lc">
Topics total:
</div>
<div class="tc4 rc">
<span style="font-weight: bold"><?php echo $this->TPL['topics_total']; ?></span>
</div>
</div>
<div class="row">
<div class="tc1 lc">
Posts total:
</div>
<div class="tc4 rc">
<span style="font-weight: bold"><?php echo $this->TPL['posts_total']; ?></span>
</div>
</div>
<div class="row">
<div class="tc1 lc">
Users total:
</div>
<div class="tc4 rc">
<span style="font-weight: bold"><?php echo $this->TPL['users_total']; ?></span>
</div>
</div>
<div class="row">
<div class="tc1 lc">
Logged users total (last 5 min):
</div>
<div class="tc4 rc">
<span style="font-weight: bold"><?php echo $this->TPL['logged_users_total']; ?></span>
</div>
</div>
<div class="row">
<div class="tc1 lc">
Script version:
</div>
<div class="tc4 rc">
<span style="font-weight: bold"><?php echo $this->TPL['script_version']; ?></span>
</div>
</div>
<div class="row">
<div class="tc1 lc">
Updates:
</div>
<div class="tc4 rc">
<span style="font-weight: bold">in future...</span>
</div>
</div>
</div>
<br>
<div class="forum_table">
<div class="row">
<div class="hc1"">Logged users (last 5 min)</div>
<div class="hc3">&nbsp;</div>
<div class="hc4">&nbsp;</div>
</div>
<div class="row">
<div class="tc1 tab_desc">Username</div>
<div class="tc3 tab_desc">Rank</div>
<div class="tc4 tab_desc">IP</div>
</div>
<?php
for ($i=0; $i < count($this->TPL['logged_users']); $i++)
{
echo '
<div class="row">
<div class="tc1 tc2">'.$this->TPL['logged_users'][$i]['nick'].'</div>
<div class="tc3">'.$this->getRankLevel($this->TPL['logged_users'][$i]['rank']).'</div>
<div class="tc4">'.$this->TPL['logged_users'][$i]['IP'].'</div>
</div>';
}
if (count($this->TPL['logged_users']) == 0)
echo '<div class="rcol">No logged users.</div>';
?>
</div>
</div>
<?php require_once('./templates/overall_footer.tpl.php'); ?>