| 14 |
* * |
* * |
| 15 |
***************************************************************************/ |
***************************************************************************/ |
| 16 |
|
|
| 17 |
#include "bbs_main.h" |
#include "article_view_log.h" |
| 18 |
#include "bbs.h" |
#include "bbs.h" |
| 19 |
#include "login.h" |
#include "bbs_cmd.h" |
| 20 |
#include "user_priv.h" |
#include "bbs_main.h" |
| 21 |
#include "common.h" |
#include "common.h" |
| 22 |
#include "database.h" |
#include "database.h" |
| 23 |
#include "article_view_log.h" |
#include "editor.h" |
|
#include "log.h" |
|
| 24 |
#include "io.h" |
#include "io.h" |
| 25 |
#include "screen.h" |
#include "log.h" |
| 26 |
|
#include "login.h" |
| 27 |
#include "menu.h" |
#include "menu.h" |
| 28 |
#include "bbs_cmd.h" |
#include "screen.h" |
| 29 |
#include "section_list.h" |
#include "section_list.h" |
| 30 |
#include "trie_dict.h" |
#include "trie_dict.h" |
| 31 |
#include "editor.h" |
#include "user_priv.h" |
|
#include <unistd.h> |
|
|
#include <time.h> |
|
|
#include <string.h> |
|
| 32 |
#include <stdlib.h> |
#include <stdlib.h> |
| 33 |
|
#include <string.h> |
| 34 |
|
#include <time.h> |
| 35 |
|
#include <unistd.h> |
| 36 |
|
|
| 37 |
int bbs_info() |
int bbs_info() |
| 38 |
{ |
{ |
| 39 |
prints("»¶Ó¹âÁÙ \033[1;33m%s \033[32m[%s] \033[37m( %s )\r\n", |
prints("»¶Ó¹âÁÙ \033[1;33m%s \033[32m[%s] \033[37m( %s )\r\n", |
| 40 |
BBS_name, BBS_server, APP_NAME_VER); |
BBS_name, BBS_server, APP_INFO); |
| 41 |
|
|
| 42 |
return iflush(); |
return iflush(); |
| 43 |
} |
} |
| 221 |
iflush(); |
iflush(); |
| 222 |
} |
} |
| 223 |
|
|
| 224 |
|
if (user_online_update("MENU") < 0) |
| 225 |
|
{ |
| 226 |
|
log_error("user_online_update(MENU) error\n"); |
| 227 |
|
} |
| 228 |
|
|
| 229 |
switch (ch) |
switch (ch) |
| 230 |
{ |
{ |
| 231 |
case KEY_NULL: // broken pipe |
case KEY_NULL: // broken pipe |
| 347 |
cleanup: |
cleanup: |
| 348 |
// Cleanup editor memory pool |
// Cleanup editor memory pool |
| 349 |
editor_memory_pool_cleanup(); |
editor_memory_pool_cleanup(); |
| 350 |
|
|
| 351 |
// Unload article view log |
// Unload article view log |
| 352 |
article_view_log_unload(&BBS_article_view_log); |
article_view_log_unload(&BBS_article_view_log); |
| 353 |
|
|