--- lbbs/src/bbs.c 2025/10/24 00:47:42 1.34 +++ lbbs/src/bbs.c 2025/12/02 08:48:05 1.41 @@ -1,18 +1,14 @@ -/*************************************************************************** - bbs.c - description - ------------------- - Copyright : (C) 2004-2025 by Leaflet - Email : leaflet@leafok.com - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 3 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* + * bbs + * - BBS related common definitions + * + * Copyright (C) 2004-2025 Leaflet + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include "bbs.h" #include "common.h" @@ -22,8 +18,11 @@ #include #include -#define BBS_port_default 23 -#define BBS_ssh_port_default 22 +enum _bbs_port_constant_t +{ + BBS_port_default = 23, + BBS_ssh_port_default = 22, +}; // BBS enviroment char BBS_id[BBS_id_max_len + 1] = "Example BBS"; @@ -36,7 +35,7 @@ int BBS_max_client_per_ip = MAX_CLIENT_P char BBS_start_dt[BBS_start_dt_max_len + 1] = "2000年 1月 1日"; int BBS_sys_id = 1; -const int BBS_section_list_load_interval = 5; // second +const int BBS_section_list_load_interval = 1; // second // User const int BBS_user_list_load_interval = 60; // 1 minute @@ -48,6 +47,9 @@ char BBS_nickname[BBS_nickname_max_len + char BBS_user_tz[BBS_user_tz_max_len + 1]; int BBS_user_exp; +time_t BBS_eula_tm; +int BBS_update_eula = 0; + time_t BBS_login_tm; time_t BBS_last_access_tm;