mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Removal of "Time offset" setting.
This commit is contained in:
@@ -727,39 +727,11 @@ $text .= "
|
|||||||
|
|
||||||
$text .= "
|
$text .= "
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>";
|
||||||
<tr>
|
|
||||||
<td><label for='time-offset'>".PRFLAN_26."</label></td>
|
|
||||||
<td>
|
|
||||||
".$frm->select_open('time_offset', 'class=tbox select time-offset');//use form handler because of the tabindex
|
|
||||||
$toffset = array("-12", "-11", "-10", "-9", "-8", "-7", "-6", "-5", "-4", "-3", "-2", "-1", "0", "+1", "+2", "+3", "+4", "+5", "+6", "+7", "+8", "+9", "+10", "+11", "+12", "+13", "+14", "+15", "+16");
|
|
||||||
if(! isset($pref['time_offset']))
|
|
||||||
{
|
|
||||||
$pref['time_offset'] = "0";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//XXX TODO FIXME - Do we still need this?
|
|
||||||
|
|
||||||
foreach($toffset as $o)
|
|
||||||
{
|
|
||||||
$text .= "
|
|
||||||
".$frm->option($o, $o, ($o == $pref['time_offset']))."
|
|
||||||
";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$timeZones = systemTimeZones();
|
$timeZones = systemTimeZones();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$text .= "
|
$text .= "
|
||||||
</select>
|
|
||||||
<div class='smalltext field-help'>".PRFLAN_27."</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><label for='timezone'>".PRFLAN_56."</label></td>
|
<td><label for='timezone'>".PRFLAN_56."</label></td>
|
||||||
<td>
|
<td>
|
||||||
|
@@ -310,7 +310,6 @@ City, State, Country
|
|||||||
<core name="subnews_resize"></core>
|
<core name="subnews_resize"></core>
|
||||||
<core name="themecss">style.css</core>
|
<core name="themecss">style.css</core>
|
||||||
<core name="thumbnail_quality">75</core>
|
<core name="thumbnail_quality">75</core>
|
||||||
<core name="time_offset">0</core>
|
|
||||||
<core name="timezone">UTC</core>
|
<core name="timezone">UTC</core>
|
||||||
<core name="track_online">1</core>
|
<core name="track_online">1</core>
|
||||||
<core name="ue_upgrade">1</core>
|
<core name="ue_upgrade">1</core>
|
||||||
|
@@ -199,7 +199,6 @@ class rssCreate
|
|||||||
$sql_rs = new db;
|
$sql_rs = new db;
|
||||||
global $rssgen;
|
global $rssgen;
|
||||||
$sql = e107::getDb();
|
$sql = e107::getDb();
|
||||||
$pref = e107::getPref();
|
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
|
||||||
$this->e107 = e107::getInstance();
|
$this->e107 = e107::getInstance();
|
||||||
@@ -207,7 +206,6 @@ class rssCreate
|
|||||||
$this -> path = e_PLUGIN."rss_menu/";
|
$this -> path = e_PLUGIN."rss_menu/";
|
||||||
$this -> rssType = $rss_type;
|
$this -> rssType = $rss_type;
|
||||||
$this -> topicid = $topic_id;
|
$this -> topicid = $topic_id;
|
||||||
$this -> offset = $pref['time_offset'] * 3600;
|
|
||||||
$this -> limit = $row['rss_limit'];
|
$this -> limit = $row['rss_limit'];
|
||||||
$this -> contentType = $row['rss_name'];
|
$this -> contentType = $row['rss_name'];
|
||||||
|
|
||||||
@@ -422,7 +420,7 @@ class rssCreate
|
|||||||
<title>".$tp->toRss($rss_title)."</title>
|
<title>".$tp->toRss($rss_title)."</title>
|
||||||
<link>".$pref['siteurl']."</link>
|
<link>".$pref['siteurl']."</link>
|
||||||
<description>".$tp->toRss($pref['sitedescription'])."</description>
|
<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";
|
<docs>http://backend.userland.com/rss092</docs>\n";
|
||||||
|
|
||||||
foreach($this -> rssItems as $value)
|
foreach($this -> rssItems as $value)
|
||||||
@@ -473,8 +471,8 @@ class rssCreate
|
|||||||
<copyright>".$tp->toRss(SITEDISCLAIMER)."</copyright>
|
<copyright>".$tp->toRss(SITEDISCLAIMER)."</copyright>
|
||||||
<managingEditor>".$this->nospam($pref['siteadminemail'])." (".$pref['siteadmin'].")</managingEditor>
|
<managingEditor>".$this->nospam($pref['siteadminemail'])." (".$pref['siteadmin'].")</managingEditor>
|
||||||
<webMaster>".$this->nospam($pref['siteadminemail'])." (".$pref['siteadmin'].")</webMaster>
|
<webMaster>".$this->nospam($pref['siteadminemail'])." (".$pref['siteadmin'].")</webMaster>
|
||||||
<pubDate>".date("r",($time + $this -> offset))."</pubDate>
|
<pubDate>".date("r",($time))."</pubDate>
|
||||||
<lastBuildDate>".date("r",($time + $this -> offset))."</lastBuildDate>
|
<lastBuildDate>".date("r",($time))."</lastBuildDate>
|
||||||
<docs>http://backend.userland.com/rss</docs>
|
<docs>http://backend.userland.com/rss</docs>
|
||||||
<generator>e107 (http://e107.org)</generator>
|
<generator>e107 (http://e107.org)</generator>
|
||||||
<sy:updatePeriod>hourly</sy:updatePeriod>
|
<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 "<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)
|
if($link)
|
||||||
{
|
{
|
||||||
@@ -596,7 +594,7 @@ class rssCreate
|
|||||||
<link>".$pref['siteurl']."</link>
|
<link>".$pref['siteurl']."</link>
|
||||||
<description>".$tp->toRss($pref['sitedescription'])."</description>
|
<description>".$tp->toRss($pref['sitedescription'])."</description>
|
||||||
<dc:language>".CORE_LC.(defined("CORE_LC2") ? "-".CORE_LC2 : "")."</dc:language>
|
<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>
|
<dc:creator>".$this->nospam($pref['siteadminemail'])."</dc:creator>
|
||||||
<admin:generatorAgent rdf:resource=\"http://e107.org\" />
|
<admin:generatorAgent rdf:resource=\"http://e107.org\" />
|
||||||
<admin:errorReportsTo rdf:resource=\"mailto:".$this->nospam($pref['siteadminemail'])."\" />
|
<admin:errorReportsTo rdf:resource=\"mailto:".$this->nospam($pref['siteadminemail'])."\" />
|
||||||
@@ -629,7 +627,7 @@ class rssCreate
|
|||||||
<item rdf:about=\"".$link."\">
|
<item rdf:about=\"".$link."\">
|
||||||
<title>".$tp->toRss($value['title'])."</title>
|
<title>".$tp->toRss($value['title'])."</title>
|
||||||
<link>".$link."</link>
|
<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:creator>".$value['author']."</dc:creator>
|
||||||
<dc:subject>".$tp->toRss($value['category_name'])."</dc:subject>
|
<dc:subject>".$tp->toRss($value['category_name'])."</dc:subject>
|
||||||
<description>".$tp->toRss($value['description']). "</description>
|
<description>".$tp->toRss($value['description']). "</description>
|
||||||
@@ -653,7 +651,7 @@ class rssCreate
|
|||||||
echo "
|
echo "
|
||||||
<id>".$pref['siteurl']."</id>\n
|
<id>".$pref['siteurl']."</id>\n
|
||||||
<title type='text'>".$tp->toRss($rss_title)."</title>\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
|
// Recommended
|
||||||
echo "
|
echo "
|
||||||
@@ -689,7 +687,7 @@ class rssCreate
|
|||||||
echo "
|
echo "
|
||||||
<id>".$value['link']."</id>\n
|
<id>".$value['link']."</id>\n
|
||||||
<title type='text'>".$tp->toRss($value['title'])."</title>\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
|
// Recommended
|
||||||
$author = ($value['author']) ? $value['author'] : "unknown";
|
$author = ($value['author']) ? $value['author'] : "unknown";
|
||||||
@@ -713,7 +711,7 @@ class rssCreate
|
|||||||
//<contributor>
|
//<contributor>
|
||||||
// <name>Jane Doe</name>
|
// <name>Jane Doe</name>
|
||||||
//</contributor>
|
//</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>
|
//<source>
|
||||||
// <id>http://example.org/</id>
|
// <id>http://example.org/</id>
|
||||||
// <title>Fourty-Two</title>
|
// <title>Fourty-Two</title>
|
||||||
|
Reference in New Issue
Block a user