-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.inc.php
More file actions
69 lines (61 loc) · 2.12 KB
/
config.inc.php
File metadata and controls
69 lines (61 loc) · 2.12 KB
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
61
62
63
64
65
66
67
68
69
<?php
//初始化
$setting = array();
/* ---------------------------- WEB控制 ----------------------------- */
// 网站DeBUG模式
$setting["Debug"] = false;
// 闭站
$setting["STOP"] = false;
// 禁止接入管理员后台
$setting["Admin"] = false;
/* ---------------------------- WEB页面信息 ----------------------------- */
// ICO
$setting["Web"]["Icon"] = "../sources/img/favicon.png";
// 主题颜色(主颜色)
$setting["Web"]["color"] = "light-green";
// 主题颜色(次颜色)
$setting["Web"]["subcolor"] = "blue";
/* ---------------------------- 网站信息 ----------------------------- */
// 网站名字
$setting["Info"]["name"] = "教师辅助管理系统";
// 网站描述
$setting["Info"]["subname"] = "教师辅助管理系统";
// 主网站地址
$setting["Info"]["Web"] = "http://127.0.0.1:1000/";
// 是否开启镜像站双配置
$setting["Info"]["MirrorG"] = true;
// 源码镜像站(公开)
$setting["Info"]["MirrorZ"] = "https://m.cdn.chs.pub/";
// 源码镜像站(开发,测试)
$setting["Info"]["MirrorD"] = "https://tc.cdn.chs.pub/";
/* ---------------------------- 数据库连接 ----------------------------- */
// 数据库地址
$setting["sql"]["host"] = "127.0.0.1";
// 数据库用户名
$setting["sql"]["username"] = "root";
// 数据库连接密码
$setting["sql"]["password"] = "123456";
// 数据库名
$setting["sql"]["sqlname"] = "test";
// 数据库端口(不填写默认3306)
$setting["sql"]["port"] = "3306";
// 数据表相关
// 用户注册/登录/查询数据表
$setting["sql"]["members"] = "members";
/* ---------------------------- SMTP数据信息 ----------------------------- */
// SMTP服务器地址
$setting["SMTP"]["host"] = "";
// 允许 SMTP 认证
$setting["SMTP"]["SMTPAuth"] = TRUE;
// smtp登录的账号
$setting["SMTP"]["Username"] = "";
// 输入密码或者(腾讯等)授权码
$setting["SMTP"]["Passwd"] = "";
// 发件名称
$setting["SMTP"]["SendName"] = "";
// 发件昵称
$setting["SMTP"]["Nick"] = "X-LF技术部";
// 加密模式(允许TLS或者SSL)
$setting["SMTP"]["Secure"] = "tls";
// 端口25或465
$setting["SMTP"]["Port"] = 25;