--- lbbs/src/menu_proc.c 2025/11/07 09:53:47 1.48 +++ lbbs/src/menu_proc.c 2025/11/21 10:52:47 1.54 @@ -6,11 +6,17 @@ * Copyright (C) 2004-2025 Leaflet */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "article_cache.h" #include "article_favor_display.h" #include "article_view_log.h" #include "bbs.h" #include "bbs_cmd.h" +#include "bbs_net.h" +#include "chicken.h" #include "common.h" #include "io.h" #include "log.h" @@ -21,6 +27,7 @@ #include "user_info_update.h" #include "user_list_display.h" #include "user_priv.h" +#include #include #include #include @@ -63,6 +70,7 @@ int exec_mbem(void *param) c++; } +#ifdef _LOAD_SO hdll = dlopen(s + 5, RTLD_LAZY); if (hdll) @@ -88,6 +96,25 @@ int exec_mbem(void *param) prints("失败原因:%s\r\n", dlerror()); press_any_key(); } +#else + (void)hdll; + (void)func; + + if (strcasecmp(c, "bbs_net") == 0) + { + bbs_net(); + } + else if (strcasecmp(c, "chicken_main") == 0) + { + chicken_main(); + } + else + { + clearscr(); + prints("未知入口 [%s] !!\r\n", c); + press_any_key(); + } +#endif } return REDRAW; @@ -375,4 +402,14 @@ int edit_intro(void *param) } return REDRAW; +} + +int edit_sign(void *param) +{ + if (user_sign_edit(BBS_priv.uid) < 0) + { + log_error("user_sign_edit(%d) error\n", BBS_priv.uid); + } + + return REDRAW; }