Sourcecode in User/sysmgr_macros.js:
1: function sysmgr_statusflags_macro(param) {
2: // this macro is allowed just for sysadmins
3: if (!session.user.sysadmin)
4: return;
5: if (this.trusted)
6: res.write("<span class=\"flagDark\" style=\"background-color:#009900;\">TRUSTED</span>");
7: if (this.sysadmin)
8: res.write("<span class=\"flagDark\" style=\"background-color:#006600;\">SYSADMIN</span>");
9: if (this.blocked)
10: res.write("<span class=\"flagDark\" style=\"background-color:#000000;\">BLOCKED</span>");
11: return;
12: }
|