/[LeafOK_CVS]/lbbs/src/user_priv.c
ViewVC logotype

Diff of /lbbs/src/user_priv.c

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

Revision 1.14 by sysadm, Tue May 20 08:22:41 2025 UTC Revision 1.15 by sysadm, Mon May 26 02:56:59 2025 UTC
# Line 21  Line 21 
21  #include "log.h"  #include "log.h"
22  #include <stdio.h>  #include <stdio.h>
23  #include <mysql.h>  #include <mysql.h>
24    #include <stdlib.h>
25    
26  BBS_user_priv BBS_priv;  BBS_user_priv BBS_priv;
27    
# Line 85  int load_priv(MYSQL *db, BBS_user_priv * Line 86  int load_priv(MYSQL *db, BBS_user_priv *
86                          uid);                          uid);
87          if (mysql_query(db, sql) != 0)          if (mysql_query(db, sql) != 0)
88          {          {
89                  log_error("Query user_list failed\n");                  log_error("Query user_list error: %s\n", mysql_error(db));
90                  return -1;                  return -1;
91          }          }
92          if ((rs = mysql_store_result(db)) == NULL)          if ((rs = mysql_store_result(db)) == NULL)
# Line 106  int load_priv(MYSQL *db, BBS_user_priv * Line 107  int load_priv(MYSQL *db, BBS_user_priv *
107                          uid);                          uid);
108          if (mysql_query(db, sql) != 0)          if (mysql_query(db, sql) != 0)
109          {          {
110                  log_error("Query admin_config failed\n");                  log_error("Query admin_config error: %s\n", mysql_error(db));
111                  return -1;                  return -1;
112          }          }
113          if ((rs = mysql_store_result(db)) == NULL)          if ((rs = mysql_store_result(db)) == NULL)
# Line 129  int load_priv(MYSQL *db, BBS_user_priv * Line 130  int load_priv(MYSQL *db, BBS_user_priv *
130                          uid);                          uid);
131          if (mysql_query(db, sql) != 0)          if (mysql_query(db, sql) != 0)
132          {          {
133                  log_error("Query section_master failed\n");                  log_error("Query section_master error: %s\n", mysql_error(db));
134                  return -1;                  return -1;
135          }          }
136          if ((rs = mysql_store_result(db)) == NULL)          if ((rs = mysql_store_result(db)) == NULL)
# Line 151  int load_priv(MYSQL *db, BBS_user_priv * Line 152  int load_priv(MYSQL *db, BBS_user_priv *
152                                   "ORDER BY SID");                                   "ORDER BY SID");
153          if (mysql_query(db, sql) != 0)          if (mysql_query(db, sql) != 0)
154          {          {
155                  log_error("Query section_config failed\n");                  log_error("Query section_config error: %s\n", mysql_error(db));
156                  return -1;                  return -1;
157          }          }
158          if ((rs = mysql_store_result(db)) == NULL)          if ((rs = mysql_store_result(db)) == NULL)
# Line 184  int load_priv(MYSQL *db, BBS_user_priv * Line 185  int load_priv(MYSQL *db, BBS_user_priv *
185                          uid);                          uid);
186          if (mysql_query(db, sql) != 0)          if (mysql_query(db, sql) != 0)
187          {          {
188                  log_error("Query ban_user_list failed\n");                  log_error("Query ban_user_list error: %s\n", mysql_error(db));
189                  return -1;                  return -1;
190          }          }
191          if ((rs = mysql_store_result(db)) == NULL)          if ((rs = mysql_store_result(db)) == NULL)


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

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