-
Notifications
You must be signed in to change notification settings - Fork 0
/
playjoomupdate.php
executable file
·41 lines (36 loc) · 1.36 KB
/
playjoomupdate.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
<?php
/**
* Contains the main for the PlayJomm update component.
*
* PlayJoom and the basic package Joomla! is free software. This version may have been modified pursuant to the
* GNU General Public License, and as distributed it includes or is derivative
* of works licensed under the GNU General Public License or other free or open
* source software licenses. See COPYRIGHT.php for copyright notices and details.
*
* @package PlayJoom.Admin
* @subpackage main.playjoomupdate
* @link http://playjoom.teglo.info
* @copyright Copyright (C) 2010-2013 by www.teglo.info. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* @PlayJoomUpdate Component
* @date $Date$
* @revision $Revision$
* @author $Author$
* @headurl $HeadURL$
*/
defined('_JEXEC') or die;
if (!JFactory::getUser()->authorise('core.manage', 'com_playjoomupdate'))
{
return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
//Load helper methods
require_once JPATH_COMPONENT.'/helpers/playjoomupdate.php';
require_once JPATH_COMPONENT.'/helpers/pjversion.php';
// Define the Joomla version if not already defined.
if (!defined('PJVERSION')) {
$jversion = new PJVersion;
define('PJVERSION', $jversion->getShortVersion());
}
$controller = JControllerLegacy::getInstance('playjoomupdate');
$controller->execute(JFactory::getApplication()->input->get('task'));
$controller->redirect();