-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig-sample.php
60 lines (49 loc) · 2.51 KB
/
config-sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/*
<Secret Center, open source member management system>
Copyright (C) 2012-2017 Secret Center開發團隊 <http://center.gdsecret.net/#team>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, version 3.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<http://www.gnu.org/licenses/>.
*/
if(!session_id()) {
session_start();
}
if(!isset($_COOKIE['login']) && isset($_SESSION['Center_Username'])){//如果已登入COOKIE不存在,但SESSION存在
header('Location: index.php?logout');//直接消除SESSION並登出
}
global $center;
date_default_timezone_set("Asia/Taipei"); //時區設定
$center['site_name'] = "%s"; //網站名稱
$center['register'] = "%d"; //是否開啟註冊,0為關閉,1為開啟
$center['mail'] = "%s"; //網站Email,用於重設密碼信件
$center['chat']['public'] = "%d"; //聊天室_發言間隔 單位 秒
$center['avatar']['max_size'] = "%d";//頭貼_檔案大小限制 單位 KB
$center['avatar']['compress'] = "%d";//頭貼_是否開啟壓縮,0為關閉,1為開啟
$center['avatar']['quality'] = "%d";//頭貼_壓縮品質設定 0~100
$center['forum']['captcha']="%d"; //論壇_驗證碼是否開啟,0為關閉,1為開啟
$center['forum']['limit']="%d"; //論壇_文章&回覆每頁顯示數量
$center['member']['message']=
<<<MSG
%s
MSG;
;//會員中心信息
require_once('function.php');