[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/installation/includes/ -> framework.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Installation
   5   * @subpackage  Application
   6   *
   7   * @copyright   (C) 2005 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  defined('_JEXEC') or die;
  12  
  13  // Ensure sensible default for JDEBUG is set.
  14  const JDEBUG = false;
  15  
  16  // Check if a configuration file already exists.
  17  if (
  18      file_exists(JPATH_CONFIGURATION . '/configuration.php')
  19      && (filesize(JPATH_CONFIGURATION . '/configuration.php') > 10)
  20      && !file_exists(JPATH_INSTALLATION . '/index.php')
  21  ) {
  22      header('Location: ../index.php');
  23      exit();
  24  }
  25  
  26  // Import the Joomla Platform.
  27  require_once JPATH_LIBRARIES . '/bootstrap.php';
  28  
  29  // If debug mode enabled, set new Exception handler with debug enabled.
  30  if (JDEBUG) {
  31      $errorHandler->setExceptionHandler(
  32          [
  33              new \Symfony\Component\ErrorHandler\ErrorHandler(null, true),
  34              'renderException'
  35          ]
  36      );
  37  }


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