| [ Index ] |
PHP Cross Reference of Joomla 2.5.4 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Joomla.Site 4 * @subpackage Application 5 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. 6 * @license GNU General Public License version 2 or later; see LICENSE.txt 7 */ 8 9 // No direct access. 10 defined('_JEXEC') or die; 11 12 // 13 // Joomla system checks. 14 // 15 16 @ini_set('magic_quotes_runtime', 0); 17 @ini_set('zend.ze1_compatibility_mode', '0'); 18 19 // 20 // Installation check, and check on removal of the install directory. 21 // 22 23 if (!file_exists(JPATH_CONFIGURATION.'/configuration.php') || (filesize(JPATH_CONFIGURATION.'/configuration.php') < 10) || file_exists(JPATH_INSTALLATION.'/index.php')) { 24 25 if (file_exists(JPATH_INSTALLATION.'/index.php')) { 26 header('Location: '.substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'], 'index.php')).'installation/index.php'); 27 exit(); 28 } else { 29 echo 'No configuration file found and no installation code available. Exiting...'; 30 exit(); 31 } 32 } 33 34 // 35 // Joomla system startup. 36 // 37 38 // System includes. 39 require_once JPATH_LIBRARIES.'/import.php'; 40 41 // Force library to be in JError legacy mode 42 JError::$legacy = true; 43 JError::setErrorHandling(E_NOTICE, 'message'); 44 JError::setErrorHandling(E_WARNING, 'message'); 45 JError::setErrorHandling(E_ERROR, 'message', array('JError', 'customErrorPage')); 46 47 // Botstrap the CMS libraries. 48 require_once JPATH_LIBRARIES.'/cms.php'; 49 50 // Pre-Load configuration. 51 ob_start(); 52 require_once JPATH_CONFIGURATION.'/configuration.php'; 53 ob_end_clean(); 54 55 // System configuration. 56 $config = new JConfig(); 57 58 // Set the error_reporting 59 switch ($config->error_reporting) 60 { 61 case 'default': 62 case '-1': 63 break; 64 65 case 'none': 66 case '0': 67 error_reporting(0); 68 break; 69 70 case 'simple': 71 error_reporting(E_ERROR | E_WARNING | E_PARSE); 72 ini_set('display_errors', 1); 73 break; 74 75 case 'maximum': 76 error_reporting(E_ALL); 77 ini_set('display_errors', 1); 78 break; 79 80 case 'development': 81 error_reporting(-1); 82 ini_set('display_errors', 1); 83 break; 84 85 default: 86 error_reporting($config->error_reporting); 87 ini_set('display_errors', 1); 88 break; 89 } 90 91 define('JDEBUG', $config->debug); 92 93 unset($config); 94 95 // 96 // Joomla framework loading. 97 // 98 99 // System profiler. 100 if (JDEBUG) { 101 jimport('joomla.error.profiler'); 102 $_PROFILER = JProfiler::getInstance('Application'); 103 } 104 105 // 106 // Joomla library imports. 107 // 108 109 jimport('joomla.application.menu'); 110 jimport('joomla.environment.uri'); 111 jimport('joomla.utilities.utility'); 112 jimport('joomla.event.dispatcher'); 113 jimport('joomla.utilities.arrayhelper');
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Apr 3 11:40:28 2012 | Cross-referenced by PHPXref 0.7.1 |