-
Notifications
You must be signed in to change notification settings - Fork 196
/
config.php.default
55 lines (47 loc) · 2.3 KB
/
config.php.default
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
<?php
/**
* config.php 系统配置:数据库连接、显示信息等
* ----------------------------------------------------------------
* OldCMS,site:http://www.oldcms.com
*/
/* 数据库连接 */
$config['dbHost'] = '127.0.0.1:3309'; //数据库地址
$config['dbUser'] = 'root'; //用户
$config['dbPwd'] = '123'; //密码
$config['database'] = 'xssplatform'; //数据库名
$config['charset'] = 'utf8'; //数据库字符集
$config['tbPrefix'] = 'oc_'; //表名前缀
$config['dbType'] = 'mysql'; //数据库类型(目前只支持mysql)
/* 注册配置 */
$config['register'] = 'normal'; //normal,正常;invite,只允许邀请注册;close,关闭注册功能 注:当邀请开启时,未生成邀请码,邀请将不生效
$config['mailauth'] = false; //注册时是否邮箱验证
/* url配置 */
$config['urlroot'] = "http://{$_SERVER['HTTP_HOST']}";//访问的url起始
$config['urlrewrite'] = false; //是否启用Url Rewrite
/* 存储配置 */
$config['filepath'] = $_SERVER['DOCUMENT_ROOT'] . '/upload'; //文件存储目录,结尾无'/'
$config['fileprefix'] = $config['urlroot'] . '/upload'; //访问文件起始,结尾无'/'
/* 主题选择 */
$config['theme'] = 'default'; //主题选择
$config['template'] = 'default'; //模板选择
/* 显示设置 */
$config['show'] = array(
'sitename' => 'XSS平台', //网站名
'sitedesc' => '', //一句话简介
'keywords' => '技术交流,程序员,设计,项目,创业,技术,网络安全,技术文章,1.2', //keywords
'description' => '', //description
'adminmail' => '' //管理员邮箱
);
/* 积分等级设置 */
$config['point'] = array(
'award' => array(
'publish' => 2,
'comment' => 2,
'invitereg' => 10 //邀请注册奖励
)
);
/* 其它设置 */
$config['timezone'] = 'Asia/Shanghai'; //时区,如UTC
$config['expires'] = 3600; //过期时长(秒)
$config['debug'] = true; //调试模式(是否显示程序、数据库等错误)
?>