--- fenglin/lib/common.inc.php 2025/03/01 09:02:28 1.26 +++ fenglin/lib/common.inc.php 2026/01/08 12:12:00 1.59 @@ -1,39 +1,131 @@ - "浏览收藏", + "BBS_NET" => "站点穿梭", + "CHICKEN" => "电子小鸡", + "EDIT_ARTICLE" => "修改文章", + "LOGIN" => "进入大厅", + "MENU" => "菜单选择", + "POST_ARTICLE" => "撰写文章", + "REPLY_ARTICLE" => "回复文章", + "TOP10_MENU" => "十大热门", + "USER_LIST" => "查花名册", + "USER_ONLINE" => "环顾四周", + "VIEW_ARTICLE" => "阅读文章", + "VIEW_FILE" => "查看文档", + "WWW" => "Web浏览", + ); + + $BBS_emoji_count = 57; + $BBS_upload_count_limit = 3; + $BBS_upload_size_limit = 2; // MB + + $BBS_img_max_width = 750; - $PHP_bin = "php"; -?> + $BBS_exp_score_rate = 100; + $BBS_score_transfer_fee = 0.1; // 10% + $BBS_nickname_change_fee = 2; + + $BBS_stat_gen_interval = 60 * 60 * 8; // 8 hours + + $BBS_user_purge_duration = 7; + $BBS_article_purge_duration = 180; + $BBS_normal_log_retention = 60; + $BBS_critical_log_retention = 365; + $BBS_user_msg_retention = 60; + $BBS_new_article_period = 365 * 40; // 40 years + + // PHP CLI path + $PHP_bin = "php"; + + // Keep this consistent with $DB_session_timezone in db_open.conf.php + $BBS_runtime_tz = new DateTimeZone($BBS_timezone); + + // Assume DateTime fields retrieved from DB are in $BBS_runtime_tz timezone + date_default_timezone_set($BBS_timezone);