Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

86 lines (68 sloc) 2.109 kb
<?php
/**
* @version $Id$
* @package Joomla
* @copyright Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// Set flag that this is a parent file
define( '_JEXEC', 1 );
define('JPATH_BASE', dirname(__FILE__) );
require_once ( JPATH_BASE .'/includes/defines.php' );
require_once ( JPATH_BASE .'/includes/framework.php' );
require_once ( JPATH_BASE .'/includes/application.php' );
/**
* CREATE THE APPLICATION
*
* NOTE :
*/
$mainframe = new JSite();
// looad the configuration settings
$mainframe->setConfiguration(JPATH_CONFIGURATION.DS.'configuration.php');
// create the session
$mainframe->setSession( JURI::resolve('/', -1).$mainframe->getClientId());
/**
* INITIALISE THE APPLICATION
*
* NOTE :
*/
JPluginHelper::importPlugin('system');
// set the language
$mainframe->initialise();
// trigger the onAfterInitialise events
JDEBUG ? $_PROFILER->mark('afterInitialise') : null;
$mainframe->triggerEvent('onAfterInitialise');
// authorization
$Itemid = JSiteHelper::findItemid();
$mainframe->authorize($Itemid);
// set for overlib check
$mainframe->set('loadOverlib', false);
/**
* EXECUTE THE APPLICATION
*
* NOTE :
*/
$option = JSiteHelper::findOption();
$mainframe->execute($option);
// trigger the onAfterDisplay events
JDEBUG ? $_PROFILER->mark('afterExecute') : null;
$mainframe->triggerEvent('onAfterExecute');
/**
* DISPLAY THE APPLICATION
*
* NOTE :
*/
$mainframe->display($option);
// trigger the onAfterDisplay events
JDEBUG ? $_PROFILER->mark('afterDisplay') : null;
$mainframe->triggerEvent('onAfterDisplay');
/**
* RETURN THE RESPONSE
*/
echo JResponse::toString($mainframe->getCfg('gzip'));
?>
Jump to Line
Something went wrong with that request. Please try again.