From e5ed80ec7584d481dc869bc9dd9e10b6895ddc69 Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Wed, 1 Apr 2020 16:45:36 +0800 Subject: =?UTF-8?q?:scissors:=20Fix:=20=E4=BF=AE=E5=A4=8D=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E8=AE=BE=E7=BD=AE=E5=A4=87=E4=BB=BD=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20#45?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/Options.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs') diff --git a/libs/Options.php b/libs/Options.php index 3780278..b74fb86 100755 --- a/libs/Options.php +++ b/libs/Options.php @@ -12,7 +12,7 @@ function themeConfig($form) { $sjdq=$db->fetchRow($db->select()->from ('table.options')->where ('name = ?', 'theme:Miracles')); $ysj = $sjdq['value']; if(isset($_POST['type'])){ - if($_POST["type"]=="备份模板数据"){ + if($_POST["type"]=="备份设置"){ if($db->fetchRow($db->select()->from ('table.options')->where ('name = ?', 'theme:MiraclesBackup'))){ $update = $db->update('table.options')->rows(array('value'=>$ysj))->where('name = ?', 'theme:MiraclesBackup'); $updateRows= $db->query($update); @@ -28,7 +28,7 @@ function themeConfig($form) { } } } - if($_POST["type"]=="还原模板数据"){ + if($_POST["type"]=="还原设置"){ if($db->fetchRow($db->select()->from ('table.options')->where ('name = ?', 'theme:MiraclesBackup'))){ $sjdub=$db->fetchRow($db->select()->from ('table.options')->where ('name = ?', 'theme:MiraclesBackup')); $bsj = $sjdub['value']; @@ -41,7 +41,7 @@ function themeConfig($form) { echo '
没有模板备份数据,恢复不了哦!
'; } } - if($_POST["type"]=="删除备份数据"){ + if($_POST["type"]=="删除设置备份"){ if($db->fetchRow($db->select()->from ('table.options')->where ('name = ?', 'theme:MiraclesBackup'))){ $delete = $db->delete('table.options')->where ('name = ?', 'theme:MiraclesBackup'); $deletedRows = $db->query($delete); -- cgit v1.2.3