forked from lincanbin/Carbon-Forum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php~
49 lines (44 loc) · 1.36 KB
/
config.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
<?php
// set automatically the time zone
date_default_timezone_set('Asia/Shanghai');
define('DEBUG_MODE', false);
// Salt for Cookie and Form
// Free to modify
define('SALT', 'AuthorIsLinCanbin');
define('PREFIX', 'carbon_');
define('InternalAccess', true);
/*模板文件使用
if (!defined('InternalAccess')) exit('error: 403 Access Denied');
来防止模板文件被游客访问
*/
define('ForumLanguage', 'zh-cn');
//MemCache(d) / Redis
define('EnableMemcache', false);
define('MemCacheHost', 'localhost');
define('MemCachePort', 11211);//Memcache: 11211, Redis: 6379
define('MemCachePrefix', 'carbon_');
//Database
define('DBHost', 'localhost');
define('DBPort', '3306');
define('DBName', 'nodevideo');
define('DBUser', 'root');
define('DBPassword', '19871127kd');
//Sphinx Server
define('SearchServer', '');
define('SearchPort', '');
define('LanguagePath', __DIR__ . '/language/' . ForumLanguage . '/');
define('LibraryPath', __DIR__ . '/library/');
define('ServicePath', __DIR__ . '/service/');
// API checking data
// List<Map<String APIKey, String APISecret>>
// Free to modify
$APISignature = array();
$APISignature['12450'] = 'b40484df0ad979d8ba7708d24c301c38';
if (DEBUG_MODE) {
//Enable error report
error_reporting(E_ALL);
ini_set('display_errors', 'On');
} else {
//Disable error report
ini_set('display_errors', 'Off');
}