online users fix

This commit is contained in:
SJ 2013-07-25 14:38:44 +02:00
parent 3f4962990d
commit 792eb156de
2 changed files with 4 additions and 3 deletions

View File

@ -26,9 +26,10 @@ create table if not exists `customer_settings` (
) Engine=InnoDB; ) Engine=InnoDB;
create table if not exists `online` ( create table if not exists `online` (
`username` varchar(255) not null unique, `username` varchar(255) not null,
`ts` int default 0, `ts` int default 0,
`last_activity` int default 0, `last_activity` int default 0,
`ipaddr` varchar(255) default null `ipaddr` varchar(255) default null,
unique(`username`,`ipaddr`)
) Engine=InnoDB; ) Engine=InnoDB;

View File

@ -1,5 +1,5 @@
<h4><?php print $text_online_users; ?></h4> <h4><?php print $text_online_users; ?>, <?php print $text_refresh_period; ?>: <?php print HEALTH_REFRESH; ?> sec</h4>
<div class="listarea"> <div class="listarea">