query("INSERT INTO `lylme_config` (`k`, `v`, `description`) VALUES ('md5pass', '1', '启用md5加密密码');"); saveSetting('admin_pwd', $admin_pwd); } } if($sqlvn < 10805) { $version = 'v1.8.5'; if (!isset($conf['about'])) { $about_file = ROOT . 'about/about.txt'; if(file_exists($about_file)) { $about_content = daddslashes(file_get_contents($about_file)); $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)"; } $DB->query($about); @unlink(ROOT . 'about/说明.txt'); } } $sql = explode(';', $sql); for ($i = 0;$i < count($sql);$i++) { if (trim($sql[$i]) == '') { continue; } if($DB->query($sql[$i])) { } } saveSetting('version', $version); }