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

Diff of /lbbs/src/login.c

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

Revision 1.34 by sysadm, Mon May 26 12:06:05 2025 UTC Revision 1.36 by sysadm, Tue Jun 3 05:33:06 2025 UTC
# Line 27  Line 27 
27  #include <errno.h>  #include <errno.h>
28  #include <ctype.h>  #include <ctype.h>
29  #include <string.h>  #include <string.h>
 #include <mysql.h>  
30  #include <regex.h>  #include <regex.h>
31  #include <stdlib.h>  #include <stdlib.h>
32  #include <unistd.h>  #include <unistd.h>
33    #include <mysql/mysql.h>
34    
35  int bbs_login(MYSQL *db)  int bbs_login(MYSQL *db)
36  {  {
# Line 59  int bbs_login(MYSQL *db) Line 59  int bbs_login(MYSQL *db)
59    
60                  if (strcmp(username, "new") == 0)                  if (strcmp(username, "new") == 0)
61                  {                  {
62                          display_file_ex(DATA_REGISTER, 1, 1);                          display_file(DATA_REGISTER, 1, 1);
63    
64                          return 0;                          return 0;
65                  }                  }
# Line 81  int bbs_login(MYSQL *db) Line 81  int bbs_login(MYSQL *db)
81    
82          if (!ok)          if (!ok)
83          {          {
84                  display_file_ex(DATA_LOGIN_ERROR, 1, 1);                  display_file(DATA_LOGIN_ERROR, 1, 1);
85                  return -1;                  return -1;
86          }          }
87    


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

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