Location: PHPKode > projects > injooosm > administrator/components/com_injooosm/injooosm.php
<?php
/**
 * Joomla! 1.5 component injooosm
 *
 * @version $Id: injooosm.php 2009-11-22 14:03:00$
 * @author Christian Knorr
 * @package injooosm
 * @subpackage backend
 * @license GNU/GPL
 * @filesource
 * 
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

/*
 * Define constants for all pages
 */
define( 'COM_JOOMGPSTRACKS_DIR', 'images'.DS.'injooosm'.DS );
define( 'COM_JOOMGPSTRACKS_BASE', JPATH_ROOT.DS.COM_JOOMGPSTRACKS_DIR );
define( 'COM_JOOMGPSTRACKS_BASEURL', JURI::root().str_replace( DS, '/', COM_JOOMGPSTRACKS_DIR ));
// define( 'COM_JOOMGPSTRACKS_BASEURL', JURI::root().COM_JOOMGPSTRACKS_DIR );

// Require the base controller
require_once JPATH_COMPONENT.DS.'controller.php';

require_once JPATH_COMPONENT.DS.'helpers'.DS.'helper.php';

// Initialize the controller
if($controller = JRequest::getWord('controller')) {
	$path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';
	$getCmdTask = JRequest::getCmd( 'task' );
	if (file_exists($path)) {
		require_once $path;
	} else {
		$controller = '';
	}
} else $getCmdTask = "info";

$classname = 'injooosmController'.$controller;
$controller = new $classname( );
$controller->execute( $getCmdTask );

// Redirect if set by the controller
$controller->redirect();
Return current item: injooosm