/[LeafOK_CVS]/fenglin/lib/common.inc.php
ViewVC logotype

Contents of /fenglin/lib/common.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.49 - (show annotations)
Wed Apr 23 05:13:57 2025 UTC (10 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.48: +1 -1 lines
Refine deprecated PHP short tags

1 <?php
2 //Definition of const
3 $BBS_sys_uid = 600;
4 $BBS_notice_sid = 39;
5 $BBS_default_cid = 1;
6 $BBS_default_sid = 4;
7 $BBS_name = "枫林在线";
8 $BBS_host_name = "www.FengLin.info";
9 $BBS_license_dt = "2025-03-02 10:00:00";
10 $BBS_copyright_duration = "2001-2025";
11
12 $BBS_max_user_per_email = 3;
13
14 $BBS_session_lifetime = 60 * 60 * 24 * 7;
15 $BBS_user_off_line = 60 * 15;
16 $BBS_keep_alive_interval = 60;
17 $BBS_check_msg_interval = 30;
18
19 $BBS_list_rpp_options = array(
20 10,
21 20,
22 30,
23 50,
24 );
25
26 $BBS_view_rpp_options = array(
27 1,
28 5,
29 10,
30 20,
31 );
32
33 $BBS_msg_rpp_options = array(
34 5,
35 10,
36 20,
37 30,
38 );
39
40 $BBS_exp = array(
41 PHP_INT_MIN, // 0
42 50, // 1
43 200, // 2
44 500, // 3
45 1000, // 4
46 2000, // 5
47 5000, // 6
48 10000, // 7
49 20000, // 8
50 30000, // 9
51 50000, // 10
52 60000, // 11
53 70000, // 12
54 80000, // 13
55 90000, // 14
56 100000, // 15
57 PHP_INT_MAX, // 16
58 );
59
60 $BBS_level = array(
61 "新手上路", // 0
62 "初来乍练", // 1
63 "白手起家", // 2
64 "略懂一二", // 3
65 "小有作为", // 4
66 "对答如流", // 5
67 "精于此道", // 6
68 "博大精深", // 7
69 "登峰造极", // 8
70 "论坛砥柱", // 9
71 "☆☆☆☆☆", // 10
72 "★☆☆☆☆", // 11
73 "★★☆☆☆", // 12
74 "★★★☆☆", // 13
75 "★★★★☆", // 14
76 "★★★★★", // 15
77 );
78
79 $BBS_life_immortal = array(
80 333,
81 365,
82 666,
83 999,
84 );
85
86 $BBS_emoji_count = 57;
87 $BBS_upload_count_limit = 3;
88 $BBS_upload_size_limit = 2; // MB
89
90 $BBS_exp_score_rate = 100;
91 $BBS_score_transfer_fee = 0.1; // 10%
92 $BBS_nickname_change_fee = 2;
93
94 $BBS_stat_gen_interval = 60 * 60 * 8; // 8 hours
95
96 $BBS_user_purge_duration = 7;
97 $BBS_article_purge_duration = 180;
98 $BBS_normal_log_retention = 60;
99 $BBS_critical_log_retention = 365;
100 $BBS_user_msg_retention = 60;
101 $BBS_new_article_period = 365 * 40; // 40 years
102
103 // PHP CLI path
104 $PHP_bin = "php";
105
106 // Keep this consistent with $DB_session_timezone in db_open.conf.php
107 $BBS_timezone = 'Asia/Shanghai';
108 $BBS_runtime_tz = new DateTimeZone($BBS_timezone);
109
110 // Assume DateTime fields retrieved from DB are in $BBS_runtime_tz timezone
111 date_default_timezone_set($BBS_timezone);
112 ?>

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1