示例#1
0
 /**
  * default class construtor
  *
  * @param   array  $config  Configuration array
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     if (BabioonEventHelper::isVersion3()) {
         // Joomla! 3.x
         $renderer = new FOFRenderJoomla3();
     } else {
         // Joomla! 2.5
         $renderer = new FOFRenderJoomla();
     }
     $this->setRenderer($renderer);
 }
示例#2
0
// Access check.
$user = JFactory::getUser();
$comp = 'com_babioonevent';
// START: Akeeba Live Update
$view = JFactory::getApplication()->input->get('view', 'cpanels');
// Load files if needed
if ($view == 'liveupdate' || $view == 'cpanels') {
    if (file_exists(JPATH_COMPONENT . '/liveupdate/liveupdate.php')) {
        require_once JPATH_COMPONENT . '/liveupdate/liveupdate.php';
    } else {
        return JError::raiseWarning(404, JText::_(strtoupper($comp) . '_COULD_NOT_LOAD_LIVEUPDATE_FILES'));
    }
}
if ($view == 'liveupdate') {
    if (JFactory::getUser()->authorise('core.admin', $comp)) {
        LiveUpdate::handleRequest();
        return;
    } else {
        return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
    }
}
// END: Akeeba Live Update
$doc = JFactory::getDocument();
if (BabioonEventHelper::isVersion3()) {
    // Add css
    $doc->addStyleSheet(JURI::base(true) . '/../media/babioon/css/3x.css');
} else {
    $doc->addStyleSheet(JURI::base(true) . '/../media/babioon/css/2x.css');
}
FOFDispatcher::getTmpInstance('com_babioonevent')->dispatch();
/** EOF **/