- md5
- 92d6f97219e4c042f6e4265f21aa0075
- sha1
- 3f8c66bd7541472f3e8b5914204cc8b4ee00e57c
- sha256
- a9396785bf56f75469de766cd271606e25140d7a7101b0774e34b3bd508f61a1
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
<?php
/**
* Bootstrap file for the Joomla Platform [with legacy libraries]. Including this file into your application
* will make Joomla Platform libraries [including legacy libraries] available for use.
*
* @package Joomla.Platform
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
trigger_error(
sprintf(
'Bootstrapping Joomla using the %1$s file is deprecated. Use %2$s instead.',
__FILE__,
__DIR__ . '/bootstrap.php'
),
E_USER_DEPRECATED
);
// Set the platform root path as a constant if necessary.
if (!defined('JPATH_PLATFORM'))
{
define('JPATH_PLATFORM', __DIR__);
}
// Detect the native operating system type.
$os = strtoupper(substr(PHP_OS, 0, 3));
if (!defined('IS_WIN'))
{
define('IS_WIN', $os === 'WIN');
}
if (!defined('IS_UNIX'))
{
define('IS_UNIX', $os !== 'MAC' && $os !== 'WIN');
}
// Import the library loader if necessary.
if (!class_exists('JLoader'))
{
require_once JPATH_PLATFORM . '/loader.php';
}
// Make sure that the Joomla Loader has been successfully loaded.
if (!class_exists('JLoader'))
{
throw new RuntimeException('Joomla Loader not loaded.');
}
// Setup the autoloaders.
JLoader::setup();
// Check if the JsonSerializable interface exists already
if (!interface_exists('JsonSerializable'))
{
JLoader::register('JsonSerializable', JPATH_PLATFORM . '/vendor/joomla/compat/src/JsonSerializable.php');
}
// Register the PasswordHash lib
JLoader::register('PasswordHash', JPATH_PLATFORM . '/phpass/PasswordHash.php');
The same content is in 3 releases, Joomla 4.0.0-alpha3 to 4.0.0-alpha6. See them all, or every version of this file.