Browse Source

RSS路径调整

tags/6.1.8
tianya 2 years ago
parent
commit
85be3d6c5a
6 changed files with 7 additions and 5 deletions
  1. +1
    -0
      .gitignore
  2. +1
    -0
      src/static/rss/index.html
  3. +1
    -1
      src/system/archive/listview.class.php
  4. +1
    -1
      src/system/archive/rssview.class.php
  5. +1
    -1
      src/system/archive/sglistview.class.php
  6. +2
    -2
      src/system/sitemap.class.php

+ 1
- 0
.gitignore View File

@@ -48,3 +48,4 @@ src/static/userup/*/
src/static/js/*.js
src/apps/special/*.html
src/static/flink/*.png
src/static/rss/*.xml

+ 1
- 0
src/static/rss/index.html View File

@@ -0,0 +1 @@
dir

+ 1
- 1
src/system/archive/listview.class.php View File

@@ -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;


+ 1
- 1
src/system/archive/rssview.class.php View File

@@ -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;


+ 1
- 1
src/system/archive/sglistview.class.php View File

@@ -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;


+ 2
- 2
src/system/sitemap.class.php View File

@@ -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 .= "<div class=\"linkbox\">\r\n<h3><a href='$typelink'>".$row->typename."</a></h3>";
$mapString .= "\t<ul class=\"f6\">\t\t\r".$this->LogicListAllSunType($row->id, $maptype)."\t\n</ul></div>\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 .= "<li><a href='$typelink'>".$row->typename."</a></li>\n\t\t";
$mapString .= $this->LogicListAllSunType($row->id, $maptype);


Loading…
Cancel
Save