From 28639c80b9077ee4ad92adb946bf810443573592 Mon Sep 17 00:00:00 2001 From: LyLme Date: Tue, 5 Apr 2022 01:13:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/update.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/admin/update.php b/admin/update.php index 3a96811..00ca817 100644 --- a/admin/update.php +++ b/admin/update.php @@ -96,7 +96,6 @@ if($set=='updatesql' || $upsql==true) { if($vernum < 10101) { $sql = file_get_contents(ROOT.'install/update.sql'); $version = 'v1.1.1'; - saveSetting('version',$version); } if($vernum < 10103) { @unlink(ROOT.'include/head.php'); @@ -105,10 +104,13 @@ if($set=='updatesql' || $upsql==true) { @unlink(ROOT.'include/footer.php'); $sql = $sql.file_get_contents(ROOT.'install/update1.sql'); $version = 'v1.1.3'; - saveSetting('version',$version); - } else { + } + if($vernum < 10104) { + $version = 'v1.1.4'; + }else { exit(""); } + saveSetting('version',$version); $sql=explode(';',$sql); $t=0; $e=0; @@ -122,6 +124,7 @@ if($set=='updatesql' || $upsql==true) { $error.=$DB->error().'\n'; } } + echo(''); } include './footer.php';