PageRenderTime 47ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/contentmanager/code/trunk/administrator/components/com_contentmanager/contentmanager.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 40 lines | 17 code | 9 blank | 14 comment | 1 complexity | 8f421239f17a54ef18f3d874c70505c5 MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: contentmanager.php 160 2009-07-09 00:06:09Z eddieajau $
  4. * @package TAOJ.ContentManager
  5. * @subpackage com_contentmanager
  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. // PHP 5 check
  13. if (version_compare(PHP_VERSION, '5.0.0', '<')) {
  14. return JError::raiseWarning(500, JText::_('TAOJ_Use_PHP5'));
  15. }
  16. // Include dependancies
  17. require_once JPATH_COMPONENT.DS.'libraries'.DS.'jxtended.php';
  18. jximport2('jxtended.application.component.controller');
  19. // Check version
  20. require_once JPATH_COMPONENT.DS.'version.php';
  21. $version = new ContentManagerVersion;
  22. $version->showUpgrades();
  23. // Include dependancies
  24. jximport2('jxtended.application.component.controller');
  25. $lang = JFactory::getLanguage();
  26. $lang->load('override-com_control');
  27. $controller = JxController::getInstance('ContentManager');
  28. $controller->execute(JRequest::getCmd('task'));
  29. $controller->redirect();
  30. // Display the copyright notice and version
  31. $version->showFooter();