CoreFiles by mySites.guru
import.php45 lines, 1,196 bytes, from Joomla_6.2.0-Stable-Full_Package.zip
Raw History Compare with 6.1.4
md5
bf18a534be9ba98800bdc5b073aab962
sha1
c012e0532d2ff02a6513b7554b52f4ff36ed0c16
sha256
11c5eeb021488c1ba4ee37dc1e1394c115fb223c2345f2fece123e98fbeb04fe
<?php

/**
 * Bootstrap file for the Joomla Platform.  Including this file into your application will make Joomla
 * Platform libraries available for use.
 *
 * @copyright  (C) 2011 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', IS_WIN === false);
}

// Import the library loader if necessary.
if (!class_exists('JLoader')) {
    require_once JPATH_LIBRARIES . '/loader.php';
}

// Make sure that the Joomla Platform has been successfully loaded.
if (!class_exists('JLoader')) {
    throw new RuntimeException('Joomla Platform 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.