framework.php

来自「简介:一款免费开源的内容管理系统(CMS)」· PHP 代码 · 共 82 行

PHP
82
字号
<?php/*** @version		$Id: framework.php 10588 2008-07-26 12:20:06Z ircmaxell $* @package		Joomla* @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.* @license		GNU/GPL, see LICENSE.php* Joomla! is free software. This version may have been modified pursuant* to the GNU General Public License, and as distributed it includes or* is derivative of works licensed under the GNU General Public License or* other free or open source software licenses.* See COPYRIGHT.php for copyright notices and details.*/// no direct accessdefined( '_JEXEC' ) or die( 'Restricted access' );/* * Joomla! system checks */@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 . DS . 'configuration.php' ) || (filesize( JPATH_CONFIGURATION . DS . 'configuration.php' ) < 10) || file_exists( JPATH_INSTALLATION . DS . 'index.php' )  ) {	header( 'Location: ../installation/index.php' );	exit();}/* * Joomla! system startup */// System includesrequire_once( JPATH_LIBRARIES		.DS.'joomla'.DS.'import.php');// Pre-Load configurationrequire_once( JPATH_CONFIGURATION	.DS.'configuration.php' );// System configuration$CONFIG = new JConfig();if (@$CONFIG->error_reporting === 0) {	error_reporting( 0 );} else if (@$CONFIG->error_reporting > 0) {	error_reporting( $CONFIG->error_reporting );	ini_set( 'display_errors', 1 );}define( 'JDEBUG', $CONFIG->debug );unset( $CONFIG );/* * Joomla! framework loading */// Include object abstract classrequire_once(JPATH_SITE.DS.'libraries'.DS.'joomla'.DS.'utilities'.DS.'compat'.DS.'compat.php');// System profilerif (JDEBUG) {	jimport( 'joomla.error.profiler' );	$_PROFILER =& JProfiler::getInstance( 'Application' );}// Joomla! library importsjimport( 'joomla.application.menu' );jimport( 'joomla.user.user');jimport( 'joomla.environment.uri' );jimport( 'joomla.html.html' );jimport( 'joomla.html.parameter' );jimport( 'joomla.utilities.utility' );jimport( 'joomla.event.event');jimport( 'joomla.event.dispatcher');jimport( 'joomla.language.language');jimport( 'joomla.utilities.string' );?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?