PageRenderTime 36ms CodeModel.GetById 7ms RepoModel.GetById 0ms app.codeStats 0ms

/aamenu/code/trunk/administrator/components/com_aamenu/aamenu.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 35 lines | 17 code | 6 blank | 12 comment | 3 complexity | 0de6bc351de185b440608c64b195f550 MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: aamenu.php 255 2010-08-20 09:43:07Z eddieajau $
  4. * @package Artof.AAMenu
  5. * @subpackage com_aamenu
  6. * @copyright Copyright (C) 2009 New Life in IT Pty Ltd. All rights reserved.
  7. * @license GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
  8. * @link http://www.theartofjoomla.com
  9. */
  10. // no direct access
  11. defined('_JEXEC') or die;
  12. // Load local language file.
  13. JFactory::getLanguage()
  14. ->load('com_aamenu', JPATH_COMPONENT);
  15. // PHP 5 check
  16. if (version_compare(PHP_VERSION, '5.2.0', '>')) {
  17. if (!function_exists('jximport')) {
  18. require_once JPATH_COMPONENT.'/libraries/jxtended.php';
  19. }
  20. // Include dependancies
  21. jximport('jxtended.application.component.controller');
  22. require_once JPATH_COMPONENT.'/version.php';
  23. $controller = JxController::getInstance('AAMenu');
  24. $controller->execute(JRequest::getCmd('task'));
  25. $controller->redirect();
  26. }
  27. else {
  28. JError::raiseWarning(500, JText::_('TAOJ_USE_PHP5'));
  29. }