PageRenderTime 46ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/googlemini/code/trunk/administrator/components/com_artofgm/install/install.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 46 lines | 24 code | 7 blank | 15 comment | 3 complexity | b5bd359eed73b3983b978789bec75b62 MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: install.php 518 2011-01-07 06:36:43Z eddieajau $
  4. * @package NewLifeInIT
  5. * @subpackage com_artofgm
  6. * @copyright Copyright 2011 New Life in IT Pty Ltd. All rights reserved
  7. * @license GNU General Public License <http://www.fsf.org/licensing/licenses/gpl.html>
  8. * @link http://www.theartofjoomla.com
  9. */
  10. // No direct access.
  11. defined('_JEXEC') or die;
  12. // Load the component language file
  13. $language = JFactory::getLanguage();
  14. $language->load('com_artofgm', JPATH_ADMINISTRATOR.'/components/com_artofgm');
  15. // PHP 5 check
  16. if (version_compare(PHP_VERSION, '5.2.4', '<')) {
  17. $this->parent->abort(JText::_('J_USE_PHP5'));
  18. return false;
  19. }
  20. // Include dependancies.
  21. require_once dirname(__FILE__).'/helper.php';
  22. require_once dirname(dirname(__FILE__)).'/version.php';
  23. // Install the modules.
  24. $modules = PackageInstallerHelper::installModules($this);
  25. if ($modules === false) {
  26. return false;
  27. }
  28. // Install the plugins.
  29. $plugins = PackageInstallerHelper::installPlugins($this);
  30. if ($plugins === false) {
  31. return false;
  32. }
  33. // Display the results.
  34. PackageInstallerHelper::displayInstalled(
  35. $modules,
  36. $plugins,
  37. JText::sprintf('COM_ARTOFGM_INSTALLED', ArtofGMVersion::getVersion(false, true)),
  38. JText::_('ARTOFGM')
  39. );