/[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.11 by sysadm, Fri Aug 27 12:16:27 2004 UTC Revision 1.58 by sysadm, Sat Jan 3 10:21:10 2026 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;
5          $BBS_trash_sid          =       21;          $BBS_default_cid                        =       1;
6          $BBS_innd_uid           =       2333;          $BBS_default_sid                        =       4;
7          $BBS_default_cid        =       1;          $BBS_name                                       =       "枫林在线";
8          $BBS_default_sid        =       4;          $BBS_host_name                          =       "FengLin.info";
9          $BBS_host_name          =       "www.fenglin.info";          $BBS_copyright_duration         =       "2001-2026";
10          $BBS_license_dt         =       strtotime("2004-06-14 22:30:00");  
11          $BBS_license_file       =       strftime("%Y%m%d.txt",$BBS_license_dt);          $BBS_max_user_per_email         =       3;
12    
13          $BBS_max_login_per_user         =       2;          $BBS_session_lifetime           =       60 * 60 * 24 * 7;
14          $BBS_max_login_per_ip           =       5;          $BBS_user_off_line                      =       60 * 15;
15          $BBS_max_session_per_ip         =       10;          $BBS_keep_alive_interval        =       60;
16          $BBS_no_limit_users                     =       array(          $BBS_check_msg_interval         =       30;
17                  1,              //Admin                 ϵͳԱ  
18                  600,    //ϵͳϢ         ϵͳϢʺ          $BBS_list_rpp_options           =       array(
19                  2333,   //cn.bbs                תϵͳʺ                  10,
20                  5758,   //SYSOP                 վίԱ                  20,
21                  5755,   //Arbitrator    ٲίԱ                  30,
22          );                  50,
23            );
24          $BBS_user_off_line                      =       60*15;  
25          $BBS_session_time_out           =       60*60*2;          $BBS_view_rpp_options           =       array(
26                    1,
27          $SYS_proxy_ip = array(                  5,
28                  "^218.78.239.105$",                  10,
29                  "^10.85.31.",                  20,
30                  "^203.95.5.66$",          );
31                  "^202.120.224.104$",  
32                  "^192.168.176.57$",          $BBS_msg_rpp_options            =       array(
33                  "^61.129.42."                  5,
34          );                  10,
35                    20,
36          $SYS_proxy_allow_ip = array(                  30,
37                  "^10.",          );
38                  "^192.168."  
39            $BBS_exp                                        = array(
40                    PHP_INT_MIN,    // 0
41                    50,                             // 1
42                    200,                    // 2
43                    500,                    // 3
44                    1000,                   // 4
45                    2000,                   // 5
46                    5000,                   // 6
47                    10000,                  // 7
48                    20000,                  // 8
49                    30000,                  // 9
50                    50000,                  // 10
51                    60000,                  // 11
52                    70000,                  // 12
53                    80000,                  // 13
54                    90000,                  // 14
55                    100000,                 // 15
56            );
57    
58            $BBS_level                                      = array(
59                    "新手上路",         // 0
60                    "初来乍练",         // 1
61                    "白手起家",         // 2
62                    "略懂一二",         // 3
63                    "小有作为",         // 4
64                    "对答如流",         // 5
65                    "精于此道",         // 6
66                    "博大精深",         // 7
67                    "登峰造极",         // 8
68                    "论坛砥柱",         // 9
69                    "☆☆☆☆☆",        // 10
70                    "★☆☆☆☆",        // 11
71                    "★★☆☆☆",        // 12
72                    "★★★☆☆",        // 13
73                    "★★★★☆",        // 14
74                    "★★★★★",        // 15
75          );          );
76  ?>  
77            $BBS_life_immortal                      = array(
78                    333,
79                    365,
80                    666,
81                    999,
82            );
83    
84            $BBS_user_actions                       = array(
85                    "ARTICLE_FAVOR" => "浏览收藏",
86                    "BBS_NET" => "站点穿梭",
87                    "CHICKEN" => "电子小鸡",
88                    "EDIT_ARTICLE" => "修改文章",
89                    "LOGIN" => "进入大厅",
90                    "MENU" => "菜单选择",
91                    "POST_ARTICLE" => "撰写文章",
92                    "REPLY_ARTICLE" => "回复文章",
93                    "TOP10_MENU" => "十大热门",
94                    "USER_LIST" => "查花名册",
95                    "USER_ONLINE" => "环顾四周",
96                    "VIEW_ARTICLE" => "阅读文章",
97                    "VIEW_FILE" => "查看文档",
98                    "WWW" => "Web浏览",
99            );
100    
101            $BBS_emoji_count                        =       57;
102            $BBS_upload_count_limit         =       3;
103            $BBS_upload_size_limit          =       2; // MB
104    
105            $BBS_img_max_width                      =       750;
106            
107            $BBS_exp_score_rate                     =       100;
108            $BBS_score_transfer_fee         =       0.1; // 10%
109            $BBS_nickname_change_fee        =       2;
110    
111            $BBS_stat_gen_interval          =       60 * 60 * 8; // 8 hours
112    
113            $BBS_user_purge_duration        =       7;
114            $BBS_article_purge_duration     =       180;
115            $BBS_normal_log_retention       =       60;
116            $BBS_critical_log_retention     =       365;
117            $BBS_user_msg_retention         =       60;
118            $BBS_new_article_period         =       365 * 40; // 40 years
119    
120            // PHP CLI path
121            $PHP_bin                                        =       "php";
122    
123            // Keep this consistent with $DB_session_timezone in db_open.conf.php
124            $BBS_timezone                           =       'Asia/Shanghai';
125            $BBS_runtime_tz                         =       new DateTimeZone($BBS_timezone);
126    
127            // Assume DateTime fields retrieved from DB are in $BBS_runtime_tz timezone
128            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