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

Fixes by Alex (thank you)

Changed session backend to files to save some db processing
This commit is contained in:
Adam Zammit
2015-11-24 11:12:29 +11:00
17 changed files with 82 additions and 81 deletions

View File

@@ -81,6 +81,7 @@ else //SURVEY MATCHING $surveyid DOESN'T EXIST
//OK. IF WE GOT THIS FAR, THEN THE SURVEY EXISTS AND IT IS ACTIVE, SO LETS GET TO WORK.
$surveyinfo=getSurveyInfo($surveyid);
include_once("../quexs.php");
require_once(dirname(__FILE__).'/sessioncontrol.php');
// Set language for questions and labels to base language of this survey
@@ -787,7 +788,6 @@ elseif ($subaction == "all")
$quexsfilterstate = questionnaireSampleFilterstate();
//queXS Addition
include_once("../quexs.php");
$browseoutput .= "&nbsp;".T_("Questionnaire and Sample selection:")."<select id='quexsfilterinc' name='quexsfilterinc' onchange='javascript:document.getElementById(\"limit\").value=\"\";submit();'>\n"
."\t<option value='all' >".T_("All queXS questionnaires and samples associated with this instrument")."</option>\n"
. get_questionnaire_sample_list($surveyid,$quexsfilterstate)

View File

@@ -18,6 +18,7 @@
$LEMdebugLevel=0;
include_once("login_check.php");
include_once("../quexs.php");
require_once(dirname(__FILE__).'/sessioncontrol.php');
if (!isset($surveyid)) {$surveyid=returnglobal('sid');}

View File

@@ -21,7 +21,8 @@
if (!isset($dbprefix) || isset($_REQUEST['dbprefix'])) {die("Cannot run this script directly");}
// Read the session name from the settings table
$usresult = getGlobalSetting('SessionName');
//$usresult = getGlobalSetting('SessionName');
$usresult = LS_SESSION_NAME; //queXS Addition
if ($usresult)
{
@session_name($usresult);