FundacionLQDVI_WebCongresos/www/administrator/components/com_akeeba/controllers/dbef.php

56 lines
1.3 KiB
PHP
Raw Normal View History

<?php
/**
* @package AkeebaBackup
* @copyright Copyright (c)2006-2010 Nicholas K. Dionysopoulos
* @license GNU General Public License version 3, or later
* @version $Id: dbef.php 211 2010-08-12 21:34:52Z nikosdion $
* @since 1.3
*/
// Protect from unauthorized access
defined('_JEXEC') or die('Restricted Access');
// Load framework base classes
jimport('joomla.application.component.controller');
/**
* MVC controller class for Database Table filters
*
*/
class AkeebaControllerDbef 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();
}
}
}
/**
* Handles the "display" task, which displays a folder and file list
*
*/
public function display()
{
parent::display();
}
/**
* AJAX proxy.
*/
public function ajax()
{
// Parse the JSON data and reset the action query param to the resulting array
$action_json = JRequest::getVar('action', '', 'default', 'none', 2);
$action = json_decode($action_json);
JRequest::setVar('action', $action);
parent::display();
}
}