// No direct access to this file defined('_JEXEC') or die('Restricted access'); // Uncoment this rows for debug // ini_set('error_reporting', E_ALL | E_NOTICE); // ini_set('display_errors', '1'); // ini_set("log_errors" , "0"); // ini_set("error_log" , "/var/log/php-error.log"); try { // import joomla controller library jimport('joomla.application.component.controller'); jimport('joomla.application.component.view'); jimport('joomla.form.helper'); jimport('migur.migur'); JLoader::import('helpers.acl', JPATH_COMPONENT_ADMINISTRATOR, ''); // First check if user has access to the component. if (!AclHelper::canAccessComponent()) { AclHelper::redirectToAccessDenied(); } // Add the helper JLoader::import('helpers.javascript', JPATH_COMPONENT_ADMINISTRATOR, ''); JLoader::import('helpers.rssfeed', JPATH_COMPONENT_ADMINISTRATOR, ''); JLoader::import('helpers.newsletter', JPATH_COMPONENT_ADMINISTRATOR, ''); JLoader::import('helpers.log', JPATH_COMPONENT_ADMINISTRATOR, ''); JHtml::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'html'); // Add translations used in JavaScript JavascriptHelper::requireTranslations(); // Load 'Migur' group of plugins JPluginHelper::importPlugin('migur'); $app = JFactory::getApplication(); $app->triggerEvent('onMigurNewsletterStart'); // Handle the messages from previous requests