--- lbbs/src/common.c 2025/11/05 01:37:00 1.43 +++ lbbs/src/common.c 2025/11/17 04:23:09 1.48 @@ -6,12 +6,25 @@ * Copyright (C) 2004-2025 Leaflet */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "common.h" +// Version +const char APP_INFO[] = PACKAGE_STRING " build on " __DATE__ " " __TIME__; +const char COPYRIGHT_INFO[] = "Copyright (C) 2004-2025 Leaflet \n" + "This program comes with ABSOLUTELY NO WARRANTY.\n" + "This is free software, and you are welcome to redistribute it \n" + "under certain conditions; see the GNU General Public License \n" + "version 3 for details.\n"; + // Enviroment const char CONF_BBSD[] = "conf/bbsd.conf"; const char CONF_MENU[] = "var/menu_merged.conf"; const char CONF_BBSNET[] = "conf/bbsnet.conf"; +const char CONF_BWF[] = "conf/badwords.conf"; const char CONF_TOP10_MENU[] = "var/bbs_top_menu.conf"; const char SSH_HOST_KEYFILE[] = "conf/ssh_host_rsa_key"; @@ -57,14 +70,11 @@ const char *data_files_load_startup[] = const int data_files_load_startup_count = sizeof(data_files_load_startup) / sizeof(const char *); // Global declaration for sockets -int socket_server[2]; -int socket_client; char hostaddr_client[IP_ADDR_LEN]; int port_client; // SSHv2 int SSH_v2 = 0; -ssh_bind sshbind; ssh_session SSH_session; ssh_channel SSH_channel;