Bläddra i källkod

RSS路径调整

tags/6.1.8
tianya 2 år sedan
förälder
incheckning
85be3d6c5a
6 ändrade filer med 7 tillägg och 5 borttagningar
  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 Visa fil

@@ -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 Visa fil

@@ -0,0 +1 @@
dir

+ 1
- 1
src/system/archive/listview.class.php Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

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


Laddar…
Avbryt
Spara