- md5
- e95a8e0a022eb456e7697e58f79de33c
- sha1
- 3f0a17060282dbaa9f9435c227fe2a37e4d74cc7
- sha256
- 0e832d65f51f99e338beb36367353e66bb519ca4b2e27975a4bcd998c58b6e29
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
<?php
/**
* @version $Id: framework.php 22383 2011-11-14 01:52:45Z github_bot $
* @package Joomla.Site
* @subpackage Application
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access.
defined('_JEXEC') or die;
//
// Joomla system checks.
//
@ini_set('magic_quotes_runtime', 0);
@ini_set('zend.ze1_compatibility_mode', '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')) {
if (file_exists(JPATH_INSTALLATION.'/index.php')) {
header('Location: '.substr($_SERVER['REQUEST_URI'],0,strpos($_SERVER['REQUEST_URI'],'index.php')).'installation/index.php');
exit();
} else {
echo 'No configuration file found and no installation code available. Exiting...';
exit();
}
}
//
// Joomla system startup.
//
// Import the cms version library if necessary.
if (!class_exists('JVersion')) {
require JPATH_ROOT.'/includes/version.php';
}
// System includes.
require_once JPATH_LIBRARIES.'/import.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) {
jimport('joomla.error.profiler');
$_PROFILER = JProfiler::getInstance('Application');
}
//
// Joomla library imports.
//
jimport('joomla.application.menu');
jimport('joomla.user.user');
jimport('joomla.environment.uri');
jimport('joomla.filter.filterinput');
jimport('joomla.filter.filteroutput');
jimport('joomla.html.html');
jimport('joomla.utilities.utility');
jimport('joomla.event.event');
jimport('joomla.event.dispatcher');
jimport('joomla.language.language');
jimport('joomla.utilities.string');
jimport('joomla.utilities.arrayhelper');
The same content is in 3 releases, Joomla 1.7.3 to 1.7.5. See them all, or every version of this file.