X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fuser.phh;h=99952e48d0f18b207c267f4959dc2ea3e16b92cf;hb=7f9618888f9963c4a7daebeb9e3d14ef0a56b968;hp=3ca1f97d6f7aad42a62dcff89cfc44c0dc2036c8;hpb=7f526939ded24298104cacd02b5f364bcc7bfa56;p=brisk.git diff --git a/web/Obj/user.phh b/web/Obj/user.phh index 3ca1f97..99952e4 100644 --- a/web/Obj/user.phh +++ b/web/Obj/user.phh @@ -345,6 +345,11 @@ class User { return ($thiz); } + function is_appr() + { + return ($this->flags & USER_FLAG_TY_APPR); + } + function is_auth() { return ($this->flags & USER_FLAG_AUTH); @@ -918,5 +923,19 @@ function chunked_fini() } // end class User +if (!isset($__usersnet_friend_map)) { + $__usersnet_friend_map = array("black", "unknown", "test", "friend", "bff"); +} + +function usersnet_friend_getlabel($id) +{ + GLOBAL $__usersnet_friend_map; + + $id_i = intval($id); + if ($id_i < 0 || $id_i >= count($__usersnet_friend_map)) { + return FALSE; + } + return ($__usersnet_friend_map[$id_i]); +} ?>