ACC SHELL

Path : /srv/www/vhosts/toptisk/application/controllers/
File Upload :
Current File : /srv/www/vhosts/toptisk/application/controllers/IndexController.php

<?php

class IndexController extends Mine_Controller_FrontendController
{
    public function  init()
    {
        parent::init();
        $this->view->active = 'index';        
        $this->view->banner = array('typ' => 'image', 'file' => 'oko.jpg');     //default banner
    }
    
    public function indexAction()
    {
        $this->view->banner = array('typ' => 'flash', 'file' => 'oci.swf');
        $this->view->title = $this->view->translate('slogan');
    }

    public function downloadAction()
    {
         $this->_redirect("{$this->view->lang}/download", array('code' => 301));
    }

    public function musicAction()
    {
        //disable layout
        $this->_helper->viewRenderer->setNoRender();
        $this->_helper->getHelper('layout')->disableLayout();

        $music = (int)$this->_getParam('music', 1);
        $music_session = new Zend_Session_Namespace('music');
        $music_session->music = $music;
        $this->_helper->json($music ? 'music enabled' : 'music disabled');
    }
    

    

}


ACC SHELL 2018