-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
90 lines (67 loc) · 2.06 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
/*
* Description: 系统配置文件
*
*
*/
//系统版本号
/**
* 命名规范
*
*/
$sys_version = '0.1';
//用户填写的 系统主目录信息
$sys_dir_base = '/t-info-together/mine/';
//系统主目录
$sys_dir = $_SERVER['DOCUMENT_ROOT'].$sys_dir_base;
//系统编码
$sys_charset = 'utf8';
//Cookie加密密钥
$Cookie_pwd = 't_info_together';
//============================数据库配置==================================
//数据库连接地址
$db_server = '127.0.0.1';
//数据库名
$db_name = 't_info_together';
//数据库用户名
$db_user = 'root';
//数据库密码
$db_pwd = '';
//============================End(数据库配置)==============================
//============================邮件服务器配置==================================
//邮件服务器地址
$smtp_host = "smtp.qq.com";
//SMTP认证用户
$smtp_username = "";
//SMTP认证用户密码
$smtp_pwd = "";
//发件人邮箱
$mail_from = "";
//发件人姓名
$mail_from_name = "T_Info_Together";
//邮件字符集
$mail_charset = "GB2312";
//邮件Encoding(暂为base64,至于为什么是它,我也不太清楚,稍后查一下)
$mail_encoding = "base64";
//============================End(邮件服务器配置)==============================
//==============================Smarty配置====================================
//包含 Smarty类文件
include_once( $sys_dir."includes/Smarty/libs/Smarty.class.php" );
//Smarty模板配置
$tpl = new Smarty();
//模板目录
$tpl->template_dir = $sys_dir."templates/";
//模板编译目录
$tpl->compile_dir = $sys_dir."data/templates_c/";
//特殊配置文件目录
$tpl->config_dir = "";
//缓存目录
$tpl->cache_dir = $sys_dir."data/cache/";
//是否允许缓存
$tpl->caching = 0;
//替换变量左边界符
$tpl->left_delimiter = "<{";
//替换变量右边界符
$tpl->right_delimiter = "}>";
//==============================End(Smarty配置)====================================
?>