/
eventlist.php
49 lines (39 loc) · 1.71 KB
/
eventlist.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* @version 1.1 $Id$
* @package Joomla
* @subpackage EventList
* @copyright (C) 2005 - 2009 Christoph Lukes
* @license GNU/GPL, see LICENSE.php
* EventList is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License 2
* as published by the Free Software Foundation.
* EventList is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with EventList; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
defined( '_JEXEC' ) or die( 'Restricted access' );
//Require helperfile
require_once (JPATH_COMPONENT_SITE.DS.'helpers'.DS.'helper.php');
require_once (JPATH_COMPONENT_SITE.DS.'classes'.DS.'user.class.php');
require_once (JPATH_COMPONENT_SITE.DS.'classes'.DS.'image.class.php');
require_once (JPATH_COMPONENT_SITE.DS.'classes'.DS.'output.class.php');
require_once (JPATH_COMPONENT_SITE.DS.'classes'.DS.'categories.class.php');
// Set the table directory
JTable::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR.DS.'tables');
//perform cleanup if it wasn't done today (archive, delete, recurrence)
ELHelper::cleanup();
// Require the controller
require_once (JPATH_COMPONENT.DS.'controller.php');
// Create the controller
$classname = 'EventListController';
$controller = new $classname( );
// Perform the Request task
$controller->execute( JRequest::getVar('task', null, 'default', 'cmd') );
// Redirect if set by the controller
$controller->redirect();
?>