Подключение фреймворка Joomla

  define('_JEXEC', 1);
  define('DS', '/');
  define('JPATH_BASE', realpath(dirname(__FILE__)."/.."));
  require_once(JPATH_BASE."/includes/defines.php");
  require_once(JPATH_SITE."/includes/framework.php");