| 64 |
int ret; |
int ret; |
| 65 |
int i; |
int i; |
| 66 |
|
|
| 67 |
|
if (p_user_info == NULL) |
| 68 |
|
{ |
| 69 |
|
log_error("NULL pointer error\n"); |
| 70 |
|
return -1; |
| 71 |
|
} |
| 72 |
|
|
| 73 |
article_cnt = get_user_article_cnt(p_user_info->uid); |
article_cnt = get_user_article_cnt(p_user_info->uid); |
| 74 |
|
|
| 75 |
astro_name = get_astro_name(p_user_info->birthday); |
astro_name = get_astro_name(p_user_info->birthday); |
| 163 |
user_level = get_user_level(p_user_info->exp); |
user_level = get_user_level(p_user_info->exp); |
| 164 |
user_level_name = get_user_level_name(user_level); |
user_level_name = get_user_level_name(user_level); |
| 165 |
|
|
| 166 |
intro_len = lml_render(p_user_info->intro, intro_f, sizeof(intro_f), 0); |
intro_len = lml_render(p_user_info->intro, intro_f, sizeof(intro_f), SCREEN_COLS + 1, 0); |
| 167 |
|
|
| 168 |
snprintf(user_info_f, sizeof(user_info_f), |
snprintf(user_info_f, sizeof(user_info_f), |
| 169 |
"\n%s (%s) 上站 [%d] 发文 [%d]\n" |
"\n%s (%s) 上站 [%d] 发文 [%d]\n" |
| 178 |
(intro_len > 0 ? "\033[0;36m个人说明档如下:\033[m" : "\033[0;36m没有个人说明档\033[m"), |
(intro_len > 0 ? "\033[0;36m个人说明档如下:\033[m" : "\033[0;36m没有个人说明档\033[m"), |
| 179 |
intro_f); |
intro_f); |
| 180 |
|
|
| 181 |
lines = split_data_lines(user_info_f, SCREEN_COLS, line_offsets, MIN(SCREEN_ROWS - 1, BBS_user_intro_max_line + 8), 1, NULL); |
lines = split_data_lines(user_info_f, SCREEN_COLS + 1, line_offsets, MIN(SCREEN_ROWS - 1, BBS_user_intro_max_line + 8), 1, NULL); |
| 182 |
|
|
| 183 |
clearscr(); |
clearscr(); |
| 184 |
display_data(user_info_f, lines, line_offsets, 1, display_user_info_key_handler, DATA_READ_HELP); |
display_data(user_info_f, lines, line_offsets, 1, display_user_info_key_handler, DATA_READ_HELP); |