X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=4be9c87a8aec89633dd3172838297827b5310afd;hb=refs%2Fheads%2Fadd-profile;hp=9c20af1f3a87874f0cac641953ab63846e08510c;hpb=e115b9ba20f9a2f08dffd806eb8b6ebc77ddb6cf;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 9c20af1..4be9c87 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -153,7 +153,7 @@ $mlang_brisk = array( 'btn_backstand'=> array( 'it' => 'torna in piedi', $G_lng = langtolng($G_lang); $G_all_points = array( 11,10,4,3,2, 0,0,0,0,0 ); -$G_brisk_version = "5.6.0"; +$G_brisk_version = "5.7.0"; /* MLANG: ALL THE INFO STRINGS IN brisk.phh */ $root_wellarr = array( 'it' => array ( 'Brisk (Ver. '.$G_brisk_version.'), NOVITA\': dati dai client via web-socket.', @@ -1373,7 +1373,7 @@ class Brisk if ($user_cur->is_active() == FALSE) continue; - if ($user_cur->lacc + 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)); @@ -3354,9 +3354,9 @@ function log_legal($curtime, $addr, $user, $where, $mesg) if (($fp = @fopen(LEGAL_PATH."/legal.log", 'a')) != FALSE) { /* Unix time | session | nickname | IP | where was | mesg */ - fwrite($fp, sprintf("%ld|%s|%s|%s|%s|%s|%s|\n", $curtime, $user->sess, - ($user->is_auth() ? 'A' : 'N'), - $user->name, $addr, $where , $mesg)); + fwrite($fp, sprintf("%ld|%s|%s|%s|%s|%s|%s|\n", $curtime, ($user ? $user->sess : "NOSESS"), + ($user ? ($user->is_auth() ? 'A' : 'N') : "U"), + ($user ? $user->name : "NO-USER"), $addr, $where , $mesg)); fclose($fp); } }