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

Remove session2 table (redundant with lime_sessions)

Set limesurvey to use session authentication
This commit is contained in:
Adam Zammit
2015-08-14 15:32:15 +10:00
parent 5371c20c4c
commit c91a7082d6
3 changed files with 22 additions and 35 deletions

View File

@@ -67,22 +67,25 @@ $debug = 0; // Set this to 1 if you are looking f
// LimeSurvey developers: Set this to 3 to circumvent the restriction to remove the installation directory and full access to standard templates
// or to change the password. If you set it to 3 then PHP STRICT warnings will be shown additionally.
$defaultlang = DEFAULT_LOCALE;
$defaultlang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
if (empty($defaultlang)) $defaultlang = DEFAULT_LOCALE;
$defaulttemplate = "quexs";
$useWebserverAuth = true;
$WebserverAuth_autocreateUser = true;
$WebserverAuth_autouserprofile = Array(
'full_name' => 'autouser',
'email' => $siteadminemail,
'htmledtirmode' => $defaulthtmleditormode,
'templatelist' => 'default,basic',
'create_survey' => 1,
'lang' => DEFAULT_LOCALE,
'create_user' => 1,
'delete_user' => 1,
'superadmin' => 1,
'configurator' => 1,
'manage_template' => 1,
'manage_label' => 1);
//$useWebserverAuth = true;
//$WebserverAuth_autocreateUser = true;
//$WebserverAuth_autouserprofile = Array(
// 'full_name' => 'autouser',
// 'email' => $siteadminemail,
// 'htmledtirmode' => $defaulthtmleditormode,
// 'templatelist' => 'default,basic',
// 'create_survey' => 1,
// 'lang' => DEFAULT_LOCALE,
// 'create_user' => 1,
// 'delete_user' => 1,
// 'superadmin' => 1,
// 'configurator' => 1,
// 'manage_template' => 1,
// 'manage_label' => 1);
//
$sessionhandler = 'db';