mirror of
https://github.com/LyLme/lylme_spage.git
synced 2024-11-17 14:34:08 +08:00
更新 v1.8.5
This commit is contained in:
commit
419d154f11
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user