getIndex(),get_request('exporter_id','REQUEST')); $request['export'] = $request['exporter']->getTemplate(); $types = $request['export']->getType(); # send the header if ($request['file']) { $obStatus = ob_get_status(); if (isset($obStatus['type']) && $obStatus['type'] && $obStatus['status']) ob_end_clean(); header('Content-type: application/download'); header(sprintf('Content-Disposition: inline; filename="%s.%s"','export',$types['extension'].($request['export']->isCompressed() ? '.gz' : ''))); echo $request['export']->export(); die(); } else { print '
';
	echo htmlspecialchars($request['export']->export());
	print '
'; }