sintonia/airtime_mvc/application/controllers/FeedsController.php

22 lines
715 B
PHP

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