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'])) { $DB->query("INSERT INTO `lylme_config` (`k`, `v`, `description`) VALUES ('about', '1', '新版关于页面');"); $about_file = ROOT . 'about/about.txt'; if (file_exists($about_file)) { $about_content = str_replace(PHP_EOL, '\r\n', daddslashes(file_get_contents($about_file))); $about = " INSERT INTO `lylme_config` (`k`, `v`, `description`) VALUES ('about_content', '$about_content', '关于页面');"; $DB->query($about); @unlink(ROOT . 'about/说明.txt'); } } } if ($sqlvn < 10900) { $version = 'v1.9.0'; } if ($sqlvn < 10905) { $version = 'v1.9.5'; } $sql = explode(';', $sql); for ($i = 0; $i < count($sql); $i++) { if (trim($sql[$i]) == '') { continue; } if ($DB->query($sql[$i])) { } } saveSetting('version', $version); }