| Joomla! | PHP Cross Reference | Web Portals |
1 <?php 2 /** 3 * @package Joomla.Administrator 4 * 5 * @copyright Copyright (C) 2005 - 2012 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.1', '<')) 10 { 11 die('Your host needs to use PHP 5.3.1 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 include_once __DIR__ . '/defines.php'; 22 } 23 24 if (!defined('_JDEFINES')) { 25 define('JPATH_BASE', __DIR__); 26 require_once JPATH_BASE.'/includes/defines.php'; 27 } 28 29 require_once JPATH_BASE.'/includes/framework.php'; 30 require_once JPATH_BASE.'/includes/helper.php'; 31 require_once JPATH_BASE.'/includes/toolbar.php'; 32 33 // Mark afterLoad in the profiler. 34 JDEBUG ? $_PROFILER->mark('afterLoad') : null; 35 36 // Instantiate the application. 37 $app = JFactory::getApplication('administrator'); 38 39 // Initialise the application. 40 $app->initialise( 41 array('language' => $app->getUserState('application.lang')) 42 ); 43 44 // Mark afterIntialise in the profiler. 45 JDEBUG ? $_PROFILER->mark('afterInitialise') : null; 46 47 // Route the application. 48 $app->route(); 49 50 // Mark afterRoute in the profiler. 51 JDEBUG ? $_PROFILER->mark('afterRoute') : null; 52 53 // Dispatch the application. 54 $app->dispatch(); 55 56 // Mark afterDispatch in the profiler. 57 JDEBUG ? $_PROFILER->mark('afterDispatch') : null; 58 59 // Render the application. 60 $app->render(); 61 62 // Mark afterRender in the profiler. 63 JDEBUG ? $_PROFILER->mark('afterRender') : null; 64 65 // Return the response. 66 echo $app;
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
title