/[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.5 by sysadm, Tue Jun 3 05:33:06 2025 UTC Revision 1.8 by sysadm, Tue Nov 4 13:49:50 2025 UTC
# Line 1  Line 1 
1  /***************************************************************************  /* SPDX-License-Identifier: GPL-3.0-or-later */
2                                                    user_priv.h  -  description  /*
3                                                           -------------------   * user_priv
4          Copyright            : (C) 2004-2025 by Leaflet   *   - basic operations of user privilege
5          Email                : leaflet@leafok.com   *
6   ***************************************************************************/   * Copyright (C) 2004-2025 by Leaflet <leaflet@leafok.com>
7     */
 /***************************************************************************  
  *                                                                         *  
  *   This program is free software; you can redistribute it and/or modify  *  
  *   it under the terms of the GNU General Public License as published by  *  
  *   the Free Software Foundation; either version 3 of the License, or     *  
  *   (at your option) any later version.                                   *  
  *                                                                         *  
  ***************************************************************************/  
8    
9  #ifndef _USER_PRIV_H_  #ifndef _USER_PRIV_H_
10  #define _USER_PRIV_H_  #define _USER_PRIV_H_
# Line 32  Line 24 
24  #define S_ALL 0xff  #define S_ALL 0xff
25  #define S_DEFAULT 0x3 // 0x1 | 0x2  #define S_DEFAULT 0x3 // 0x1 | 0x2
26    
27  #define P_GUEST 0x0             //游客  #define P_GUEST 0x0 // 娓稿
28  #define P_USER 0x1              //普通用户  #define P_USER 0x1      // 鏅氱敤鎴
29  //#define P_AUTH_USER 0x2 // Reserved  // #define P_AUTH_USER 0x2 // Reserved
30  #define P_MAN_S 0x4             //副版主  #define P_MAN_S 0x4        // 鍓増涓
31  #define P_MAN_M 0x8             //正版主  #define P_MAN_M 0x8        // 姝g増涓
32  #define P_MAN_C 0x10    // Reserved  #define P_MAN_C 0x10   // Reserved
33  #define P_ADMIN_S 0x20  //副系统管理员  #define P_ADMIN_S 0x20 // 鍓郴缁熺鐞嗗憳
34  #define P_ADMIN_M 0x40  //主系统管理员  #define P_ADMIN_M 0x40 // 涓荤郴缁熺鐞嗗憳
35    
36  struct user_priv  struct user_priv
37  {  {
38          long int uid;          int uid;
39          int level;          int level;
40          int g_priv;          int g_priv;
41          struct          struct
# Line 93  inline int is_favor(BBS_user_priv *p_pri Line 85  inline int is_favor(BBS_user_priv *p_pri
85          return is_favor;          return is_favor;
86  }  }
87    
88  extern int load_priv(MYSQL *db, BBS_user_priv *p_priv, long int uid);  extern int load_priv(MYSQL *db, BBS_user_priv *p_priv, int uid);
89    
90  #endif //_USER_PRIV_H_  #endif //_USER_PRIV_H_


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

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