2009-05-27 22:47:11 +00:00
|
|
|
<?php
|
2022-06-27 18:18:44 +00:00
|
|
|
|
2009-05-27 22:47:11 +00:00
|
|
|
/**
|
2012-06-30 21:09:54 +00:00
|
|
|
* @package Joomla.Site
|
|
|
|
*
|
2020-11-28 01:33:45 +00:00
|
|
|
* @copyright (C) 2005 Open Source Matters, Inc. <https://www.joomla.org>
|
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
|
|
|
*/
|
|
|
|
|
2021-01-12 10:00:14 +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
|
2016-09-16 23:33:07 +00:00
|
|
|
|
2021-01-12 10:00:14 +00:00
|
|
|
// Define the application's minimum supported PHP version as a constant so it can be referenced within the application.
|
2019-12-02 09:11:46 +00:00
|
|
|
define('JOOMLA_MINIMUM_PHP', '7.2.5');
|
2015-03-21 16:40:19 +00:00
|
|
|
|
|
|
|
if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<')) {
|
2017-11-22 23:33:13 +00:00
|
|
|
die(
|
|
|
|
str_replace(
|
2021-02-25 16:32:37 +00:00
|
|
|
'{{phpversion}}',
|
2018-07-05 19:09:34 +00:00
|
|
|
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';
|