Guest User

Untitled

a guest
Jul 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.35 KB | None | 0 0
  1. <?php
  2. ob_start();
  3. /**
  4.  * @package     Joomla.Site
  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.  
  10. // Set flag that this is a parent file.
  11. define('_JEXEC', 1);
  12. define('DS', DIRECTORY_SEPARATOR);
  13.  
  14. if (file_exists(dirname(__FILE__) . '/defines.php')) {
  15.     include_once dirname(__FILE__) . '/defines.php';
  16. }
  17.  
  18. if (!defined('_JDEFINES')) {
  19.     define('JPATH_BASE', dirname(__FILE__));
  20.     require_once JPATH_BASE.'/includes/defines.php';
  21. }
  22.  
  23. require_once JPATH_BASE.'/includes/framework.php';
  24.  
  25. // Mark afterLoad in the profiler.
  26. JDEBUG ? $_PROFILER->mark('afterLoad') : null;
  27.  
  28. // Instantiate the application.
  29. $app = JFactory::getApplication('site');
  30.  
  31. // Initialise the application.
  32. $app->initialise();
  33.  
  34. // Mark afterIntialise in the profiler.
  35. JDEBUG ? $_PROFILER->mark('afterInitialise') : null;
  36.  
  37. // Route the application.
  38. $app->route();
  39.  
  40. // Mark afterRoute in the profiler.
  41. JDEBUG ? $_PROFILER->mark('afterRoute') : null;
  42.  
  43. // Dispatch the application.
  44. $app->dispatch();
  45.  
  46. // Mark afterDispatch in the profiler.
  47. JDEBUG ? $_PROFILER->mark('afterDispatch') : null;
  48.  
  49. // Render the application.
  50. $app->render();
  51.  
  52. // Mark afterRender in the profiler.
  53. JDEBUG ? $_PROFILER->mark('afterRender') : null;
  54.  
  55. // Return the response.
  56. echo $app;
Add Comment
Please, Sign In to add comment