mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Added icon for scanner
Updated queXMLPDF class to point to TCPDF isntallation Added icon to limesurvey page Modified export_structure_quexml to be able to export a string of noheader specified
This commit is contained in:
@@ -525,15 +525,19 @@ while ($Row = $QueryResult->FetchRow())
|
||||
|
||||
$dom->append_child($questionnaire);
|
||||
|
||||
$quexml = $dom->dump_mem(true,'UTF-8');
|
||||
|
||||
$fn = "survey_$surveyid.xml";
|
||||
header("Content-Type: application/download");
|
||||
header("Content-Disposition: attachment; filename=$fn");
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
|
||||
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
|
||||
Header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
|
||||
header("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
echo $dom->dump_mem(true,'UTF-8');
|
||||
exit;
|
||||
if (!(isset($noheader) && $noheader == true))
|
||||
{
|
||||
$fn = "survey_$surveyid.xml";
|
||||
header("Content-Type: application/download");
|
||||
header("Content-Disposition: attachment; filename=$fn");
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
|
||||
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
|
||||
Header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
|
||||
header("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
echo $quexml;
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user