function display($tpl = null) { $app = JFactory::getApplication(); $cid = JRequest::getVar('cid'); $ids = explode(",", $cid); $params = JComponentHelper::getParams('com_j2xml'); if (!J2XMLExporter::export(J2XMLExporter::users($ids), $params->get('debug', 0), $params->get('export_gzip', '0'))) { $app->redirect('index.php?option=com_users'); } }
} else { require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_languages' . DS . 'helpers' . DS . 'jsonresponse.php'; } /** * Content controller class. */ class J2XMLControllerUsers extends JControllerAbstract { function __construct($default = array()) { parent::__construct(); } public function display($cachable = false, $urlparams = false) { JRequest::setVar('view', 'users'); parent::display($cachable, $urlparams); } function send() { if (!JSession::checkToken('request')) { // Check for a valid token. If invalid, send a 403 with the error message. JError::raiseWarning(403, JText::_('JINVALID_TOKEN')); echo version_compare(JPlatform::RELEASE, '12', 'ge') ? new JResponseJson() : new JJsonResponse(); return;