Инициализация работы Joomla
// Set flag that this is a parent file.
define('_JEXEC', 1);
define('DS', DIRECTORY_SEPARATOR);
if (file_exists(dirname(__FILE__) . '/defines.php')) {
include_once dirname(__FILE__) . '/defines.php';
}
if (!defined('_JDEFINES')) {
define('JPATH_BASE', $_SERVER[DOCUMENT_ROOT]);
require_once JPATH_BASE.'/includes/defines.php';
}
require_once JPATH_LIBRARIES.'/kint/Kint.class.php';
require_once JPATH_BASE.'/includes/framework.php';
// Mark afterLoad in the profiler.
JDEBUG ? $_PROFILER->mark('afterLoad') : null;
jimport( 'joomla.application.module.helper' );
jimport('joomla.html.parameter');
// Instantiate the application.
$app = JFactory::getApplication('site');