| 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 |
{ |
{ |
| 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 |
} |
} |
| 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 |
|
|