[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/ -> index.php (source)

   1  <?php
   2  
   3  /**
   4   * @package    Joomla.Site
   5   *
   6   * @copyright  (C) 2005 Open Source Matters, Inc. <https://www.joomla.org>
   7   * @license    GNU General Public License version 2 or later; see LICENSE.txt
   8   */
   9  
  10  // 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
  11  
  12  // Define the application's minimum supported PHP version as a constant so it can be referenced within the application.
  13  define('JOOMLA_MINIMUM_PHP', '7.2.5');
  14  
  15  if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<')) {
  16      die(
  17          str_replace(
  18              '{{phpversion}}',
  19              JOOMLA_MINIMUM_PHP,
  20              file_get_contents(dirname(__FILE__) . '/templates/system/incompatible.html')
  21          )
  22      );
  23  }
  24  
  25  /**
  26   * Constant that is checked in included files to prevent direct access.
  27   * define() is used rather than "const" to not error for PHP 5.2 and lower
  28   */
  29  define('_JEXEC', 1);
  30  
  31  // Run the application - All executable code should be triggered through this file
  32  require_once dirname(__FILE__) . '/includes/app.php';


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer