[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/administrator/includes/ -> framework.php (source)

   1  <?php
   2  /**
   3  * @version        $Id: framework.php 22952 2012-03-27 00:40:16Z dextercowley $
   4  * @package        Joomla
   5  * @copyright    Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.
   6  * @license        GNU/GPL, see LICENSE.php
   7  * Joomla! is free software. This version may have been modified pursuant
   8  * to the GNU General Public License, and as distributed it includes or
   9  * is derivative of works licensed under the GNU General Public License or
  10  * other free or open source software licenses.
  11  * See COPYRIGHT.php for copyright notices and details.
  12  */
  13  
  14  // no direct access
  15  defined( '_JEXEC' ) or die( 'Restricted access' );
  16  
  17  /*
  18   * Joomla! system checks
  19   */
  20  
  21  @set_magic_quotes_runtime( 0 );
  22  @ini_set('zend.ze1_compatibility_mode', '0');
  23  
  24  /*
  25   * Installation check, and check on removal of the install directory.
  26   */
  27  if (!file_exists( JPATH_CONFIGURATION . DS . 'configuration.php' ) || (filesize( JPATH_CONFIGURATION . DS . 'configuration.php' ) < 10) || file_exists( JPATH_INSTALLATION . DS . 'index.php' )) {
  28      header( 'Location: ../installation/index.php' );
  29      exit();
  30  }
  31  
  32  /*
  33   * Joomla! system startup
  34   */
  35  
  36  // System includes
  37  require_once( JPATH_LIBRARIES        .DS.'joomla'.DS.'import.php');
  38  
  39  // Pre-Load configuration
  40  require_once( JPATH_CONFIGURATION    .DS.'configuration.php' );
  41  
  42  // System configuration
  43  $CONFIG = new JConfig();
  44  
  45  if (@$CONFIG->error_reporting === 0) {
  46      error_reporting( 0 );
  47  } else if (@$CONFIG->error_reporting > 0) {
  48      error_reporting( $CONFIG->error_reporting );
  49      ini_set( 'display_errors', 1 );
  50  }
  51  
  52  define( 'JDEBUG', $CONFIG->debug );
  53  
  54  unset( $CONFIG );
  55  
  56  /*
  57   * Joomla! framework loading
  58   */
  59  
  60  // Include object abstract class
  61  require_once (JPATH_SITE.DS.'libraries'.DS.'joomla'.DS.'utilities'.DS.'compat'.DS.'compat.php');
  62  
  63  // System profiler
  64  if (JDEBUG) {
  65      jimport( 'joomla.error.profiler' );
  66      $_PROFILER =& JProfiler::getInstance( 'Application' );
  67  }
  68  
  69  // Joomla! library imports
  70  jimport( 'joomla.application.menu' );
  71  jimport( 'joomla.user.user');
  72  jimport( 'joomla.environment.uri' );
  73  jimport( 'joomla.html.html' );
  74  jimport( 'joomla.html.parameter' );
  75  jimport( 'joomla.utilities.utility' );
  76  jimport( 'joomla.event.event');
  77  jimport( 'joomla.event.dispatcher');
  78  jimport( 'joomla.language.language');
  79  jimport( 'joomla.utilities.string' );
  80  
  81  ?>


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1