--- fenglin/lib/common.inc.php 2025/04/04 05:03:09 1.40 +++ fenglin/lib/common.inc.php 2025/04/10 05:22:48 1.43 @@ -16,11 +16,18 @@ $BBS_keep_alive_interval = 60; $BBS_check_msg_interval = 30; - $BBS_rpp_options = array( + $BBS_list_rpp_options = array( 10, 20, 30, - 50 + 50, + ); + + $BBS_view_rpp_options = array( + 1, + 5, + 10, + 20, ); $BBS_exp = array( @@ -72,6 +79,8 @@ $BBS_emoji_count = 57; $BBS_upload_count_limit = 3; $BBS_upload_size_limit = 2; // MB + + $BBS_score_transfer_fee = 0.1; $BBS_user_purge_duration = 7; $BBS_article_purge_duration = 180; @@ -80,5 +89,13 @@ $BBS_user_msg_retention = 60; $BBS_new_article_period = 14; - $PHP_bin = "php"; + // PHP CLI path + $PHP_bin = "php"; + + // Keep this consistent with $DB_session_timezone in db_open.conf.php + $BBS_timezone = 'Asia/Shanghai'; + $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); ?>