Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. <?php
  2. /**
  3. * @version $Id: index.php 14401 2010-01-26 14:10:00Z louis $
  4. * @package Joomla
  5. * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
  6. * @license GNU/GPL, see LICENSE.php
  7. * Joomla! is free software. This version may have been modified pursuant
  8. * to the GNU General Public License, and as distributed it includes or
  9. * is derivative of works licensed under the GNU General Public License or
  10. * other free or open source software licenses.
  11. * See COPYRIGHT.php for copyright notices and details.
  12. */
  13.  
  14. // Set flag that this is a parent file
  15. define( '_JEXEC', 1 );
  16.  
  17. define('JPATH_BASE', dirname(__FILE__) );
  18.  
  19. define( 'DS', DIRECTORY_SEPARATOR );
  20.  
  21.  
  22. require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
  23. require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
  24. JDEBUG ? $_PROFILER->mark( 'afterLoad' ) : null;
  25.  
  26. /**
  27. * CREATE THE APPLICATION
  28. *
  29. * NOTE :
  30. */
  31. $mainframe =& JFactory::getApplication('site');
  32.  
  33. /**
  34. * INITIALISE THE APPLICATION
  35. *
  36. * NOTE :
  37. */
  38. // set the language
  39. $mainframe->initialise();
  40.  
  41. JPluginHelper::importPlugin('system');
  42.  
  43. // trigger the onAfterInitialise events
  44. JDEBUG ? $_PROFILER->mark('afterInitialise') : null;
  45. $mainframe->triggerEvent('onAfterInitialise');
  46.  
  47. /**
  48. * ROUTE THE APPLICATION
  49. *
  50. * NOTE :
  51. */
  52. $mainframe->route();
  53.  
  54. // authorization
  55. $Itemid = JRequest::getInt( 'Itemid');
  56. $mainframe->authorize($Itemid);
  57.  
  58. // trigger the onAfterRoute events
  59. JDEBUG ? $_PROFILER->mark('afterRoute') : null;
  60. $mainframe->triggerEvent('onAfterRoute');
  61.  
  62. /**
  63. * DISPATCH THE APPLICATION
  64. *
  65. * NOTE :
  66. */
  67. $option = JRequest::getCmd('option');
  68. $mainframe->dispatch($option);
  69.  
  70. // trigger the onAfterDispatch events
  71. JDEBUG ? $_PROFILER->mark('afterDispatch') : null;
  72. $mainframe->triggerEvent('onAfterDispatch');
  73.  
  74. /**
  75. * RENDER THE APPLICATION
  76. *
  77. * NOTE :
  78. */
  79. $mainframe->render();
  80.  
  81. // trigger the onAfterRender events
  82. JDEBUG ? $_PROFILER->mark('afterRender') : null;
  83. $mainframe->triggerEvent('onAfterRender');
  84.  
  85. /**
  86. * RETURN THE RESPONSE
  87. */
  88. echo JResponse::toString($mainframe->getCfg('gzip'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement