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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.39 by sysadm, Fri Apr 4 03:01:37 2025 UTC Revision 1.50 by sysadm, Sun Apr 27 04:32:05 2025 UTC
# Line 1  Line 1 
1  <?  <?php
2          //Definition of const          //Definition of const
3          $BBS_sys_uid                            =       600;          $BBS_sys_uid                            =       600;
4          $BBS_notice_sid                         =       39;          $BBS_notice_sid                         =       39;
# Line 16  Line 16 
16          $BBS_keep_alive_interval        =       60;          $BBS_keep_alive_interval        =       60;
17          $BBS_check_msg_interval         =       30;          $BBS_check_msg_interval         =       30;
18    
19          $BBS_rpp_options                        =       array(          $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,                  10,
36                  20,                  20,
37                  30,                  30,
                 50  
38          );          );
39    
40          $BBS_exp                                        = array(          $BBS_exp                                        = array(
# Line 72  Line 86 
86          $BBS_emoji_count                        =       57;          $BBS_emoji_count                        =       57;
87          $BBS_upload_count_limit         =       3;          $BBS_upload_count_limit         =       3;
88          $BBS_upload_size_limit          =       2; // MB          $BBS_upload_size_limit          =       2; // MB
89            
90          $BBS_user_purge_duration        =       365;          $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;          $BBS_article_purge_duration     =       180;
98          $BBS_normal_log_retention       =       60;          $BBS_normal_log_retention       =       60;
99          $BBS_critical_log_retention     =       365;          $BBS_critical_log_retention     =       365;
100          $BBS_user_msg_retention         =       60;          $BBS_user_msg_retention         =       60;
101          $BBS_new_article_period         =       14;          $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          $PHP_bin = "php";          // Assume DateTime fields retrieved from DB are in $BBS_runtime_tz timezone
111            date_default_timezone_set($BBS_timezone);
112  ?>  ?>


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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