| 9 |
*/ |
*/ |
| 10 |
|
|
| 11 |
#include "bbs.h" |
#include "bbs.h" |
| 12 |
|
#include "bwf.h" |
| 13 |
#include "database.h" |
#include "database.h" |
| 14 |
#include "editor.h" |
#include "editor.h" |
| 15 |
#include "io.h" |
#include "io.h" |
| 23 |
#include <stdlib.h> |
#include <stdlib.h> |
| 24 |
#include <sys/param.h> |
#include <sys/param.h> |
| 25 |
|
|
|
#define BBS_user_intro_line_len 256 |
|
|
|
|
| 26 |
int user_intro_edit(int uid) |
int user_intro_edit(int uid) |
| 27 |
{ |
{ |
| 28 |
MYSQL *db = NULL; |
MYSQL *db = NULL; |
| 102 |
goto cleanup; |
goto cleanup; |
| 103 |
} |
} |
| 104 |
|
|
| 105 |
|
if (check_badwords(intro, '*') < 0) |
| 106 |
|
{ |
| 107 |
|
log_error("check_badwords(introduction) error\n"); |
| 108 |
|
ret = -3; |
| 109 |
|
goto cleanup; |
| 110 |
|
} |
| 111 |
|
|
| 112 |
lml_render(intro, intro_f, sizeof(intro_f), SCREEN_COLS, 0); |
lml_render(intro, intro_f, sizeof(intro_f), SCREEN_COLS, 0); |
| 113 |
|
|
| 114 |
lines = split_data_lines(intro_f, SCREEN_COLS + 1, line_offsets, BBS_user_intro_max_line + 2, 1, NULL); |
lines = split_data_lines(intro_f, SCREEN_COLS + 1, line_offsets, BBS_user_intro_max_line + 2, 1, NULL); |
| 130 |
press_any_key(); |
press_any_key(); |
| 131 |
goto cleanup; |
goto cleanup; |
| 132 |
case 'E': |
case 'E': |
| 133 |
|
ch = 'E'; |
| 134 |
continue; |
continue; |
| 135 |
default: // Invalid selection |
default: // Invalid selection |
| 136 |
continue; |
continue; |