--- fenglin/lib/common.inc.php 2004/10/23 09:17:00 1.16 +++ fenglin/lib/common.inc.php 2026/01/03 10:21:10 1.58 @@ -1,39 +1,128 @@ - + + $BBS_life_immortal = array( + 333, + 365, + 666, + 999, + ); + + $BBS_user_actions = array( + "ARTICLE_FAVOR" => "娴忚鏀惰棌", + "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; + + $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_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);