- md5
- b905b1cde1a0a6da5862129e95031aa9
- sha1
- bf0bc13a824ba22ccde170352c687514bcb2f9a5
- sha256
- 9162c45df19ff4a25715b18f16cf5d96a822de224e9b41843948adbc0b38f771
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
<?php
/**
* @package Joomla.Administrator
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/*
* Joomla! system checks.
*/
@ini_set('magic_quotes_runtime', 0);
/*
* Installation check, and check on removal of the install directory.
*/
if (!file_exists(JPATH_CONFIGURATION.'/configuration.php') || (filesize(JPATH_CONFIGURATION.'/configuration.php') < 10) || file_exists(JPATH_INSTALLATION.'/index.php'))
{
header('Location: ../installation/index.php');
exit();
}
//
// Joomla system startup.
//
// System includes.
require_once JPATH_LIBRARIES.'/import.legacy.php';
JError::setErrorHandling(E_NOTICE, 'message');
JError::setErrorHandling(E_WARNING, 'message');
JError::setErrorHandling(E_ERROR, 'message', array('JError', 'customErrorPage'));
// Botstrap the CMS libraries.
require_once JPATH_LIBRARIES.'/cms.php';
// Pre-Load configuration.
ob_start();
require_once JPATH_CONFIGURATION.'/configuration.php';
ob_end_clean();
// System configuration.
$config = new JConfig;
// Set the error_reporting
switch ($config->error_reporting)
{
case 'default':
case '-1':
break;
case 'none':
case '0':
error_reporting(0);
break;
case 'simple':
error_reporting(E_ERROR | E_WARNING | E_PARSE);
ini_set('display_errors', 1);
break;
case 'maximum':
error_reporting(E_ALL);
ini_set('display_errors', 1);
break;
case 'development':
error_reporting(-1);
ini_set('display_errors', 1);
break;
default:
error_reporting($config->error_reporting);
ini_set('display_errors', 1);
break;
}
define('JDEBUG', $config->debug);
unset($config);
/*
* Joomla! framework loading.
*/
// System profiler.
if (JDEBUG)
{
$_PROFILER = JProfiler::getInstance('Application');
}
The same content is in 7 releases, Joomla 3.0.3 to 3.1.6. See them all, or every version of this file.