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

/pdf/code/trunk/administrator/components/com_artofpdf/install/install.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 27 lines | 11 code | 5 blank | 11 comment | 1 complexity | 20ac293c0f1aa051c75f4a8c12d49acb MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: install.php 289 2010-09-28 01:51:29Z eddieajau $
  4. * @package NewLifeInIT
  5. * @subpackage com_artofpdf
  6. * @copyright Copyright 2010 New Life in IT Pty Ltd. All rights reserved.
  7. * @license GNU General Public License version 2 or later.
  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_artofpdf', JPATH_ADMINISTRATOR.'/components/com_artofpdf');
  15. // PHP 5 check
  16. if (version_compare(PHP_VERSION, '5.2.4', '<')) {
  17. $this->parent->abort(JText::_('TAOJ_USE_PHP5'));
  18. return false;
  19. }
  20. require JPATH_ADMINISTRATOR.'/components/com_artofpdf/version.php';
  21. $version = new ArtofPdfVersion;
  22. echo JText::sprintf('COM_ARTOFPDF_INSTALLED', $version->version.'.'.$version->subversion.' '.$version->status);