X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fuser.phh;h=96706b83fa3fd8c7dfe533d569411baba4346d63;hb=8507128d38073666f0e778b16fb691a3bc9ef0e7;hp=5ef9d9cd5698a9947904cb2c760eb5cfdc23bef9;hpb=8b9c2b3ec59baef7c9f64f9663347bc5b9cf69fe;p=brisk.git
diff --git a/web/Obj/user.phh b/web/Obj/user.phh
index 5ef9d9c..96706b8 100644
--- a/web/Obj/user.phh
+++ b/web/Obj/user.phh
@@ -562,9 +562,17 @@ class User {
// 4 -> is certified
// 2 -> is authorized
// 1 -> is myself
- $class_id = (($this->flags & USER_FLAG_TY_CERT) >> 16) | ($this->flags & USER_FLAG_AUTH) | 1;
-
- return (sprintf('$("myname").innerHTML = "%s";', $class_id,
+ $class_ids = (($this->flags & USER_FLAG_TY_CERT) >> 16) | ($this->flags & USER_FLAG_AUTH) | 1;
+ $sp = "";
+ $cl = "";
+
+ for ($i = 0 ; $i < 3 ; $i++) {
+ if ($class_ids & (1 << $i)) {
+ $cl .= sprintf("%sau%d", $sp, $i);
+ $sp = " ";
+ }
+ }
+ return (sprintf('$("myname").innerHTML = "%s";', $cl,
xcape($this->name,ENT_COMPAT,"UTF-8")));
}