forked from qinggan/phpok
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
29 lines (27 loc) · 1.25 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
<?php
/***********************************************************
Filename: config.php
Note : 配置文件,此配置应用于全局,修改完后建议设为只读
Version : 4.0
Web : www.phpok.com
Author : qinggan <[email protected]>
Update : 2012-10-15 15:46
***********************************************************/
if(!defined("PHPOK_SET")){exit("<h1>Access Denied</h1>");}
// 连接数据库引挈,当前配置仅适用于小站点使用
$config["db"]["file"] = "mysqli";
$config["db"]["host"] = "localhost";
$config["db"]["port"] = "3306";
$config["db"]["user"] = "root";
$config["db"]["pass"] = "root";
$config["db"]["data"] = "phpok";
$config["db"]["prefix"] = "qinggan_";
$config['db']['socket'] = '';
$config['db']['debug'] = false;
//手机端配置
$config['mobile']['autocheck'] = true; //自动检测手机端,启用后,检测出手机端将读取手机端网页
$config['mobile']['status'] = true; //手机端开始,此项不开启的话,将不使用手机
$config['mobile']['default'] = false; //默认为手机版,为方便开发人员调式,设置为默认后,在网页上也会展示手机版
$config['develop'] = false; //开发模式,正常运行的网站请设为false,可防止CRSF注入
$config['debug'] = false;
?>