From 85be3d6c5aadb96935777a99e11317ff04d641cb Mon Sep 17 00:00:00 2001 From: tianya Date: Wed, 13 Apr 2022 20:18:23 +0800 Subject: [PATCH] =?UTF-8?q?RSS=E8=B7=AF=E5=BE=84=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + src/static/rss/index.html | 1 + src/system/archive/listview.class.php | 2 +- src/system/archive/rssview.class.php | 2 +- src/system/archive/sglistview.class.php | 2 +- src/system/sitemap.class.php | 4 ++-- 6 files changed, 7 insertions(+), 5 deletions(-) create mode 100755 src/static/rss/index.html diff --git a/.gitignore b/.gitignore index b469ad89..068a841d 100644 --- a/.gitignore +++ b/.gitignore @@ -48,3 +48,4 @@ src/static/userup/*/ src/static/js/*.js src/apps/special/*.html src/static/flink/*.png +src/static/rss/*.xml diff --git a/src/static/rss/index.html b/src/static/rss/index.html new file mode 100755 index 00000000..87245193 --- /dev/null +++ b/src/static/rss/index.html @@ -0,0 +1 @@ +dir \ No newline at end of file diff --git a/src/system/archive/listview.class.php b/src/system/archive/listview.class.php index dad1a404..8a18917e 100755 --- a/src/system/archive/listview.class.php +++ b/src/system/archive/listview.class.php @@ -86,7 +86,7 @@ class ListView } //设置一些全局参数的值 foreach ($GLOBALS['PubFields'] as $k => $v) $this->Fields[$k] = $v; - $this->Fields['rsslink'] = $GLOBALS['cfg_cmsurl']."/data/rss/".$this->TypeID.".xml"; + $this->Fields['rsslink'] = $GLOBALS['cfg_cmsurl']."/static/rss/".$this->TypeID.".xml"; //设置环境变量 SetSysEnv($this->TypeID, $this->Fields['typename'], 0, '', 'list'); $this->Fields['typeid'] = $this->TypeID; diff --git a/src/system/archive/rssview.class.php b/src/system/archive/rssview.class.php index db302570..f495a7a7 100755 --- a/src/system/archive/rssview.class.php +++ b/src/system/archive/rssview.class.php @@ -87,7 +87,7 @@ class RssView */ function MakeRss($isremote = 0) { - $murl = $GLOBALS['cfg_cmspath']."/data/rss/".$this->TypeID.".xml"; + $murl = $GLOBALS['cfg_cmspath']."/static/rss/".$this->TypeID.".xml"; $mfile = $GLOBALS['cfg_basedir'].$murl; $this->dtp->SaveTo($mfile); return $murl; diff --git a/src/system/archive/sglistview.class.php b/src/system/archive/sglistview.class.php index 46774d2b..7e44e349 100755 --- a/src/system/archive/sglistview.class.php +++ b/src/system/archive/sglistview.class.php @@ -81,7 +81,7 @@ class SgListView $this->ListFields = explode(',', $listfield); //设置一些全局参数的值 foreach ($GLOBALS['PubFields'] as $k => $v) $this->Fields[$k] = $v; - $this->Fields['rsslink'] = $GLOBALS['cfg_cmsurl']."/data/rss/".$this->TypeID.".xml"; + $this->Fields['rsslink'] = $GLOBALS['cfg_cmsurl']."/static/rss/".$this->TypeID.".xml"; //设置环境变量 SetSysEnv($this->TypeID, $this->Fields['typename'], 0, '', 'list'); $this->Fields['typeid'] = $this->TypeID; diff --git a/src/system/sitemap.class.php b/src/system/sitemap.class.php index e484b390..f0be022e 100755 --- a/src/system/sitemap.class.php +++ b/src/system/sitemap.class.php @@ -59,7 +59,7 @@ class SiteMap if ($maptype == "site") { $typelink = GetTypeUrl($row->id, MfTypedir($row->typedir), $row->isdefault, $row->defaultname, $row->ispart, $row->namerule2, $row->moresite, $row->siteurl, $row->sitepath); } else { - $typelink = $GLOBALS['cfg_cmsurl']."/data/rss/".$row->id.".xml"; + $typelink = $GLOBALS['cfg_cmsurl']."/static/rss/".$row->id.".xml"; } $mapString .= "
\r\n

".$row->typename."

"; $mapString .= "\t
\r\n"; @@ -88,7 +88,7 @@ class SiteMap if ($maptype == "site") { $typelink = GetTypeUrl($row->id, MfTypedir($row->typedir), $row->isdefault, $row->defaultname, $row->ispart, $row->namerule2, $row->moresite, $row->siteurl, $row->sitepath); } else { - $typelink = $GLOBALS['cfg_cmsurl']."/data/rss/".$row->id.".xml"; + $typelink = $GLOBALS['cfg_cmsurl']."/static/rss/".$row->id.".xml"; } $mapString .= "
  • ".$row->typename."
  • \n\t\t"; $mapString .= $this->LogicListAllSunType($row->id, $maptype);