menustyles = new MenuStyles(); $this->imagespath = PAGEBUILDERCK_MEDIA_URI .'/images/menustyles/'; $this->cktype = $this->input->get('cktype', null); if (! $this->cktype && $this->input->get('layout', null, 'cmd') !== 'editor') { echo JText::_('COM_PAGEBUILDERCK_ERROR_LAYOUT'); exit(); } $user = CKFof::getUser(); $authorised = ($user->authorise('core.create', 'com_pagebuilderck') || (count($user->getAuthorisedCategories('com_pagebuilderck', 'core.create')))); if ($authorised !== true) { throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'), 403); return false; } parent::display($tpl); exit(); } }