chore: 更新配置文件并添加VS Code设置
添加VS Code工作区设置文件,包含Git和文件排除配置 更新config.php中的数据库和SMTP密码配置 删除旧的config.php.bak备份文件
This commit is contained in:
22
.vscode/settings.json
vendored
Normal file
22
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"git.ignoreLimitWarning": true,
|
||||
"git.enableSmartCommit": true,
|
||||
"git.autofetch": true,
|
||||
"git.confirmSync": false,
|
||||
"git.path": "git",
|
||||
"git.terminalAuthentication": true,
|
||||
"git.ignoreMissingGitWarning": false,
|
||||
"files.exclude": {
|
||||
"**/.git": true,
|
||||
"**/.svn": true,
|
||||
"**/.hg": true,
|
||||
"**/CVS": true,
|
||||
"**/.DS_Store": true,
|
||||
"config.php": true
|
||||
},
|
||||
"search.exclude": {
|
||||
"**/node_modules": true,
|
||||
"**/bower_components": true,
|
||||
"config.php": true
|
||||
}
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
<?php
|
||||
// MySQL 配置
|
||||
define('DB_HOST', 'localhost:8000');
|
||||
define('DB_NAME', 'awa');
|
||||
define('DB_USER', 'aww');
|
||||
define('DB_PASSWORD', 'caocao123');
|
||||
|
||||
// App Store 名称
|
||||
define('APP_STORE_NAME', 'LeonAPP');
|
||||
|
||||
// 管理员邮箱
|
||||
define('ADMIN_EMAIL', 'leonmmcoset@outlook.com');
|
||||
|
||||
// SMTP邮件配置
|
||||
define('SMTP_HOST', 'smtp.163.com');
|
||||
define('SMTP_PORT', 25); // 163邮箱推荐使用587端口
|
||||
define('SMTP_ENCRYPTION', 'tls'); // 启用TLS加密
|
||||
define('SMTP_USERNAME', 'leonmm2@163.com'); // 使用完整邮箱地址作为用户名
|
||||
define('SMTP_PASSWORD', 'FHYNSqRhB6MqJQBw');
|
||||
define('SMTP_FROM_EMAIL', 'leonmm2@163.com');
|
||||
define('SMTP_FROM_NAME', 'leonmm2@163.com');
|
||||
|
||||
// 管理员账号
|
||||
define('ADMIN_USERNAME', 'Admin');
|
||||
define('ADMIN_PASSWORD', 'Caocao&123');
|
||||
|
||||
// 数据库连接
|
||||
$conn = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
|
||||
if ($conn->connect_error) {
|
||||
$error_msg = '数据库连接失败: ' . $conn->connect_error;
|
||||
log_error($error_msg, __FILE__, __LINE__);
|
||||
die($error_msg);
|
||||
}
|
||||
$conn->set_charset('utf8mb4');
|
||||
|
||||
// 设置时区
|
||||
date_default_timezone_set('Asia/Shanghai');
|
||||
|
||||
// 错误日志记录函数
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user