[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Bootstrap file for the Joomla Platform. Including this file into your application will make Joomla 5 * Platform libraries available for use. 6 * 7 * @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 trigger_error( 12 sprintf( 13 'Bootstrapping Joomla using the %1$s file is deprecated. Use %2$s instead.', 14 __FILE__, 15 __DIR__ . '/bootstrap.php' 16 ), 17 E_USER_DEPRECATED 18 ); 19 20 // Set the platform root path as a constant if necessary. 21 if (!defined('JPATH_PLATFORM')) { 22 define('JPATH_PLATFORM', __DIR__); 23 } 24 25 // Detect the native operating system type. 26 $os = strtoupper(substr(PHP_OS, 0, 3)); 27 28 if (!defined('IS_WIN')) { 29 define('IS_WIN', $os === 'WIN'); 30 } 31 32 if (!defined('IS_UNIX')) { 33 define('IS_UNIX', IS_WIN === false); 34 } 35 36 // Import the library loader if necessary. 37 if (!class_exists('JLoader')) { 38 require_once JPATH_PLATFORM . '/loader.php'; 39 } 40 41 // Make sure that the Joomla Platform has been successfully loaded. 42 if (!class_exists('JLoader')) { 43 throw new RuntimeException('Joomla Platform not loaded.'); 44 } 45 46 // Setup the autoloaders. 47 JLoader::setup(); 48 49 // Register the PasswordHash lib 50 JLoader::register('PasswordHash', JPATH_PLATFORM . '/phpass/PasswordHash.php');
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |