/[LeafOK_CVS]/lbbs/include/user_priv.h
ViewVC logotype

Diff of /lbbs/include/user_priv.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 by sysadm, Tue Nov 4 14:58:56 2025 UTC Revision 1.10 by sysadm, Wed Nov 5 00:49:41 2025 UTC
# Line 13  Line 13 
13  #include <mysql/mysql.h>  #include <mysql/mysql.h>
14    
15  // User privilege  // User privilege
16  #define S_NONE 0x0  enum user_priv_t
17  #define S_LIST 0x1  {
18  #define S_GETEXP 0x2          S_NONE = 0x0,
19  #define S_POST 0x4          S_LIST = 0x1,
20  #define S_MSG 0x8          S_GETEXP = 0x2,
21  #define S_MAN_S 0x20          S_POST = 0x4,
22  #define S_MAN_M 0x60 //(0x40 | 0x20)          S_MSG = 0x8,
23  #define S_ADMIN 0xe0 //(0x80 | 0x40 | 0x20)          S_MAN_S = 0x20,
24  #define S_ALL 0xff          S_MAN_M = 0x60, //(0x40 | 0x20)
25  #define S_DEFAULT 0x3 // 0x1 | 0x2          S_ADMIN = 0xe0, //(0x80 | 0x40 | 0x20)
26            S_ALL = 0xff,
27            S_DEFAULT = 0x3, // 0x1 | 0x2
28    };
29    
30  #define P_GUEST 0x0 // 游客  enum user_level_t
31  #define P_USER 0x1      // 普通用户  {
32  // #define P_AUTH_USER 0x2 // Reserved          P_GUEST = 0x0,     // 游客
33  #define P_MAN_S 0x4        // 副版主          P_USER = 0x1,      // 普通用户
34  #define P_MAN_M 0x8        // 正版主          P_AUTH_USER = 0x2, // Reserved
35  #define P_MAN_C 0x10   // Reserved          P_MAN_S = 0x4,     // 副版主
36  #define P_ADMIN_S 0x20 // 副系统管理员          P_MAN_M = 0x8,     // 正版主
37  #define P_ADMIN_M 0x40 // 主系统管理员          P_MAN_C = 0x10,    // Reserved
38            P_ADMIN_S = 0x20,  // 副系统管理员
39            P_ADMIN_M = 0x40,  // 主系统管理员
40    };
41    
42  struct user_priv  struct user_priv
43  {  {


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1