primo commit
This commit is contained in:
39
components/com_tabulizer/tabulizer.php
Normal file
39
components/com_tabulizer/tabulizer.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.0.0 tabulizer $
|
||||
* @package tabulizer
|
||||
* @copyright Copyright © 2011 - All rights reserved.
|
||||
* @license GNU/GPL
|
||||
* @author Dimitrios Mourloukos
|
||||
* @author mail info@alterora.gr
|
||||
* @website www.alterora.gr
|
||||
*
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
if (!defined('DS')) define('DS',DIRECTORY_SEPARATOR);
|
||||
|
||||
// load administrator's language files
|
||||
$lang = JFactory::getLanguage();
|
||||
$lang->load('com_tabulizer', JPATH_ADMINISTRATOR);
|
||||
|
||||
// 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('administrator/components/com_tabulizer/assets/css/tabulizer.css');
|
||||
|
||||
// Require the base controller
|
||||
require_once (JPATH_COMPONENT_ADMINISTRATOR.DIRECTORY_SEPARATOR.'controller.php');
|
||||
|
||||
// Create the controller
|
||||
$controller = new tabulizerController();
|
||||
|
||||
// Perform the Request task
|
||||
$jinput = JFactory::getApplication()->input;
|
||||
$controller->execute($jinput->getCmd('task', null));
|
||||
$controller->redirect();
|
||||
?>
|
||||
Reference in New Issue
Block a user