CoreFiles by mySites.guru
framework.php37 lines, 967 bytes, from Joomla_4.2.0-beta3-Beta-Full_Package.zip
Raw History Compare with 4.2.0-beta2
md5
3f1d85410baee8fb72493e3d26b1c4b6
sha1
a6028a7d3048467feab4079c5fd0baa8834674ac
sha256
449d5b5491df7a36be9d8e7926a813ec4bdf91e145a81c77ede44aae8503b403
<?php

/**
 * @package     Joomla.Installation
 * @subpackage  Application
 *
 * @copyright   (C) 2005 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

// Ensure sensible default for JDEBUG is set.
const JDEBUG = false;

// Check if a configuration file already exists.
if (
    file_exists(JPATH_CONFIGURATION . '/configuration.php')
    && (filesize(JPATH_CONFIGURATION . '/configuration.php') > 10)
    && !file_exists(JPATH_INSTALLATION . '/index.php')
) {
    header('Location: ../index.php');
    exit();
}

// Import the Joomla Platform.
require_once JPATH_LIBRARIES . '/bootstrap.php';

// If debug mode enabled, set new Exception handler with debug enabled.
if (JDEBUG) {
    $errorHandler->setExceptionHandler(
        [
            new \Symfony\Component\ErrorHandler\ErrorHandler(null, true),
            'renderException'
        ]
    );
}

The same content is in 22 releases, Joomla 4.2.0-beta3 to 4.3.0-alpha3. See them all, or every version of this file.