Worpress


SUBMITTED BY: developper

DATE: Oct. 11, 2015, 7:35 p.m.

FORMAT: PHP

SIZE: 1.3 kB

HITS: 673

  1. <?php
  2. /**
  3. * @package Joomla.Site
  4. *
  5. * @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
  6. * @license GNU General Public License version 2 or later; see LICENSE.txt
  7. */
  8. /**
  9. * Define the application's minimum supported PHP version as a constant so it can be referenced within the application.
  10. */
  11. define('JOOMLA_MINIMUM_PHP', '5.3.10');
  12. if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<'))
  13. {
  14. die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP . ' or higher to run this version of Joomla!');
  15. }
  16. /**
  17. * Constant that is checked in included files to prevent direct access.
  18. * define() is used in the installation folder rather than "const" to not error for PHP 5.2 and lower
  19. */
  20. define('_JEXEC', 1);
  21. if (file_exists(__DIR__ . '/defines.php'))
  22. {
  23. include_once __DIR__ . '/defines.php';
  24. }
  25. if (!defined('_JDEFINES'))
  26. {
  27. define('JPATH_BASE', __DIR__);
  28. require_once JPATH_BASE . '/includes/defines.php';
  29. }
  30. require_once JPATH_BASE . '/includes/framework.php';
  31. // Mark afterLoad in the profiler.
  32. JDEBUG ? $_PROFILER->mark('afterLoad') : null;
  33. // Instantiate the application.
  34. $app = JFactory::getApplication('site');
  35. // Execute the application.
  36. $app->execute();

comments powered by Disqus