X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=1eb6f949d708211160a19afbc86a625b843dc685;hb=152b9a21a2a057869ed1f459ad375c9cb3396ea5;hp=a171273782a7f67b33ce115c68d427d4db0638a3;hpb=6d8db1ee47d3c0bb14133d3ab2e0a6bdc7ed60a0;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index a171273..1eb6f94 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -152,12 +152,12 @@ $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 = "4.18.5"; +$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\': Puffin riattivato, accessi da cloud disattivati, corretto bug sulla gestione di puffin, riabilitato blocco dei proxy.', +$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.', 'Se vuoi iscriverti alla Mailing List, cliccala!' ), - 'en' => array ( 'Brisk (Ver. '.$G_brisk_version.'), NEWS: Puffin re-enabled, cloud accesses disabled, fixed puffin mgmt bug, re-enabled proxy access block.', + 'en' => array ( 'Brisk (Ver. '.$G_brisk_version.'), NEWS: ENcomando /info e doppio click sugli utenti registrati, nuovi utenti apprendisti.', 'If you want to subscribe our Mailing List, click it!' ) ); $G_room_help = array( 'it' => ' @@ -1693,7 +1693,20 @@ class Brisk $jret = json_encode(array("ret" => $ret, "mesg" => $mesg)); } else { - $jret = json_encode(array("ret" => 0, "mesg" => "", "guar" => $guar_login)); + $jret = json_encode(array("ret" => 0, + "mesg" => "", + "login" => $user_login, + // FIXME: state internationalization + "state" => + ($user_item->type & USER_FLAG_TY_APPR ? "Apprendista" : + ($user_item->type & USER_FLAG_TY_CERT ? "Certificato" : + ($user_item->type & (USER_FLAG_TY_NORM | USER_FLAG_TY_SUPER) ? + "Normale" : "Stato sconosciuto"))), + "guar" => ($user_item->type & USER_FLAG_TY_APPR ? + "" : $guar_login), + "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")); } return $jret; @@ -2156,7 +2169,9 @@ class Brisk $to_user = sprintf('chatt_sub("%s",[%d,"%s"],"%s");', $dt, $user->flags, xcape($user->name), xcape("== chat ban ==")); } else { - if ( TRUE && (! $user->is_auth()) ) { + // TEMPORARY DISABLED UNTIL test user option will be available + // if ( TRUE && (!$user->is_auth() || $user->is_appr()) ) { + if (!$user->is_auth()) { $to_user = nickserv_msg($dt, xcape("Visto l'elevato numero di molestatori che ultimamente hanno preso dimora su Brisk abbiamo deciso")); $to_user .= nickserv_msg($dt, xcape("di disattivare temporaneamente la chat in room per i non registrati, non ce ne vogliate e buone feste.")); if (FALSE) {