* @author Yireo
 * @package SimpleLists
 * @copyright Copyright (C) 2012
 * @license GNU Public License
 * @link http://www.yireo.com/
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
// Define constants for all pages
define('COM_SIMPLELISTS_DIR', 'images/simplelists/');
define('COM_SIMPLELISTS_BASE', JPATH_ROOT . '/' . COM_SIMPLELISTS_DIR);
define('COM_SIMPLELISTS_BASEURL', JURI::root() . COM_SIMPLELISTS_DIR);
// Manage common includes
require_once JPATH_COMPONENT . '/helpers/acl.php';
require_once JPATH_COMPONENT . '/helpers/helper.php';
require_once JPATH_COMPONENT . '/helpers/plugin.php';
// Make sure the user is authorized to view this page
if (SimpleListsHelperAcl::isAuthorized() == false) {
    $application = JFactory::getApplication();
    $application->redirect('index.php', JText::_('COM_SIMPLELISTS_NOT_AUTHORIZED'));
}
// Require the base controller
require_once JPATH_COMPONENT . '/controller.php';
// General checks
SimplelistsHelper::checkDirectory();
SimplelistsHelper::checkVersions();
// Initialize the controller
$controller = new SimplelistsController();
// Perform the Request task
$controller->execute(JRequest::getCmd('task'));
$controller->redirect();
<?php

/**
 * Joomla! component SimpleLists
 *
 * @author Yireo
 * @copyright Copyright 2011
 * @license GNU Public License
 * @link https://www.yireo.com/
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
// Require the base controller
require_once JPATH_COMPONENT . DS . 'controller.php';
require_once JPATH_COMPONENT . DS . 'helpers' . DS . 'icon.php';
require_once JPATH_COMPONENT . DS . 'helpers' . DS . 'html.php';
require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'helper.php';
require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'plugin.php';
// Initialize the controller
$controller = new SimplelistsController();
$controller->execute(null);
// Redirect if set by the controller
$controller->redirect();