From 65055b108fc01474274b5a34fa3234710a3e753c Mon Sep 17 00:00:00 2001 From: xushubieli Date: Mon, 28 Mar 2022 10:11:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9PHP7=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/js/indexbody.js | 9 +----- src/admin/templets/index_body.htm | 44 ---------------------------- src/system/libraries/agent.class.php | 3 +- 3 files changed, 3 insertions(+), 53 deletions(-) diff --git a/src/admin/js/indexbody.js b/src/admin/js/indexbody.js index efd584a7..f1c99ec7 100644 --- a/src/admin/js/indexbody.js +++ b/src/admin/js/indexbody.js @@ -18,11 +18,4 @@ function ListAll(){ function ShowWaitDiv(){ $DE('loaddiv').style.display = 'block'; return true; -} - -window.onload = function() -{ - fetch('index_body.php?dopost=getRightSide').then(resp=>resp.text()).then((d)=>{ - $DE('listCount').innerHTML = d; - }); -}; +} \ No newline at end of file diff --git a/src/admin/templets/index_body.htm b/src/admin/templets/index_body.htm index c6606b2c..b2749fec 100644 --- a/src/admin/templets/index_body.htm +++ b/src/admin/templets/index_body.htm @@ -100,14 +100,6 @@ table.stattable td.today {
正在载入
-
-
-
信息统计
-
-
正在载入
-
-
-
基本信息
@@ -137,42 +129,6 @@ table.stattable td.today {
-
-
-
最新文档
-
- - -2 ORDER BY arc.id DESC LIMIT 0,5"; - $arcArr = array(); - $dsql->Execute('m', $query); - while($row = $dsql->GetArray('m')) - { - $arcArr[] = $row; - } - ?> - 1) - { - foreach($arcArr as $row) - { - if(trim($row['editcon'])==''){ - $row['editcon'] = 'archives_edit.php'; - } - $rowarcrank = $row['arcrank']==-1? "[未审核]":""; - $pubdate = GetDateMk($row['pubdate']); - echo ""; - } - } else { - ?> - - -
{$row['title']}{$rowarcrank}{$pubdate}
暂无文档
-
-
-
diff --git a/src/system/libraries/agent.class.php b/src/system/libraries/agent.class.php index 5c6055fc..8ae1711d 100644 --- a/src/system/libraries/agent.class.php +++ b/src/system/libraries/agent.class.php @@ -213,7 +213,8 @@ class Agent extends Mobile_Detect // Check match if ($this->match($regex, $userAgent)) { - return $key ?: reset((array)$this->matchesArray); + $val = (array)$this->matchesArray; + return $key ?: reset($val); } }