diff --git a/group.php b/group.php index 8d535e2130e..e0e7c464e7a 100644 --- a/group.php +++ b/group.php @@ -230,6 +230,7 @@ } else { + sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { @@ -244,6 +245,7 @@ //COMMIT CHANGES TO DATABASE if ($surveyactive != "Y") { + sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { @@ -265,6 +267,7 @@ $cookiename="PHPSID".returnglobal('sid')."STATUS"; setcookie("$cookiename", "COMPLETE", time() + 31536000); } + sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { @@ -344,6 +347,7 @@ } else {//Submit of Responses Failed + sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { @@ -457,6 +461,7 @@ { if ($tokensexist == 1 && (!isset($_GET['token']) || !$_GET['token'])) { + sendcacheheaders(); echo "\n"; //NO TOKEN PRESENTED. EXPLAIN PROBLEM AND PRESENT FORM foreach(file("$thistpl/startpage.pstpl") as $op) @@ -499,6 +504,7 @@ if (!$tkexist) { + sendcacheheaders(); echo "\n"; //TOKEN DOESN'T EXIST OR HAS ALREADY BEEN USED. EXPLAIN PROBLEM AND EXIT foreach(file("$thistpl/startpage.pstpl") as $op) @@ -668,6 +674,7 @@ $_SESSION['fieldarray'][] = array("{$arow['qid']}", "$fieldname", "{$arow['title']}", "{$arow['question']}", "{$arow['type']}", "{$arow['gid']}", "{$arow['mandatory']}", $conditions); } } + sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { @@ -722,6 +729,7 @@ $percentcomplete = makegraph($_SESSION['step'], $_SESSION['totalsteps']); //READ TEMPLATES, INSERT DATA AND PRESENT PAGE +sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { diff --git a/question.php b/question.php index b527d8c5b82..ff94a5a8b05 100644 --- a/question.php +++ b/question.php @@ -213,6 +213,7 @@ } else //there is no insertarray { + sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { @@ -227,6 +228,7 @@ //COMMIT CHANGES TO DATABASE if ($surveyactive != "Y") { + sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { @@ -248,6 +250,7 @@ $cookiename="PHPSID".returnglobal('sid')."STATUS"; setcookie("$cookiename", "COMPLETE", time() + 31536000); } + sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { @@ -323,6 +326,7 @@ } else //submit failed { + sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { @@ -375,6 +379,7 @@ //SEE IF $sid EXISTS if ($surveyexists <1) { + sendcacheheaders(); echo "\n"; //SURVEY DOES NOT EXIST. POLITELY EXIT. foreach(file("$thistpl/startpage.pstpl") as $op) @@ -395,6 +400,7 @@ { if ($tokensexist == 1 && (!isset($_GET['token']) || !$_GET['token'])) { + sendcacheheaders(); echo "\n"; //NO TOKEN PRESENTED. EXPLAIN PROBLEM AND PRESENT FORM foreach(file("$thistpl/startpage.pstpl") as $op) @@ -434,6 +440,7 @@ $tkexist = mysql_num_rows($tkresult); if (!$tkexist) { + sendcacheheaders(); echo "\n"; //TOKEN DOESN'T EXIST OR HAS ALREADY BEEN USED. EXPLAIN PROBLEM AND EXIT foreach(file("$thistpl/startpage.pstpl") as $op) @@ -472,6 +479,7 @@ $_SESSION['totalsteps'] = $totalquestions; if ($totalquestions == "0") //break out and crash if there are no questions! { + sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { @@ -595,6 +603,7 @@ $_SESSION['fieldarray'][] = array("{$arow['qid']}", "$fieldname", "{$arow['title']}", "{$arow['question']}", "{$arow['type']}", "{$arow['gid']}", "{$arow['mandatory']}", $conditions); } } + sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { @@ -926,6 +935,7 @@ function last() } } //READ TEMPLATES, INSERT DATA AND PRESENT PAGE + sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { diff --git a/survey.php b/survey.php index 40101ff6879..b998b7c4205 100644 --- a/survey.php +++ b/survey.php @@ -233,6 +233,7 @@ } else { + sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { @@ -248,6 +249,7 @@ //COMMIT CHANGES TO DATABASE if ($surveyactive != "Y") { + sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { @@ -269,6 +271,7 @@ $cookiename="PHPSID".returnglobal('sid')."STATUS"; setcookie("$cookiename", "COMPLETE", time() + 31536000); } + sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { @@ -346,6 +349,7 @@ } else { + sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { @@ -392,6 +396,7 @@ if (isset($_POST['move']) && $_POST['move'] == " "._LAST." " && !$notanswered) { //READ TEMPLATES, INSERT DATA AND PRESENT PAGE + sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { @@ -431,6 +436,7 @@ //SEE IF $sid EXISTS if ($surveyexists <1) { + sendcacheheaders(); echo "\n"; //SURVEY DOES NOT EXIST. POLITELY EXIT. foreach(file("$thistpl/startpage.pstpl") as $op) @@ -451,6 +457,7 @@ { if ($tokensexist == 1 && (!isset($_GET['token']) || !$_GET['token'])) { + sendcacheheaders(); echo "\n"; //NO TOKEN PRESENTED. EXPLAIN PROBLEM AND PRESENT FORM foreach(file("$thistpl/startpage.pstpl") as $op) @@ -492,6 +499,7 @@ if (!$tkexist) { + sendcacheheaders(); echo "\n"; //TOKEN DOESN'T EXIST OR HAS ALREADY BEEN USED. EXPLAIN PROBLEM AND EXIT foreach(file("$thistpl/startpage.pstpl") as $op) @@ -530,6 +538,7 @@ $totalquestions = mysql_num_rows($result); if ($totalquestions == "0") //break out if there are no questions! { + sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { @@ -675,6 +684,7 @@ } //READ TEMPLATES, INSERT DATA AND PRESENT PAGE +sendcacheheaders(); echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) {