Your IP : 216.73.217.47


Current Path : /home/azimutno/www/demo/administrator/components/com_j2xml/controllers/
Upload File :
Current File : /home/azimutno/www/demo/administrator/components/com_j2xml/controllers/content.php

<?php
/**
 * @version		3.0.95 controllers/content.php
 * 
 * @package		J2XML
 * @subpackage	com_j2xml
 * @since		1.5.3
 * 
 * @author		Helios Ciancio <info@eshiol.it>
 * @link		http://www.eshiol.it
 * @copyright	Copyright (C) 2010-2013 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('Restricted access.');

jimport('eshiol.j2xml.exporter');

/**
 * Content controller class.
 */
class J2XMLControllerContent extends JControllerAbstract
{	
	function __construct($default = array())
	{
		parent::__construct();
	}

	public function display($cachable = false, $urlparams = false)
	{
		JRequest::setVar('view', 'content');
		parent::display($cachable, $urlparams);
	}
	
	/**
	 * Export articles in XML format
	 */
	function export()
	{
		// Check for request forgeries
		JRequest::checkToken() or jexit('Invalid Token');

		$cid = JRequest::getVar('cid', array(0), 'post', 'array');
		$ids = 'cid='.implode(',', $cid);
		$this->setRedirect('index.php?option=com_j2xml&task=content.display&format=raw&'.$ids);
	}
}
?>