10) && !file_exists(JPATH_INSTALLATION.'/index.php')) { header('Location: ../index.php'); exit(); } // // Joomla system startup. // // Import the cms version library if necessary. if (!class_exists('JVersion')) { require JPATH_ROOT.'/includes/version.php'; } // Bootstrap the Joomla Framework. require_once JPATH_LIBRARIES.'/import.php'; // Joomla library imports. jimport('joomla.database.table'); jimport('joomla.user.user'); jimport('joomla.environment.uri'); jimport('joomla.filter.filterinput'); jimport('joomla.filter.filteroutput'); jimport('joomla.html.parameter'); jimport('joomla.utilities.utility'); jimport('joomla.language.language'); jimport('joomla.utilities.string'); jimport('joomla.utilities.arrayhelper'); // Create the application object. $app = JFactory::getApplication('installation'); // Initialise the application. $app->initialise(); // Render the document. $app->render(); // Return the response. echo $app;