Example #1
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerDefaultTask('toggle');
     if (!headers_sent()) {
         header('Cache-Control: no-store, no-cache, must-revalidate');
         header('Cache-Control: post-check=0, pre-check=0', false);
         header('Pragma: no-cache');
     }
 }
Example #2
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerDefaultTask('listing');
 }
Example #3
0
 private function installOne($folder)
 {
     if (empty($folder)) {
         return false;
     }
     unset($GLOBALS['_JREQUEST']['installtype']);
     unset($GLOBALS['_JREQUEST']['install_directory']);
     JRequest::setVar('installtype', 'folder');
     JRequest::setVar('install_directory', $folder);
     $_REQUEST['installtype'] = 'folder';
     $_REQUEST['install_directory'] = $folder;
     $controller = new hikaserialBridgeController(array('base_path' => HIKASERIAL_ROOT . 'administrator' . DS . 'components' . DS . 'com_installer', 'name' => 'Installer', 'default_task' => 'installform'));
     $model = $controller->getModel('Install');
     return $model->install();
 }