From 0f7a9c910b6040111ca8ec013f2c00e8246bffd9 Mon Sep 17 00:00:00 2001 From: Leonmmcoset Date: Sat, 12 Jul 2025 18:11:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E5=8C=85=E5=90=AB?= =?UTF-8?q?=E6=95=8F=E6=84=9F=E4=BF=A1=E6=81=AF=E7=9A=84=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=87=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 配置文件备份中包含了数据库凭据、SMTP密码和管理员账号等敏感信息,存在安全风险 --- config.php.bak | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 config.php.bak diff --git a/config.php.bak b/config.php.bak new file mode 100644 index 0000000..bacb34d --- /dev/null +++ b/config.php.bak @@ -0,0 +1,41 @@ +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'); + +// 错误日志记录函数 + +?> \ No newline at end of file