From ba5cc869302d05c891ad7e76351a1435ff6e0c57 Mon Sep 17 00:00:00 2001 From: tianya Date: Wed, 24 May 2023 21:13:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E6=A1=86=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/sys_repair.php | 50 ++++++++----------------- src/system/libraries/oxwindow.class.php | 7 ++-- 2 files changed, 18 insertions(+), 39 deletions(-) diff --git a/src/admin/sys_repair.php b/src/admin/sys_repair.php index 73d0fdbc..3908e13d 100644 --- a/src/admin/sys_repair.php +++ b/src/admin/sys_repair.php @@ -17,18 +17,12 @@ if (empty($dopost)) { $win->mainTitle = "系统修复工具"; $wecome_info = "系统修复工具"; $win->AddTitle('本工具用于检测和修复您的系统存在的错误'); - $msg = " - - 由于手动升级时会员没运行指定的SQL语句,或自动升级的遗漏处理或处理出错,会导致一些错误,使用本工具会自动检测并处理,本工具目前主要执行下面动作:
- 1、修复/优化数据表
- 2、更新缓存
- 3、检测系统变量一致性
- 4、检测微表与主表数据一致性 - - - - 常规检测 - "; + $msg = "由于手动升级时会员没运行指定的SQL语句,或自动升级的遗漏处理或处理出错,会导致一些错误,使用本工具会自动检测并处理,本工具目前主要执行下面动作:
+ 1、修复/优化数据表
+ 2、更新缓存
+ 3、检测系统变量一致性
+ 4、检测微表与主表数据一致性 +

常规检测

"; $win->AddMsgItem("$msg"); $winform = $win->GetWindow('hand', ''); $win->Display(); @@ -41,16 +35,11 @@ else if ($dopost == 1) { $win->mainTitle = "系统修复工具"; $wecome_info = "系统修复工具 - 检测数据结构"; $win->AddTitle('本工具用于检测和修复您的系统存在的错误'); - $msg = " - - 已完成数据结构完整性检测:
- 1、获取主键失败,无法进行后续操作
- 2、更新数据库#@__archivess表时出错
- 3、列表显示数据目与实际文档数不一致 - - - 检测数据 - "; + $msg = "已完成数据结构完整性检测:
+ 1、获取主键失败,无法进行后续操作
+ 2、更新数据库#@__archivess表时出错
+ 3、列表显示数据目与实际文档数不一致 +

检测数据

"; $win->AddMsgItem("$msg"); $winform = $win->GetWindow('hand', ''); $win->Display(); @@ -111,12 +100,7 @@ else if ($dopost == 2) { $win->mainTitle = "系统修复工具"; $wecome_info = "系统修复工具 - 检测微表正确性"; $win->AddTitle('本工具用于检测和修复您的系统存在的错误'); - $msg = " - {$msg} - - - {$errall} - "; + $msg = "{$msg}

{$errall}

"; $win->AddMsgItem("$msg"); $winform = $win->GetWindow('hand', ''); $win->Display(); @@ -125,7 +109,7 @@ else if ($dopost == 2) { //高级方式修复微表,会删除不合法主键的文档 else if ($dopost == 3) { $errnum = 0; - $sql = " TRUNCATE TABLE `#@__arctiny`"; + $sql = "TRUNCATE TABLE `#@__arctiny`"; $dsql->ExecuteNoneQuery($sql); $sql = "SELECT arc.id, arc.typeid, arc.typeid2,arc.arcrank,arc.channel,arc.senddate,arc.sortrank,arc.mid, ch.addtable FROM `#@__archives` arc LEFT JOIN `#@__channeltype` ch ON ch.id=arc.channel "; $dsql->Execute('me', $sql); @@ -158,12 +142,8 @@ else if ($dopost == 3) { $win->mainTitle = "系统修复工具"; $wecome_info = "系统修复工具 - 高级综合检测修复"; $win->AddTitle('本工具用于检测和修复您的系统存在的错误'); - $msg = " - 完成所有修复操作,移除错误记录{$errnum}条 - - - 完成修正 - "; + $msg = "完成所有修复操作,移除错误记录{$errnum}条 +

完成修正

"; $win->AddMsgItem("$msg"); $winform = $win->GetWindow('hand', ''); $win->Display(); diff --git a/src/system/libraries/oxwindow.class.php b/src/system/libraries/oxwindow.class.php index 77d8cceb..336db12a 100755 --- a/src/system/libraries/oxwindow.class.php +++ b/src/system/libraries/oxwindow.class.php @@ -71,14 +71,13 @@ class OxWindow */ function AddTitle($title, $col = "2") { - global $cfg_static_dir; if ($col != "" && $col != "0") { $colspan = "colspan='$col'"; } else { $colspan = ""; } $this->myWinItem .= ""; - $this->myWinItem .= "$title"; + $this->myWinItem .= "$title"; $this->myWinItem .= ""; } /** @@ -97,7 +96,7 @@ class OxWindow $colspan = ""; } $this->myWinItem .= ""; - $this->myWinItem .= "$ivalue"; + $this->myWinItem .= "$ivalue"; $this->myWinItem .= ""; } /** @@ -111,7 +110,7 @@ class OxWindow function AddItem($iname, $ivalue) { $this->myWinItem .= ""; - $this->myWinItem .= "$iname"; + $this->myWinItem .= "$iname"; $this->myWinItem .= "$ivalue"; $this->myWinItem .= ""; }