[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

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

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


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