/[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.50 by sysadm, Sun Apr 27 04:32:05 2025 UTC Revision 1.59 by sysadm, Thu Jan 8 12:12:00 2026 UTC
# Line 1  Line 1 
1  <?php  <?php
2          //Definition of const          // Default config
3          $BBS_sys_uid                            =       600;          $BBS_sys_uid                            =       1;
4          $BBS_notice_sid                         =       39;          $BBS_notice_sid                         =       1;
5          $BBS_default_cid                        =       1;          $BBS_default_cid                        =       1;
6          $BBS_default_sid                        =       4;          $BBS_default_sid                        =       1;
7          $BBS_name                                       =       "枫林在线";          $BBS_name                                       =       "MyBBS";
8          $BBS_host_name                          =       "www.FengLin.info";          $BBS_host_name                          =       "localhost";
9          $BBS_license_dt                         =       "2025-03-02 10:00:00";          $BBS_copyright_duration         =       "2026";
10          $BBS_copyright_duration         =       "2001-2025";          $BBS_timezone                           =       'Asia/Shanghai';
11    
12            // Override by user config
13            include "../conf/site.conf.php";
14    
15          $BBS_max_user_per_email         =       3;          $BBS_max_user_per_email         =       3;
16    
# Line 54  Line 57 
57                  80000,                  // 13                  80000,                  // 13
58                  90000,                  // 14                  90000,                  // 14
59                  100000,                 // 15                  100000,                 // 15
                 PHP_INT_MAX,    // 16  
60          );          );
61    
62          $BBS_level                                      = array(          $BBS_level                                      = array(
# Line 83  Line 85 
85                  999,                  999,
86          );          );
87    
88            $BBS_user_actions                       = array(
89                    "ARTICLE_FAVOR" => "浏览收藏",
90                    "BBS_NET" => "站点穿梭",
91                    "CHICKEN" => "电子小鸡",
92                    "EDIT_ARTICLE" => "修改文章",
93                    "LOGIN" => "进入大厅",
94                    "MENU" => "菜单选择",
95                    "POST_ARTICLE" => "撰写文章",
96                    "REPLY_ARTICLE" => "回复文章",
97                    "TOP10_MENU" => "十大热门",
98                    "USER_LIST" => "查花名册",
99                    "USER_ONLINE" => "环顾四周",
100                    "VIEW_ARTICLE" => "阅读文章",
101                    "VIEW_FILE" => "查看文档",
102                    "WWW" => "Web浏览",
103            );
104    
105          $BBS_emoji_count                        =       57;          $BBS_emoji_count                        =       57;
106          $BBS_upload_count_limit         =       3;          $BBS_upload_count_limit         =       3;
107          $BBS_upload_size_limit          =       2; // MB          $BBS_upload_size_limit          =       2; // MB
108    
109            $BBS_img_max_width                      =       750;
110            
111          $BBS_exp_score_rate                     =       100;          $BBS_exp_score_rate                     =       100;
112          $BBS_score_transfer_fee         =       0.1; // 10%          $BBS_score_transfer_fee         =       0.1; // 10%
113          $BBS_nickname_change_fee        =       2;          $BBS_nickname_change_fee        =       2;
# Line 104  Line 125 
125          $PHP_bin                                        =       "php";          $PHP_bin                                        =       "php";
126    
127          // Keep this consistent with $DB_session_timezone in db_open.conf.php          // Keep this consistent with $DB_session_timezone in db_open.conf.php
         $BBS_timezone                           =       'Asia/Shanghai';  
128          $BBS_runtime_tz                         =       new DateTimeZone($BBS_timezone);          $BBS_runtime_tz                         =       new DateTimeZone($BBS_timezone);
129    
130          // Assume DateTime fields retrieved from DB are in $BBS_runtime_tz timezone          // Assume DateTime fields retrieved from DB are in $BBS_runtime_tz timezone
131          date_default_timezone_set($BBS_timezone);          date_default_timezone_set($BBS_timezone);
 ?>  


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

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