43 lines
969 B
PHP
43 lines
969 B
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* @package AkeebaBackup
|
||
|
|
* @copyright Copyright (c)2006-2010 Nicholas K. Dionysopoulos
|
||
|
|
* @license GNU General Public License version 3, or later
|
||
|
|
* @version $Id$
|
||
|
|
* @since 1.3
|
||
|
|
*/
|
||
|
|
|
||
|
|
// Protect from unauthorized access
|
||
|
|
defined('_JEXEC') or die('Restricted Access');
|
||
|
|
|
||
|
|
// Load framework base classes
|
||
|
|
jimport('joomla.application.component.controller');
|
||
|
|
|
||
|
|
/**
|
||
|
|
* The Configuration Wizard controller class
|
||
|
|
*/
|
||
|
|
class AkeebaControllerConfwiz extends JController
|
||
|
|
{
|
||
|
|
public function __construct($config = array()) {
|
||
|
|
parent::__construct($config);
|
||
|
|
if(AKEEBA_JVERSION=='16')
|
||
|
|
{
|
||
|
|
// Access check, Joomla! 1.6 style.
|
||
|
|
if (!JFactory::getUser()->authorise('akeeba.configure', 'com_akeeba')) {
|
||
|
|
$this->setRedirect('index.php?option=com_akeeba');
|
||
|
|
return JError::raiseWarning(403, JText::_('JERROR_ALERTNOAUTHOR'));
|
||
|
|
$this->redirect();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
public function display()
|
||
|
|
{
|
||
|
|
parent::display();
|
||
|
|
}
|
||
|
|
|
||
|
|
public function ajax()
|
||
|
|
{
|
||
|
|
parent::display();
|
||
|
|
}
|
||
|
|
}
|