Changeset 880 for trunk/Modules/News/RSS.php
- Timestamp:
- Apr 7, 2020, 10:15:48 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/News/RSS.php
r876 r880 15 15 " <pubDate>".date('r')."</pubDate>\n". 16 16 " <ttl>20</ttl>\n"; 17 foreach ($Data['Items'] as $Item)17 foreach ($Data['Items'] as $Item) 18 18 { 19 19 $Result .= " <item>\n". … … 26 26 $Result .= " </channel>\n". 27 27 "</rss>"; 28 return ($Result);28 return $Result; 29 29 } 30 30 … … 35 35 $this->RawPage = true; 36 36 37 if (array_key_exists('channel', $_GET)) $ChannelName = $_GET['channel'];37 if (array_key_exists('channel', $_GET)) $ChannelName = $_GET['channel']; 38 38 else $ChannelName = ''; 39 if (array_key_exists('token', $_GET)) $Token = $_GET['token'];39 if (array_key_exists('token', $_GET)) $Token = $_GET['token']; 40 40 else $Token = ''; 41 if (array_key_exists($ChannelName, $this->System->ModuleManager->Modules['News']->RSSChannels))41 if (array_key_exists($ChannelName, $this->System->ModuleManager->Modules['News']->RSSChannels)) 42 42 { 43 43 $Channel = $this->System->ModuleManager->Modules['News']->RSSChannels[$ChannelName]; 44 if ($this->System->User->Licence($Channel['Permission']) or44 if ($this->System->User->Licence($Channel['Permission']) or 45 45 $this->System->User->CheckToken($Channel['Permission'], $Token)) 46 46 { 47 if (is_string($Channel['Callback'][0]))47 if (is_string($Channel['Callback'][0])) 48 48 { 49 49 $Class = new $Channel['Callback'][0]($this->System); … … 53 53 } else $Output = T('Access denied'); 54 54 } else $Output = 'Nezadán žádný kanál'; 55 return ($Output);55 return $Output; 56 56 } 57 57 }
Note:
See TracChangeset
for help on using the changeset viewer.