/[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.18 by sysadm, Wed Mar 23 17:31:14 2005 UTC Revision 1.59 by sysadm, Thu Jan 8 12:12:00 2026 UTC
# Line 1  Line 1 
1  <?  <?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_innd_uid           =       2333;          $BBS_default_cid                        =       1;
6          $BBS_default_cid        =       1;          $BBS_default_sid                        =       1;
7          $BBS_default_sid        =       4;          $BBS_name                                       =       "MyBBS";
8          $BBS_host_name          =       "www.fenglin.info";          $BBS_host_name                          =       "localhost";
9          $BBS_license_dt         =       strtotime("2004-06-14 22:30:00");          $BBS_copyright_duration         =       "2026";
10          $BBS_license_file       =       strftime("%Y%m%d.txt",$BBS_license_dt);          $BBS_timezone                           =       'Asia/Shanghai';
11    
12          $BBS_max_login_per_user         =       2;          // Override by user config
13          $BBS_max_login_per_ip           =       5;          include "../conf/site.conf.php";
14          $BBS_max_session_per_ip         =       10;  
15          $BBS_no_limit_users                     =       array(          $BBS_max_user_per_email         =       3;
16                  1,              //Admin                 系统管理员  
17                  600,    //diliver               自动发信系统          $BBS_session_lifetime           =       60 * 60 * 24 * 7;
18                  2333,   //cn.bbs                转信系统帐号          $BBS_user_off_line                      =       60 * 15;
19                  5758,   //SYSOP                 站务委员会          $BBS_keep_alive_interval        =       60;
20                  5755,   //Arbitrator    仲裁委员会          $BBS_check_msg_interval         =       30;
21                  7595    //BMS                   版主管理员  
22          );          $BBS_list_rpp_options           =       array(
23                    10,
24          $BBS_user_off_line                      =       60*15;                  20,
25          $BBS_session_time_out           =       60*60*2;                  30,
26                    50,
27          $SYS_proxy_ip = array(          );
28          //      "^219.228.15.34$",  
29          //      "^10.1.0.1$",          $BBS_view_rpp_options           =       array(
30                  "^192.168.88.233$",                  1,
31                  "^10.1.0.129$"                  5,
32          );                  10,
33                    20,
34          $SYS_proxy_allow_ip = array(          );
35                  "^127.0.0.1$",  
36                  "^10.",          $BBS_msg_rpp_options            =       array(
37                  "^192.168."                  5,
38                    10,
39                    20,
40                    30,
41            );
42    
43            $BBS_exp                                        = array(
44                    PHP_INT_MIN,    // 0
45                    50,                             // 1
46                    200,                    // 2
47                    500,                    // 3
48                    1000,                   // 4
49                    2000,                   // 5
50                    5000,                   // 6
51                    10000,                  // 7
52                    20000,                  // 8
53                    30000,                  // 9
54                    50000,                  // 10
55                    60000,                  // 11
56                    70000,                  // 12
57                    80000,                  // 13
58                    90000,                  // 14
59                    100000,                 // 15
60            );
61    
62            $BBS_level                                      = array(
63                    "鏂版墜涓婅矾",         // 0
64                    "鍒濇潵涔嶇粌",         // 1
65                    "鐧芥墜璧峰",         // 2
66                    "鐣ユ噦涓浜",         // 3
67                    "灏忔湁浣滀负",         // 4
68                    "瀵圭瓟濡傛祦",         // 5
69                    "绮句簬姝ら亾",         // 6
70                    "鍗氬ぇ绮炬繁",         // 7
71                    "鐧诲嘲閫犳瀬",         // 8
72                    "璁哄潧鐮ユ煴",         // 9
73                    "鈽嗏槅鈽嗏槅鈽",        // 10
74                    "鈽呪槅鈽嗏槅鈽",        // 11
75                    "鈽呪槄鈽嗏槅鈽",        // 12
76                    "鈽呪槄鈽呪槅鈽",        // 13
77                    "鈽呪槄鈽呪槄鈽",        // 14
78                    "鈽呪槄鈽呪槄鈽",        // 15
79          );          );
80  ?>  
81            $BBS_life_immortal                      = array(
82                    333,
83                    365,
84                    666,
85                    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;
106            $BBS_upload_count_limit         =       3;
107            $BBS_upload_size_limit          =       2; // MB
108    
109            $BBS_img_max_width                      =       750;
110            
111            $BBS_exp_score_rate                     =       100;
112            $BBS_score_transfer_fee         =       0.1; // 10%
113            $BBS_nickname_change_fee        =       2;
114    
115            $BBS_stat_gen_interval          =       60 * 60 * 8; // 8 hours
116    
117            $BBS_user_purge_duration        =       7;
118            $BBS_article_purge_duration     =       180;
119            $BBS_normal_log_retention       =       60;
120            $BBS_critical_log_retention     =       365;
121            $BBS_user_msg_retention         =       60;
122            $BBS_new_article_period         =       365 * 40; // 40 years
123    
124            // PHP CLI path
125            $PHP_bin                                        =       "php";
126    
127            // Keep this consistent with $DB_session_timezone in db_open.conf.php
128            $BBS_runtime_tz                         =       new DateTimeZone($BBS_timezone);
129    
130            // Assume DateTime fields retrieved from DB are in $BBS_runtime_tz timezone
131            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