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