2009-05-27 22:47:11 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2012-06-30 21:09:54 +00:00
|
|
|
* @package Joomla.Site
|
|
|
|
*
|
2019-03-09 10:20:38 +00:00
|
|
|
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
|
2012-06-30 21:09:54 +00:00
|
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
2009-05-27 22:47:11 +00:00
|
|
|
*/
|
|
|
|
|
2017-02-24 17:36:30 +00:00
|
|
|
/**
|
2016-09-16 23:33:07 +00:00
|
|
|
* NOTE: This file should remain compatible with PHP 5.2 to allow us to run our PHP minimum check and show a friendly error message
|
|
|
|
*/
|
|
|
|
|
2017-02-24 17:36:30 +00:00
|
|
|
/**
|
2015-03-21 16:40:19 +00:00
|
|
|
* Define the application's minimum supported PHP version as a constant so it can be referenced within the application.
|
|
|
|
*/
|
2019-06-17 14:25:08 +00:00
|
|
|
define('JOOMLA_MINIMUM_PHP', '7.2');
|
2015-03-21 16:40:19 +00:00
|
|
|
|
|
|
|
if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<'))
|
2012-09-22 14:48:06 +00:00
|
|
|
{
|
2017-11-22 23:33:13 +00:00
|
|
|
die(
|
|
|
|
str_replace(
|
2018-07-05 19:09:34 +00:00
|
|
|
'{{PHP_VERSION}}',
|
|
|
|
JOOMLA_MINIMUM_PHP,
|
2017-11-22 23:33:13 +00:00
|
|
|
file_get_contents(dirname(__FILE__) . '/templates/system/incompatible.html')
|
|
|
|
)
|
|
|
|
);
|
2012-09-22 14:48:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Constant that is checked in included files to prevent direct access.
|
2017-02-24 17:53:03 +00:00
|
|
|
* define() is used rather than "const" to not error for PHP 5.2 and lower
|
2012-09-22 14:48:06 +00:00
|
|
|
*/
|
|
|
|
define('_JEXEC', 1);
|
2009-05-27 22:47:11 +00:00
|
|
|
|
2017-02-24 17:32:40 +00:00
|
|
|
// Run the application - All executable code should be triggered through this file
|
2017-02-24 17:41:16 +00:00
|
|
|
require_once dirname(__FILE__) . '/includes/app.php';
|