/aamenu/code/trunk/administrator/components/com_aamenu/aamenu.php
PHP | 35 lines | 17 code | 6 blank | 12 comment | 3 complexity | 0de6bc351de185b440608c64b195f550 MD5 | raw file
- <?php
- /**
- * @version $Id: aamenu.php 255 2010-08-20 09:43:07Z eddieajau $
- * @package Artof.AAMenu
- * @subpackage com_aamenu
- * @copyright Copyright (C) 2009 New Life in IT Pty Ltd. All rights reserved.
- * @license GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
- * @link http://www.theartofjoomla.com
- */
- // no direct access
- defined('_JEXEC') or die;
- // Load local language file.
- JFactory::getLanguage()
- ->load('com_aamenu', JPATH_COMPONENT);
- // PHP 5 check
- if (version_compare(PHP_VERSION, '5.2.0', '>')) {
- if (!function_exists('jximport')) {
- require_once JPATH_COMPONENT.'/libraries/jxtended.php';
- }
- // Include dependancies
- jximport('jxtended.application.component.controller');
- require_once JPATH_COMPONENT.'/version.php';
- $controller = JxController::getInstance('AAMenu');
- $controller->execute(JRequest::getCmd('task'));
- $controller->redirect();
- }
- else {
- JError::raiseWarning(500, JText::_('TAOJ_USE_PHP5'));
- }