From 4b619d3d31492555960c98bb5b35e575a3512dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= Date: Thu, 16 May 2024 16:39:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=A4=E5=8F=8B=E4=BF=AE=E5=A4=8Dtag?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/article_add.php | 3 --- src/admin/article_edit.php | 3 --- src/install/install.html | 14 +++++++------- src/system/archive/taglist.class.php | 12 +++++++++--- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/admin/article_add.php b/src/admin/article_add.php index 2f6ff713..302af7b7 100644 --- a/src/admin/article_add.php +++ b/src/admin/article_add.php @@ -12,9 +12,6 @@ require_once(dirname(__FILE__).'/config.php'); CheckPurview('a_New,a_AccNew'); require_once(DEDEINC.'/customfields.func.php'); require_once(DEDEADMIN.'/inc/inc_archives_functions.php'); -if (file_exists(DEDEDATA.'/template.rand.php')) { - require_once(DEDEDATA.'/template.rand.php'); -} if (empty($dopost)) $dopost = ''; if ($dopost != 'save') { require_once(DEDEINC."/dedetag.class.php"); diff --git a/src/admin/article_edit.php b/src/admin/article_edit.php index 9b4cbcdb..57eaf0a8 100644 --- a/src/admin/article_edit.php +++ b/src/admin/article_edit.php @@ -12,9 +12,6 @@ require_once(dirname(__FILE__)."/config.php"); CheckPurview('a_Edit,a_AccEdit,a_MyEdit'); require_once(DEDEINC."/customfields.func.php"); require_once(DEDEADMIN."/inc/inc_archives_functions.php"); -if (file_exists(DEDEDATA.'/template.rand.php')) { - require_once(DEDEDATA.'/template.rand.php'); -} if (empty($dopost)) $dopost = ''; $aid = isset($aid) && is_numeric($aid) ? $aid : 0; if ($dopost != 'save') { diff --git a/src/install/install.html b/src/install/install.html index d38293eb..5ff22540 100644 --- a/src/install/install.html +++ b/src/install/install.html @@ -69,10 +69,10 @@
-
+
-
+
@@ -94,7 +94,7 @@
diff --git a/src/system/archive/taglist.class.php b/src/system/archive/taglist.class.php index 4a007c50..975f8bc0 100755 --- a/src/system/archive/taglist.class.php +++ b/src/system/archive/taglist.class.php @@ -105,9 +105,15 @@ class TagList } if (isset($GLOBALS['PageNo'])) { $this->PageNo = intval($GLOBALS['PageNo']); + if ($this->PageNo == 0) { + $this->PageNo = 1; + } } else { $this->PageNo = 1; } + if (stripos(GetCurUrl(), 'makehtml_taglist_action.php')) { + $this->TotalResult = 1; + } if ($this->TotalResult == -1) { $cquery = "SELECT COUNT(*) AS dd FROM `#@__taglist` WHERE tid = '{$this->TagInfos['id']}' AND arcrank >-1 "; $row = $this->dsql->GetOne($cquery); @@ -115,16 +121,16 @@ class TagList //更新Tag信息 $ntime = time(); //更新浏览量和记录数 - $upquery = "UPDATE `#@__tagindex` SET total='{$row['dd']}',count=count+1,weekcc=weekcc+1,monthcc=monthcc+1 WHERE tag LIKE '{$this->Tag}' "; + $upquery = "UPDATE `#@__tagindex` SET total='{$row['dd']}',count=count+1,weekcc=weekcc+1,monthcc=monthcc+1 WHERE tag LIKE '{$this->TagInfos['tag']}' "; $this->dsql->ExecuteNoneQuery($upquery); $oneday = 24 * 3600; //周统计 if (ceil(($ntime - $this->TagInfos['weekup']) / $oneday) > 7) { - $this->dsql->ExecuteNoneQuery("UPDATE `#@__tagindex` SET weekcc=0,weekup='{$ntime}' WHERE tag LIKE '{$this->Tag}' "); + $this->dsql->ExecuteNoneQuery("UPDATE `#@__tagindex` SET weekcc=0,weekup='{$ntime}' WHERE tag LIKE '{$this->TagInfos['tag']}' "); } //月统计 if (ceil(($ntime - $this->TagInfos['monthup']) / $oneday) > 30) { - $this->dsql->ExecuteNoneQuery("UPDATE `#@__tagindex` SET monthcc=0,monthup='{$ntime}' WHERE tag LIKE '{$this->Tag}' "); + $this->dsql->ExecuteNoneQuery("UPDATE `#@__tagindex` SET monthcc=0,monthup='{$ntime}' WHERE tag LIKE '{$this->TagInfos['tag']}' "); } } $ctag = $this->dtp->GetTag("page");