/[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.19 by sysadm, Wed Apr 27 12:55:28 2005 UTC Revision 1.54 by sysadm, Sun Nov 30 12:56: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;
5          $BBS_innd_uid           =       2333;          $BBS_default_cid                        =       1;
6          $BBS_default_cid        =       1;          $BBS_default_sid                        =       4;
7          $BBS_default_sid        =       4;          $BBS_name                                       =       "枫林在线";
8          $BBS_host_name          =       "www.fenglin.info";          $BBS_host_name                          =       "FengLin.info";
9          $BBS_license_dt         =       strtotime("2004-06-14 22:30:00");          $BBS_license_dt                         =       "2025-03-02 10:00:00";
10          $BBS_license_file       =       strftime("%Y%m%d.txt",$BBS_license_dt);          $BBS_copyright_duration         =       "2001-2025";
11    
12          $BBS_max_login_per_user         =       2;          $BBS_max_user_per_email         =       3;
13          $BBS_max_login_per_ip           =       5;  
14          $BBS_max_session_per_ip         =       10;          $BBS_session_lifetime           =       60 * 60 * 24 * 7;
15          $BBS_no_limit_users                     =       array(          $BBS_user_off_line                      =       60 * 15;
16                  1,              //Admin                 ϵͳԱ          $BBS_keep_alive_interval        =       60;
17                  600,    //diliver               Զϵͳ          $BBS_check_msg_interval         =       30;
18                  2333,   //cn.bbs                תϵͳʺ  
19                  5758,   //SYSOP                 վίԱ          $BBS_list_rpp_options           =       array(
20                  5755,   //Arbitrator    ٲίԱ                  10,
21                  7595    //BMS                   Ա                  20,
22          );                  30,
23                    50,
24          $BBS_user_off_line                      =       60*15;          );
25          $BBS_session_time_out           =       60*60*2;  
26            $BBS_view_rpp_options           =       array(
27          $SYS_proxy_ip = array(                  1,
28                  "^219.228.15.34$"                  5,
29          );                  10,
30                    20,
31          $SYS_proxy_allow_ip = array(          );
32                  "^127.0.0.1$",  
33                  "^10.",          $BBS_msg_rpp_options            =       array(
34                  "^192.168."                  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            );
58    
59            $BBS_level                                      = array(
60                    "新手上路",         // 0
61                    "初来乍练",         // 1
62                    "白手起家",         // 2
63                    "略懂一二",         // 3
64                    "小有作为",         // 4
65                    "对答如流",         // 5
66                    "精于此道",         // 6
67                    "博大精深",         // 7
68                    "登峰造极",         // 8
69                    "论坛砥柱",         // 9
70                    "☆☆☆☆☆",        // 10
71                    "★☆☆☆☆",        // 11
72                    "★★☆☆☆",        // 12
73                    "★★★☆☆",        // 13
74                    "★★★★☆",        // 14
75                    "★★★★★",        // 15
76            );
77    
78            $BBS_life_immortal                      = array(
79                    333,
80                    365,
81                    666,
82                    999,
83          );          );
84  ?>  
85            $BBS_emoji_count                        =       57;
86            $BBS_upload_count_limit         =       3;
87            $BBS_upload_size_limit          =       2; // MB
88    
89            $BBS_img_max_width                      =       750;
90            
91            $BBS_exp_score_rate                     =       100;
92            $BBS_score_transfer_fee         =       0.1; // 10%
93            $BBS_nickname_change_fee        =       2;
94    
95            $BBS_stat_gen_interval          =       60 * 60 * 8; // 8 hours
96    
97            $BBS_user_purge_duration        =       7;
98            $BBS_article_purge_duration     =       180;
99            $BBS_normal_log_retention       =       60;
100            $BBS_critical_log_retention     =       365;
101            $BBS_user_msg_retention         =       60;
102            $BBS_new_article_period         =       365 * 40; // 40 years
103    
104            // PHP CLI path
105            $PHP_bin                                        =       "php";
106    
107            // Keep this consistent with $DB_session_timezone in db_open.conf.php
108            $BBS_timezone                           =       'Asia/Shanghai';
109            $BBS_runtime_tz                         =       new DateTimeZone($BBS_timezone);
110    
111            // Assume DateTime fields retrieved from DB are in $BBS_runtime_tz timezone
112            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