46 lines
1.4 KiB
PHP
46 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* @version 6.2.6 tabulizer $
|
|
* @package tabulizer
|
|
* @copyright Copyright © 2011 - All rights reserved.
|
|
* @license GNU/GPL
|
|
* @author Dimitrios Mourloukos
|
|
* @author mail info@alterora.gr
|
|
* @website www.tabulizer.com
|
|
*
|
|
*/
|
|
|
|
|
|
// no direct access
|
|
defined('_JEXEC') or die('Restricted access');
|
|
|
|
if (!defined('DS')) define('DS',DIRECTORY_SEPARATOR);
|
|
|
|
// Helper functions and defines
|
|
require_once(JPATH_ADMINISTRATOR.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_tabulizer'.DIRECTORY_SEPARATOR.'assets'.DIRECTORY_SEPARATOR.'classes'.DIRECTORY_SEPARATOR.'common'.DIRECTORY_SEPARATOR.'helper.php');
|
|
|
|
// Require once css files
|
|
$document = JFactory::getDocument();
|
|
$document->addStyleSheet('components/com_tabulizer/assets/css/tabulizer.css');
|
|
|
|
TabulizerUtils::platformSpecificCSS();
|
|
|
|
// Require the base controller
|
|
require_once (JPATH_COMPONENT.DIRECTORY_SEPARATOR.'controller.php');
|
|
|
|
// Create the controller
|
|
$controller = new tabulizerController();
|
|
|
|
// Perform the Request task
|
|
$jinput = JFactory::getApplication()->input;
|
|
$task = $jinput->getCmd('task', null);
|
|
|
|
if ($controller->checkSessionTokenValidity($task)) {
|
|
if ($controller->isAllowed($task, $permission_warning_msg)) {
|
|
$controller->execute($task, $permission_warning_msg);
|
|
} else {
|
|
$controller->printWarning($permission_warning_msg);
|
|
}
|
|
}
|
|
$controller->redirect();
|
|
?>
|