| 153 |
u_anonymous++; |
u_anonymous++; |
| 154 |
|
|
| 155 |
// Display logo |
// Display logo |
| 156 |
display_file_ex(DATA_WELCOME, 1, 0); |
display_file(DATA_WELCOME, 1, 2); |
| 157 |
|
|
| 158 |
// Display welcome message |
// Display welcome message |
| 159 |
prints("\r\033[1;35m»¶Ó¹âÁÙ\033[33m ¡¾ %s ¡¿ \033[35mBBS\r\n" |
prints("\r\033[1;35m»¶Ó¹âÁÙ\033[33m ¡¾ %s ¡¿ \033[35mBBS\r\n" |
| 175 |
return -1; |
return -1; |
| 176 |
} |
} |
| 177 |
|
|
| 178 |
display_file_ex(DATA_GOODBYE, 1, 1); |
display_file(DATA_GOODBYE, 1, 1); |
| 179 |
|
|
| 180 |
log_std("User logout\n"); |
log_std("User logout\n"); |
| 181 |
|
|
| 191 |
|
|
| 192 |
clearscr(); |
clearscr(); |
| 193 |
|
|
| 194 |
show_top(""); |
show_top("", BBS_name, ""); |
| 195 |
show_active_board(); |
show_active_board(); |
| 196 |
show_bottom(""); |
show_bottom(""); |
| 197 |
display_menu(p_bbs_menu); |
display_menu(p_bbs_menu); |
| 207 |
|
|
| 208 |
show_active_board(); |
show_active_board(); |
| 209 |
show_bottom(""); |
show_bottom(""); |
| 210 |
|
display_menu_cursor(p_bbs_menu, 1); |
| 211 |
iflush(); |
iflush(); |
| 212 |
} |
} |
| 213 |
|
|
| 231 |
case REDRAW: |
case REDRAW: |
| 232 |
t_last_action = time(0); |
t_last_action = time(0); |
| 233 |
clearscr(); |
clearscr(); |
| 234 |
show_top(""); |
show_top("", BBS_name, ""); |
| 235 |
show_active_board(); |
show_active_board(); |
| 236 |
show_bottom(""); |
show_bottom(""); |
| 237 |
display_menu(p_bbs_menu); |
display_menu(p_bbs_menu); |
| 292 |
// Welcome |
// Welcome |
| 293 |
if (bbs_welcome(db) < 0) |
if (bbs_welcome(db) < 0) |
| 294 |
{ |
{ |
|
mysql_close(db); |
|
| 295 |
goto cleanup; |
goto cleanup; |
| 296 |
} |
} |
| 297 |
|
|
| 298 |
// User login |
// User login |
| 299 |
if (bbs_login(db) < 0) |
if (bbs_login(db) < 0) |
| 300 |
{ |
{ |
|
mysql_close(db); |
|
| 301 |
goto cleanup; |
goto cleanup; |
| 302 |
} |
} |
| 303 |
clearscr(); |
clearscr(); |
| 304 |
|
|
| 305 |
// BBS Top 10 |
// BBS Top 10 |
| 306 |
display_file_ex(VAR_BBS_TOP, 1, 1); |
display_file(VAR_BBS_TOP, 1, 1); |
| 307 |
|
|
| 308 |
// Main |
// Main |
| 309 |
bbs_center(); |
bbs_center(); |