X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=760e3771dbba40673c3bd08d59f737b7200c22f1;hb=a77cf3db1fbace39c49b030b9e144a316f007373;hp=cc24d3ddd4371309e11c5817c7cab5a6b8a9d4f7;hpb=7bac6c270a1674395831e6db316b383dde801810;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index cc24d3d..760e377 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -152,7 +152,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.1.2"; +$G_brisk_version = "5.1.3"; /* MLANG: ALL THE INFO STRINGS IN brisk.phh */ $root_wellarr = array( 'it' => array ( 'Brisk (Ver. '.$G_brisk_version.'), NOVITA\': comando /info e doppio click sugli utenti registrati, nuovi utenti apprendisti, info su numero di mani e di partite.', @@ -1660,13 +1660,13 @@ class Brisk $ret = 2; break; } - if (($user_item = $bdb->getitem_bylogin($user_login, $user_code)) == FALSE) { + if ($user_login == $user->name) { $ret = 3; + $mesg = sprintf($mlang_brisk['inf_self'][$G_lang]); break; } - if ($user_login == $user->name) { + if (($user_item = $bdb->getitem_bylogin($user_login, $user_code)) == FALSE) { $ret = 4; - $mesg = sprintf($mlang_brisk['inf_self'][$G_lang]); break; } if (($guar_item = $bdb->getitem_bycode($user_item->guar_code_get())) != FALSE) { @@ -1677,6 +1677,10 @@ class Brisk } $user_tos_vers = $user_item->tos_vers_get(); + if (($usernet_item = $bdb->usernet_bycode($user->code, $user_item->code)) == FALSE) { + $usernet_item = $bdb->usernet_default($user->code, $user_item->code); + } + if (versions_cmp($user_tos_vers, "1.2") < 0) { $mesg = sprintf($mlang_brisk['tos_old'][$G_lang], xcape($user_login)); } @@ -1704,8 +1708,8 @@ class Brisk "Normale" : "Stato sconosciuto"))), "guar" => ($user_item->type & USER_FLAG_TY_APPR ? "" : $guar_login), - "match" => $user_item->match_cnt, - "game" => $user_item->game_cnt, + "match" => (versions_cmp($user_tos_vers, "1.4") < 0 ? "non autorizzato" : $user_item->match_cnt) , + "game" => (versions_cmp($user_tos_vers, "1.4") < 0 ? "non autorizzato" : $user_item->game_cnt), "friend" => "unknown")); }