Files
idpan.poznan.pl/administrator/components/com_j2xml/controllers/viewlevels.php
2026-02-08 21:16:11 +01:00

53 lines
1.3 KiB
PHP

<?php
/**
* @package Joomla.Administrator
* @subpackage com_j2xml
*
* @version 3.9.229-rc1
* @since 3.7.192
*
* @author Helios Ciancio <info (at) eshiol (dot) it>
* @link https://www.eshiol.it
* @copyright Copyright (C) 2010 - 2023 Helios Ciancio. All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL v3
* J2XML 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.
*/
// no direct access
defined('_JEXEC') or die();
/**
* Viewlevel controller class.
*/
class J2xmlControllerViewlevels extends JControllerLegacy
{
function __construct ($default = array())
{
parent::__construct();
}
function display ($cachable = false, $urlparams = false)
{
$this->input->set('view', 'viewlevels');
parent::display();
}
/**
* Export viewlevels in XML format
*/
function export ()
{
// Check for request forgeries
JSession::checkToken() or jexit('Invalid Token');
$cid = $this->input->post->get('cid', array(
0
), 'array');
$id = 'cid=' . implode(',', $cid);
$this->setRedirect('index.php?option=com_j2xml&task=viewlevels.display&format=raw&' . $id);
}
}