2010-12-07 20:19:27 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class IndexController extends Zend_Controller_Action
|
|
|
|
{
|
|
|
|
|
|
|
|
public function init()
|
|
|
|
{
|
2012-07-11 00:53:06 +02:00
|
|
|
|
2010-12-07 20:19:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function indexAction()
|
|
|
|
{
|
2015-04-21 17:26:48 +02:00
|
|
|
$CC_CONFIG = Config::getConfig();
|
|
|
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
|
|
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/landing-page.css?'.$CC_CONFIG['airtime_version']);
|
|
|
|
$this->_helper->layout->setLayout('login');
|
|
|
|
|
|
|
|
$this->view->stationLogo = Application_Model_Preference::GetStationLogo();
|
|
|
|
$this->view->stationName = Application_Model_Preference::GetStationName();
|
|
|
|
$this->view->stationDescription = Application_Model_Preference::GetStationDescription();
|
2010-12-07 20:19:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function mainAction()
|
2012-07-11 00:53:06 +02:00
|
|
|
{
|
2010-12-07 20:19:27 +01:00
|
|
|
$this->_helper->layout->setLayout('layout');
|
|
|
|
}
|
|
|
|
|
2014-04-24 22:19:55 +02:00
|
|
|
public function maintenanceAction()
|
|
|
|
{
|
|
|
|
$this->getResponse()->setHttpResponseCode(503);
|
|
|
|
}
|
|
|
|
|
2010-12-07 20:19:27 +01:00
|
|
|
}
|