Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (22 sloc) 697 Bytes
* Constant that is checked in included files to prevent direct access.
const _JEXEC = 1;
// Define the paths we need
const JPATH_BASE = __DIR__;
const JPATH_ROOT = __DIR__;
define('JPATH_THEMES', JPATH_BASE . '/templates');
define('JPATH_LIBRARIES', dirname(JPATH_ROOT) . '/libraries');
// Set up the environment
ini_set('display_errors', true);
const JDEBUG = false;
// Import the Joomla Platform.
require_once JPATH_LIBRARIES . '/import.php';
// Register the prefix for our classes
JLoader::registerPrefix('G', JPATH_BASE);
// Get the application
$app = JApplicationWeb::getInstance('GApplicationWeb');
// Execute the application