From 792eb156de2a04bf57252551c99e34e18f8beeaa Mon Sep 17 00:00:00 2001 From: SJ Date: Thu, 25 Jul 2013 14:38:44 +0200 Subject: [PATCH] online users fix --- util/db-upgrade-0.1.23-vs-0.1.24.sql | 5 +++-- webui/view/theme/default/templates/stat/online.tpl | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/util/db-upgrade-0.1.23-vs-0.1.24.sql b/util/db-upgrade-0.1.23-vs-0.1.24.sql index 3f22dbb3..42ad4c28 100644 --- a/util/db-upgrade-0.1.23-vs-0.1.24.sql +++ b/util/db-upgrade-0.1.23-vs-0.1.24.sql @@ -26,9 +26,10 @@ create table if not exists `customer_settings` ( ) Engine=InnoDB; create table if not exists `online` ( - `username` varchar(255) not null unique, + `username` varchar(255) not null, `ts` int default 0, `last_activity` int default 0, - `ipaddr` varchar(255) default null + `ipaddr` varchar(255) default null, + unique(`username`,`ipaddr`) ) Engine=InnoDB; diff --git a/webui/view/theme/default/templates/stat/online.tpl b/webui/view/theme/default/templates/stat/online.tpl index 553645f0..2d09e95c 100644 --- a/webui/view/theme/default/templates/stat/online.tpl +++ b/webui/view/theme/default/templates/stat/online.tpl @@ -1,5 +1,5 @@ -

+

, : sec