sintonia/airtime_mvc/application/controllers/FeedsController.php

22 lines
723 B
PHP
Raw Normal View History

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