X-Git-Url: http://mop.ddnsfree.com/gitweb/?p=brisk.git;a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=f044b4a9509919d87b18b2f949284bf26fe4f17c;hp=a171273782a7f67b33ce115c68d427d4db0638a3;hb=29386faba01ac22d3d47e5f467412dc63b4e22cf;hpb=87b83b41e162ae16167a719d0f897025fa2d1760 diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index a171273..f044b4a 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -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" => $user_item->match_cnt, + "game" => $user_item->game_cnt, + "friend" => "unknown")); } return $jret;