Skip to content

Instantly share code, notes, and snippets.

@AmyStephen
Created April 29, 2011 23:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AmyStephen/949188 to your computer and use it in GitHub Desktop.
Save AmyStephen/949188 to your computer and use it in GitHub Desktop.
Administrator Entry Point: Site Router: Molajo (Top) comparison to Joomla! 1.6 (Bottom)
<?php
/**
* @version things.php
* @package Molajo
* @subpackage Entry point
* @copyright Copyright (C) 2011 Individual Molajo Contributors. All rights reserved.
* @license GNU General Public License Version 2, or later http://www.gnu.org/licenses/gpl.html
*/
defined('MOLAJO') or die;
$current_folder = basename(dirname(__FILE__));
require_once MOLAJO_COMPONENT.'/component/index.php';
<?php
/**
* @version $Id: content.php 20196 2011-01-09 02:40:25Z ian $
* @package Joomla.Administrator
* @subpackage com_content
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// no direct access
defined('_JEXEC') or die;
// Access check.
if (!JFactory::getUser()->authorise('core.manage', 'com_content')) {
return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
// Include dependencies
jimport('joomla.application.component.controller');
$controller = JController::getInstance('Content');
$controller->execute(JRequest::getCmd('task'));
$controller->redirect();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment