mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:47:02 +02:00
added online users feature
This commit is contained in:
@ -26,6 +26,13 @@
|
||||
<th><?php print $text_swap_usage; ?>:</th>
|
||||
<td><div class="progress <?php if($swapinfo < HEALTH_RATIO) { ?>progress-success<?php } else { ?>progress-danger<?php } ?>"><div class="bar" style="width: <?php print $swapinfo; ?>%"></div> <?php print $swapinfo; ?>% / <?php print $totalswap; ?> MB</div></td>
|
||||
</tr>
|
||||
|
||||
<?php if(ENABLE_SAAS == 1) { ?>
|
||||
<tr>
|
||||
<th class="span4"><?php print $text_online_users; ?>:</th>
|
||||
<td class="span8"><a href="index.php?route=stat/online"><?php print $num_of_online_users; ?></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
</table>
|
||||
|
||||
|
30
webui/view/theme/default/templates/stat/online.tpl
Normal file
30
webui/view/theme/default/templates/stat/online.tpl
Normal file
@ -0,0 +1,30 @@
|
||||
|
||||
<h4><?php print $text_online_users; ?></h4>
|
||||
|
||||
<div class="listarea">
|
||||
|
||||
<?php if(isset($users)){ ?>
|
||||
|
||||
<table id="ss1" class="table table-striped table-condensed">
|
||||
<tr>
|
||||
<th class="domaincell"><?php print $text_username; ?></th>
|
||||
<th class="domaincell"><?php print $text_ipaddr; ?></th>
|
||||
<th class="domaincell"><?php print $text_logged_in; ?></th>
|
||||
<th class="domaincell"><?php print $text_last_activity; ?></th>
|
||||
</tr>
|
||||
|
||||
<?php foreach($users as $user) { ?>
|
||||
<tr>
|
||||
<td class="domaincell"><?php print $user['username']; ?></td>
|
||||
<td class="domaincell"><?php print $user['ipaddr']; ?></td>
|
||||
<td class="domaincell"><?php print date("Y.m.d. G:i:s", $user['ts']); ?></td>
|
||||
<td class="domaincell"><?php print date("Y.m.d. G:i:s", $user['last_activity']); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
</table>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user