[ Index ]

PHP Cross Reference of Joomla 3.3.0

title

Body

[close]

/ -> index.php (source)

   1  <?php
   2  /**
   3   * @package    Joomla.Site
   4   *
   5   * @copyright  Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
   6   * @license    GNU General Public License version 2 or later; see LICENSE.txt
   7   */
   8  
   9  if (version_compare(PHP_VERSION, '5.3.10', '<'))
  10  {
  11      die('Your host needs to use PHP 5.3.10 or higher to run this version of Joomla!');
  12  }
  13  
  14  /**
  15   * Constant that is checked in included files to prevent direct access.
  16   * define() is used in the installation folder rather than "const" to not error for PHP 5.2 and lower
  17   */
  18  define('_JEXEC', 1);
  19  
  20  if (file_exists(__DIR__ . '/defines.php'))
  21  {
  22      include_once  __DIR__ . '/defines.php';
  23  }
  24  
  25  if (!defined('_JDEFINES'))
  26  {
  27      define('JPATH_BASE', __DIR__);
  28      require_once  JPATH_BASE . '/includes/defines.php';
  29  }
  30  
  31  require_once  JPATH_BASE . '/includes/framework.php';
  32  
  33  // Mark afterLoad in the profiler.
  34  JDEBUG ? $_PROFILER->mark('afterLoad') : null;
  35  
  36  // Instantiate the application.
  37  $app = JFactory::getApplication('site');
  38  
  39  // Execute the application.
  40  $app->execute();


Generated: Fri May 2 13:54:24 2014 Cross-referenced by PHPXref 0.7.1