[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/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      if( file_exists( JPATH_INSTALLATION . DS . 'index.php' ) ) {
  29          header( 'Location: installation/index.php' );
  30          exit();
  31      } else {
  32          echo 'No configuration file found and no installation code available. Exiting...';
  33          exit();
  34      }
  35  }
  36  
  37  
  38  /*
  39   * Joomla! system startup
  40   */
  41  
  42  // System includes
  43  require_once( JPATH_LIBRARIES        .DS.'joomla'.DS.'import.php');
  44  
  45  // Pre-Load configuration
  46  require_once( JPATH_CONFIGURATION    .DS.'configuration.php' );
  47  
  48  // System configuration
  49  $CONFIG = new JConfig();
  50  
  51  if (@$CONFIG->error_reporting === 0) {
  52      error_reporting( 0 );
  53  } else if (@$CONFIG->error_reporting > 0) {
  54      error_reporting( $CONFIG->error_reporting );
  55      ini_set( 'display_errors', 1 );
  56  }
  57  
  58  define( 'JDEBUG', $CONFIG->debug );
  59  
  60  unset( $CONFIG );
  61  
  62  /*
  63   * Joomla! framework loading
  64   */
  65  
  66  // Include object abstract class
  67  require_once (JPATH_SITE.DS.'libraries'.DS.'joomla'.DS.'utilities'.DS.'compat'.DS.'compat.php');
  68  
  69  // System profiler
  70  if (JDEBUG) {
  71      jimport( 'joomla.error.profiler' );
  72      $_PROFILER =& JProfiler::getInstance( 'Application' );
  73  }
  74  
  75  // Joomla! library imports;
  76  jimport( 'joomla.application.menu' );
  77  jimport( 'joomla.user.user');
  78  jimport( 'joomla.environment.uri' );
  79  jimport( 'joomla.html.html' );
  80  jimport( 'joomla.utilities.utility' );
  81  jimport( 'joomla.event.event');
  82  jimport( 'joomla.event.dispatcher');
  83  jimport( 'joomla.language.language');
  84  jimport( 'joomla.utilities.string' );
  85  ?>


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