/pdf/code/trunk/administrator/components/com_artofpdf/artofpdf.php
PHP | 31 lines | 10 code | 6 blank | 15 comment | 0 complexity | e3f4fafeeb22699997d80b9ce3707f77 MD5 | raw file
- <?php
- /**
- * @version $Id: artofpdf.php 278 2010-09-14 11:11:09Z eddieajau $
- * @package NewLifeInIT
- * @subpackage com_artofpdf
- * @copyright Copyright 2010 New Life in IT Pty Ltd. All rights reserved.
- * @license GNU General Public License version 2 or later.
- * @link http://www.theartofjoomla.com
- */
- // No direct access
- defined('_JEXEC') or die;
- // Access check.
- //if (!JFactory::getUser()->authorise('core.manage', 'com_artofpdf')) {
- // return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
- //}
- require_once JPATH_COMPONENT.'/version.php';
- require_once JPATH_COMPONENT.'/libraries/loader.php';
- // Load local language files.
- $lang = JFactory::getLanguage();
- $lang->load('com_artofpdf', JPATH_COMPONENT);
- // Include dependencies
- juimport('joomla.application.component.controller');
- $controller = JController::getInstance('ArtofPdf');
- $controller->execute(JRequest::getVar('task'));
- $controller->redirect();