From: Matteo Nastasi Date: Tue, 31 Mar 2020 11:45:57 +0000 (+0200) Subject: refine ping management X-Git-Tag: v5.8.0~9 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=40b5a7235f7f8b76269b46e198fb7a03e64a86e8;p=brisk.git refine ping management --- diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index f30af68..dbe0eca 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -1373,7 +1373,7 @@ class Brisk if ($user_cur->is_active() == FALSE) continue; - if ($user_cur->lacc + (($user_cur->ping_req ? 2 : 1) * EXPIRE_TIME_RD) < ($curtime - $delta)) { + if ($user_cur->lacc + (($user_cur->ping_req ? 1.5 : 1.0) * EXPIRE_TIME_RD) < ($curtime - $delta)) { // Auto logout dell'utente log_rd2("AUTO LOGOUT.".($user_cur->lacc + EXPIRE_TIME_RD)." curtime - delta ".($curtime - $delta)); diff --git a/web/brisk.css b/web/brisk.css index 81dfb02..de30c26 100644 --- a/web/brisk.css +++ b/web/brisk.css @@ -32,7 +32,7 @@ body { background-color: #fafafa; background-attachment: fixed; margin: 0px; - height: 800px; + /* height: 800px; */ padding: 0px; align: center; diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index dd8e5c8..72bd500 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -1201,7 +1201,7 @@ class Bin5 { ($user_cur->stat == 'table' && ($user_cur->subst == 'shutdowned' || $user_cur->subst == 'shutdowner'))) continue; - if ($user_cur->lacc + EXPIRE_TIME_RD < ($curtime - $delta)) { // Auto logout dell'utente + if ($user_cur->lacc + (($user_cur->ping_req ? 1.5 : 1.0) * EXPIRE_TIME_RD) < ($curtime - $delta)) { // Auto logout dell'utente log_rd2($user_cur->sess." bin5 AUTO LOGOUT."); if ($user_cur->stat == 'table') {