Changeset 55 for trunk/Modules/RSS
- Timestamp:
- Apr 7, 2020, 12:55:39 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/RSS/RSS.php
r37 r55 27 27 $this->RSSChannels[$Channel['Channel']] = $Channel; 28 28 29 if (is_null($Pos)) $this->RSSChannelsPos[] = $Channel['Channel'];29 if (is_null($Pos)) $this->RSSChannelsPos[] = $Channel['Channel']; 30 30 else { 31 31 array_splice($this->RSSChannelsPos, $Pos, 0, $Channel['Channel']); … … 42 42 { 43 43 $Output = ''; 44 foreach ($this->RSSChannels as $Channel)44 foreach ($this->RSSChannels as $Channel) 45 45 { 46 //if ($this->System->User->Licence($Channel['Permission']))46 //if ($this->System->User->Licence($Channel['Permission'])) 47 47 $Output .= ' <link rel="alternate" title="'.$Channel['Title'].'" href="'. 48 48 $this->System->Link('/rss/?channel='.$Channel['Channel']).'" type="application/rss+xml" />'; 49 49 } 50 return ($Output);50 return $Output; 51 51 } 52 52 } … … 58 58 $this->ClearPage = true; 59 59 60 if (array_key_exists('channel', $_GET)) $ChannelName = $_GET['channel'];60 if (array_key_exists('channel', $_GET)) $ChannelName = $_GET['channel']; 61 61 else $ChannelName = ''; 62 if (array_key_exists('token', $_GET)) $Token = $_GET['token'];62 if (array_key_exists('token', $_GET)) $Token = $_GET['token']; 63 63 else $Token = ''; 64 if (array_key_exists($ChannelName, $this->System->ModuleManager->Modules['RSS']->RSSChannels))64 if (array_key_exists($ChannelName, $this->System->ModuleManager->Modules['RSS']->RSSChannels)) 65 65 { 66 66 $Channel = $this->System->ModuleManager->Modules['RSS']->RSSChannels[$ChannelName]; 67 if ($this->System->User->CheckPermission($Channel['Permission']['Module'], $Channel['Permission']['Operation']) or67 if ($this->System->User->CheckPermission($Channel['Permission']['Module'], $Channel['Permission']['Operation']) or 68 68 $this->System->User->CheckToken($Channel['Permission']['Module'], $Channel['Permission']['Operation'], $Token)) 69 69 { 70 if (is_string($Channel['Callback'][0]))70 if (is_string($Channel['Callback'][0])) 71 71 { 72 72 $Class = new $Channel['Callback'][0]($this->System); … … 76 76 } else $Output = 'Nemáte oprávnění'; 77 77 } else $Output = 'Kanál nenalezen'; 78 return ($Output);78 return $Output; 79 79 } 80 80 }
Note:
See TracChangeset
for help on using the changeset viewer.