2015-09-29 19:04:22 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class FeedsController extends Zend_Controller_Action
|
|
|
|
{
|
|
|
|
public function stationRssAction()
|
|
|
|
{
|
2015-10-28 15:58:22 +01:00
|
|
|
$this->view->layout()->disableLayout();
|
|
|
|
$this->_helper->viewRenderer->setNoRender(true);
|
|
|
|
|
2015-11-03 19:18:55 +01:00
|
|
|
if (!RestAuth::verifyAuth(true, true, $this)
|
|
|
|
&& (Application_Model_Preference::getStationPodcastPrivacy()
|
|
|
|
&& $this->getRequest()->getParam("sharing_token") != Application_Model_Preference::getStationPodcastDownloadKey())) {
|
2015-10-21 23:30:24 +02:00
|
|
|
$this->getResponse()
|
|
|
|
->setHttpResponseCode(401);
|
|
|
|
return;
|
|
|
|
}
|
2015-09-29 19:04:22 +02:00
|
|
|
|
2015-11-04 21:08:47 +01:00
|
|
|
header('Content-Type: text/xml; charset=UTF-8');
|
2015-09-29 19:04:22 +02:00
|
|
|
|
|
|
|
echo Application_Service_PodcastService::createStationRssFeed();
|
|
|
|
}
|
|
|
|
}
|