2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Upped memory limit of limesurvey to 128

Added multiplier for long text boxes and line colour specifier to queXMLPDF
Will only export case_id and date fields in queXML when not outputting to a PDF
This commit is contained in:
azammitdcarf
2010-09-30 00:53:26 +00:00
parent a23e4984e3
commit cc64834bde
3 changed files with 12 additions and 10 deletions

View File

@@ -323,7 +323,7 @@ class queXMLPDF extends TCPDF {
* @var mixed Defaults to 1.
* @since 2010-09-20
*/
protected $longTextResponseHeightMultiplier = 1;
protected $longTextResponseHeightMultiplier = 0.0390625;
/**
* Width of a long text response box
@@ -1280,6 +1280,7 @@ class queXMLPDF extends TCPDF {
$this->SetX(($this->getPageWidth() - $this->getMainPageX() - $this->skipColumnWidth - $this->longTextResponseWidth),false);
//Add to pay layout
$this->addBox($this->GetX(),$this->GetY(),$this->GetX() + $this->longTextResponseWidth, $this->GetX() + $height);
$this->SetDrawColor($this->lineColour[0],$this->lineColour[1],$this->lineColour[2]);
$this->Cell($this->longTextResponseWidth,$height,'',$border,0,'',true,'',0,false,'T','C');
$currentY = $currentY + $height;
$this->SetY($currentY,false);

View File

@@ -495,6 +495,12 @@ while ($Row = $QueryResult->FetchRow())
$questionnaire->append_child($section);
}
$dom->append_child($questionnaire);
if (!(isset($noheader) && $noheader == true))
{
//Add caseid field
$section = $dom->create_element("section");
@@ -522,13 +528,6 @@ while ($Row = $QueryResult->FetchRow())
$questionnaire->append_child($section);
$dom->append_child($questionnaire);
$quexml = $dom->dump_mem(true,'UTF-8');
if (!(isset($noheader) && $noheader == true))
{
$fn = "survey_$surveyid.xml";
header("Content-Type: application/download");
header("Content-Disposition: attachment; filename=$fn");
@@ -537,7 +536,9 @@ if (!(isset($noheader) && $noheader == true))
Header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Pragma: no-cache"); // HTTP/1.0
echo $quexml;
echo $dom->dump_mem(true,'UTF-8');
exit();
}
$quexml = $dom->dump_mem(true,'UTF-8');
?>

View File

@@ -94,7 +94,7 @@ $debug = 0; // Set this to 1 if you are looking for errors.
// LimeSurvey developers set this to 2 to circumvent the restriction to remove the installation directory or to change the password
// If you set it to 3 then in addition PHP STRICT warnings will be shown
$memorylimit = '32M'; // This sets how much memory LimeSurvey can access. 16M is the minimum (M=mb) recommended.
$memorylimit = '128M'; // This sets how much memory LimeSurvey can access. 16M is the minimum (M=mb) recommended.
$sessionlifetime = 3600; // How long until a survey session expires in seconds
$showpopups = 1; // Show popup messages if mandatory or conditional questions have not been answered correctly.