mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 20:40:13 +01:00
online users fix
This commit is contained in:
parent
3f4962990d
commit
792eb156de
@ -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;
|
||||||
|
|
||||||
|
@ -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">
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user