mirror of
https://github.com/e107inc/e107.git
synced 2025-08-09 08:06:38 +02:00
Removal of "Time offset" setting.
This commit is contained in:
@@ -199,7 +199,6 @@ class rssCreate
|
||||
$sql_rs = new db;
|
||||
global $rssgen;
|
||||
$sql = e107::getDb();
|
||||
$pref = e107::getPref();
|
||||
$tp = e107::getParser();
|
||||
|
||||
$this->e107 = e107::getInstance();
|
||||
@@ -207,7 +206,6 @@ class rssCreate
|
||||
$this -> path = e_PLUGIN."rss_menu/";
|
||||
$this -> rssType = $rss_type;
|
||||
$this -> topicid = $topic_id;
|
||||
$this -> offset = $pref['time_offset'] * 3600;
|
||||
$this -> limit = $row['rss_limit'];
|
||||
$this -> contentType = $row['rss_name'];
|
||||
|
||||
@@ -422,7 +420,7 @@ class rssCreate
|
||||
<title>".$tp->toRss($rss_title)."</title>
|
||||
<link>".$pref['siteurl']."</link>
|
||||
<description>".$tp->toRss($pref['sitedescription'])."</description>
|
||||
<lastBuildDate>".$itemdate = date("r", ($time + $this -> offset))."</lastBuildDate>
|
||||
<lastBuildDate>".$itemdate = date("r", ($time))."</lastBuildDate>
|
||||
<docs>http://backend.userland.com/rss092</docs>\n";
|
||||
|
||||
foreach($this -> rssItems as $value)
|
||||
@@ -473,8 +471,8 @@ class rssCreate
|
||||
<copyright>".$tp->toRss(SITEDISCLAIMER)."</copyright>
|
||||
<managingEditor>".$this->nospam($pref['siteadminemail'])." (".$pref['siteadmin'].")</managingEditor>
|
||||
<webMaster>".$this->nospam($pref['siteadminemail'])." (".$pref['siteadmin'].")</webMaster>
|
||||
<pubDate>".date("r",($time + $this -> offset))."</pubDate>
|
||||
<lastBuildDate>".date("r",($time + $this -> offset))."</lastBuildDate>
|
||||
<pubDate>".date("r",($time))."</pubDate>
|
||||
<lastBuildDate>".date("r",($time))."</lastBuildDate>
|
||||
<docs>http://backend.userland.com/rss</docs>
|
||||
<generator>e107 (http://e107.org)</generator>
|
||||
<sy:updatePeriod>hourly</sy:updatePeriod>
|
||||
@@ -549,7 +547,7 @@ class rssCreate
|
||||
echo "<enclosure url=\"".$value['enc_url']."\" length=\"".$value['enc_leng']."\" type=\"".$value['enc_type']."\" />\n";
|
||||
}
|
||||
|
||||
echo "<pubDate>".date("r", ($value['pubdate'] + $this -> offset))."</pubDate>\n";
|
||||
echo "<pubDate>".date("r", ($value['pubdate']))."</pubDate>\n";
|
||||
|
||||
if($link)
|
||||
{
|
||||
@@ -596,7 +594,7 @@ class rssCreate
|
||||
<link>".$pref['siteurl']."</link>
|
||||
<description>".$tp->toRss($pref['sitedescription'])."</description>
|
||||
<dc:language>".CORE_LC.(defined("CORE_LC2") ? "-".CORE_LC2 : "")."</dc:language>
|
||||
<dc:date>".$this->get_iso_8601_date($time + $this -> offset). "</dc:date>
|
||||
<dc:date>".$this->get_iso_8601_date($time). "</dc:date>
|
||||
<dc:creator>".$this->nospam($pref['siteadminemail'])."</dc:creator>
|
||||
<admin:generatorAgent rdf:resource=\"http://e107.org\" />
|
||||
<admin:errorReportsTo rdf:resource=\"mailto:".$this->nospam($pref['siteadminemail'])."\" />
|
||||
@@ -629,7 +627,7 @@ class rssCreate
|
||||
<item rdf:about=\"".$link."\">
|
||||
<title>".$tp->toRss($value['title'])."</title>
|
||||
<link>".$link."</link>
|
||||
<dc:date>".$this->get_iso_8601_date($time + $this -> offset)."</dc:date>
|
||||
<dc:date>".$this->get_iso_8601_date($time)."</dc:date>
|
||||
<dc:creator>".$value['author']."</dc:creator>
|
||||
<dc:subject>".$tp->toRss($value['category_name'])."</dc:subject>
|
||||
<description>".$tp->toRss($value['description']). "</description>
|
||||
@@ -653,7 +651,7 @@ class rssCreate
|
||||
echo "
|
||||
<id>".$pref['siteurl']."</id>\n
|
||||
<title type='text'>".$tp->toRss($rss_title)."</title>\n
|
||||
<updated>".$this->get_iso_8601_date($time + $this -> offset)."</updated>\n";
|
||||
<updated>".$this->get_iso_8601_date($time)."</updated>\n";
|
||||
|
||||
// Recommended
|
||||
echo "
|
||||
@@ -689,7 +687,7 @@ class rssCreate
|
||||
echo "
|
||||
<id>".$value['link']."</id>\n
|
||||
<title type='text'>".$tp->toRss($value['title'])."</title>\n
|
||||
<updated>".$this->get_iso_8601_date($value['pubdate'] + $this -> offset)."</updated>\n";
|
||||
<updated>".$this->get_iso_8601_date($value['pubdate'])."</updated>\n";
|
||||
|
||||
// Recommended
|
||||
$author = ($value['author']) ? $value['author'] : "unknown";
|
||||
@@ -713,7 +711,7 @@ class rssCreate
|
||||
//<contributor>
|
||||
// <name>Jane Doe</name>
|
||||
//</contributor>
|
||||
echo "<published>".$this->get_iso_8601_date($value['pubdate'] + $this -> offset)."</published>\n";
|
||||
echo "<published>".$this->get_iso_8601_date($value['pubdate'])."</published>\n";
|
||||
//<source>
|
||||
// <id>http://example.org/</id>
|
||||
// <title>Fourty-Two</title>
|
||||
|
Reference in New Issue
Block a user