13 if (!defined(
'JPATH_PLATFORM'))
15 define(
'JPATH_PLATFORM', __DIR__);
19 $os = strtoupper(substr(PHP_OS, 0, 3));
21 if (!defined(
'IS_WIN'))
23 define(
'IS_WIN', (
$os ===
'WIN') ?
true :
false);
25 if (!defined(
'IS_UNIX'))
27 define(
'IS_UNIX', ((
$os !==
'MAC') && (
$os !==
'WIN')) ?
true :
false);
33 if (!defined(
'IS_MAC'))
35 define(
'IS_MAC', (IS_UNIX ===
true && (
$os ===
'DAR' ||
$os ===
'MAC')) ?
true :
false);
39 if (!class_exists(
'JPlatform'))
41 require_once JPATH_PLATFORM .
'/platform.php';
45 if (!class_exists(
'JLoader'))
47 require_once JPATH_PLATFORM .
'/loader.php';
51 if (!class_exists(
'JLoader'))
53 throw new RuntimeException(
'Joomla Platform not loaded.');
69 if (version_compare(PHP_VERSION,
'5.4.0',
'<'))
76 define(
'JPATH_ISWIN', IS_WIN);
77 define(
'JPATH_ISMAC', IS_MAC);
81 JLoader::register(
'JSimpleCrypt', JPATH_PLATFORM .
'/legacy/simplecrypt/simplecrypt.php');
86 JLoader::register(
'LogException', JPATH_PLATFORM .
'/legacy/log/logexception.php');
87 JLoader::register(
'JXMLElement', JPATH_PLATFORM .
'/legacy/utilities/xmlelement.php');
92 JLoader::register(
'JApplication', JPATH_LIBRARIES .
'/legacy/application/application.php');