ToKeiChun

index.php [CMS Joomla]

Sep 19th, 2020 (edited)
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.43 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @package    Joomla.Site
  4.  *
  5.  * @copyright  Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
  6.  * @license    GNU General Public License version 2 or later; see LICENSE.txt
  7.  */
  8.  
  9. /**
  10.  * Define the application's minimum supported PHP version as a constant so it can be referenced within the application.
  11.  */
  12. define('JOOMLA_MINIMUM_PHP', '5.3.10');
  13.  
  14. if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<'))
  15. {
  16.     die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP . ' or higher to run this version of Joomla!');
  17. }
  18.  
  19. // Saves the start time and memory usage.
  20. $startTime = microtime(1);
  21. $startMem  = memory_get_usage();
  22.  
  23. /**
  24.  * Constant that is checked in included files to prevent direct access.
  25.  * define() is used in the installation folder rather than "const" to not error for PHP 5.2 and lower
  26.  */
  27. define('_JEXEC', 1);
  28.  
  29. if (file_exists(__DIR__ . '/defines.php'))
  30. {
  31.     include_once __DIR__ . '/defines.php';
  32. }
  33.  
  34. if (!defined('_JDEFINES'))
  35. {
  36.     define('JPATH_BASE', __DIR__);
  37.     require_once JPATH_BASE . '/includes/defines.php';
  38. }
  39.  
  40. require_once JPATH_BASE . '/includes/framework.php';
  41.  
  42. // Set profiler start time and memory usage and mark afterLoad in the profiler.
  43. JDEBUG ? JProfiler::getInstance('Application')->setStart($startTime, $startMem)->mark('afterLoad') : null;
  44.  
  45. // Instantiate the application.
  46. $app = JFactory::getApplication('site');
  47.  
  48. // Execute the application.
  49. $app->execute();
  50.  
Add Comment
Please, Sign In to add comment