sintonia/airtime_mvc/application/controllers/FeedsController.php

20 lines
641 B
PHP
Raw Normal View History

2015-09-29 19:04:22 +02:00
<?php
class FeedsController extends Zend_Controller_Action
{
public function stationRssAction()
{
2015-10-21 23:30:24 +02:00
if (Application_Model_Preference::getStationPodcastPrivacy()
&& $this->getRequest()->getParam("sharing_token") != Application_Model_Preference::getStationPodcastDownloadKey()) {
$this->getResponse()
->setHttpResponseCode(401);
return;
}
2015-09-29 19:04:22 +02:00
$this->view->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
header('Content-Type: text/xml');
echo Application_Service_PodcastService::createStationRssFeed();
}
}