CoreFiles by mySites.guru
import.legacy.php45 lines, 1,259 bytes, from Joomla_6.2.0-Stable-Full_Package.zip
Raw History Compare with 6.1.4
md5
95fd6ff3400cccd7fb07462c32b504fc
sha1
11ff8b054f476b0aa3c601ee1a265a5eb1f6bbba
sha256
c3702cab329c805c7a9e938689812da6dc2edbb28721d7a44989d5ebea3b8d8c
<?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.
 *
 * @copyright  (C) 2012 Open Source Matters, Inc. <https://www.joomla.org>
 * @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
);

// 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_LIBRARIES . '/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();

// Register the PasswordHash lib
JLoader::register('PasswordHash', JPATH_LIBRARIES . '/phpass/PasswordHash.php');

The same content is in 7 releases, Joomla 6.2.0-alpha3 to 6.2.0. See them all, or every version of this file.