更新 v1.8.5

This commit is contained in:
LyLme 2024-01-09 14:21:58 +08:00
commit 419d154f11

View File

@ -86,7 +86,7 @@ if($sqlvn < $filevn) {
if(file_exists($about_file)) { if(file_exists($about_file)) {
$about_content = daddslashes(file_get_contents($about_file)); $about_content = daddslashes(file_get_contents($about_file));
$about_content = str_replace(PHP_EOL, '\r\n', $about_content); $about_content = str_replace(PHP_EOL, '\r\n', $about_content);
$about = "INSERT INTO `lylme_config` (`id`, `k`, `v`, `description`) VALUES (NULL, 'about', '" . $about_content . "', NULL)"; $about = "INSERT INTO `lylme_config` (`id`, `k`, `v`, `description`) VALUES (NULL, 'about', '$about_content', '关于页面');";
} }
$DB->query($about); $DB->query($about);
@unlink(ROOT . 'about/说明.txt'); @unlink(ROOT . 'about/说明.txt');