mark( 'afterLoad' ) : null;/** * CREATE THE APPLICATION * * NOTE : */$mainframe =& JFactory::getApplication('site');/** * INITIALISE THE APPLICATION * * NOTE : */// set the language$mainframe->initialise();JPluginHelper::importPlugin('system');// trigger the onAfterInitialise eventsJDEBUG ? $_PROFILER->mark('afterInitialise') : null;$mainframe->triggerEvent('onAfterInitialise');/** * ROUTE THE APPLICATION * * NOTE : */$mainframe->route();// authorization$Itemid = JRequest::getInt( 'Itemid');$mainframe->authorize($Itemid);// trigger the onAfterRoute eventsJDEBUG ? $_PROFILER->mark('afterRoute') : null;$mainframe->triggerEvent('onAfterRoute');/** * DISPATCH THE APPLICATION * * NOTE : */$option = JRequest::getCmd('option');$mainframe->dispatch($option);// trigger the onAfterDispatch eventsJDEBUG ? $_PROFILER->mark('afterDispatch') : null;$mainframe->triggerEvent('onAfterDispatch');/** * RENDERTHE APPLICATION * * NOTE : */$mainframe->render();// trigger the onAfterRender eventsJDEBUG ? $_PROFILER->mark('afterRender') : null;$mainframe->triggerEvent('onAfterRender');/** * RETURN THE RESPONSE */echo JResponse::toString($mainframe->getCfg('gzip'));