1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
<?php /* * LimeSurvey * Copyright (C) 2007 The LimeSurvey Project Team / Carsten Schmitz * All rights reserved. * License: GNU/GPL License v2 or later, see LICENSE.php * LimeSurvey is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. * * $Id: load.php 6805 2009-05-09 12:38:49Z c_schmitz $ */
//Security Checked: POST, GET, SESSION, REQUEST, returnglobal, DB
if (!isset($homedir) || isset($_REQUEST['$homedir'])) {die("Cannot run this script directly");} if (!isset($surveyid)) {$surveyid=returnglobal('sid');} //This next line is for security reasons. It ensures that the $surveyid value is never anything but a number. $surveyid=sanitize_int($surveyid);
if (!isset($thistpl)) {die ("Error!");} sendcacheheaders(); doHeader(); foreach(file("$thistpl/startpage.pstpl") as $op) { echo templatereplace($op); } echo "\n\n<!-- JAVASCRIPT FOR CONDITIONAL QUESTIONS -->\n" ."\t<script type='text/javascript'>\n" ."\t\tfunction checkconditions(value, name, type)\n" ."\t\t\t{\n" ."\t\t\t}\n" ."\t</script>\n\n";
echo "<form method='post' action='$relativeurl/index.php'>\n"; foreach(file("$thistpl/load.pstpl") as $op) { echo templatereplace($op); } //PRESENT OPTIONS SCREEN (Replace with Template Later) //END //echo "<input type='hidden' name='PHPSESSID' value='".session_id()."'>\n"; echo "<input type='hidden' name='sid' value='$surveyid' />\n"; echo "<input type='hidden' name='loadall' value='reload' />\n"; echo "</form>";
foreach(file("$thistpl/endpage.pstpl") as $op) { echo templatereplace($op); } doFooter(); exit; ?>
|