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

@@ -1,3 +1,5 @@
DROP TABLE `sessions2`;
queXS 1.13.0 - Changes since 1.12.1 queXS 1.13.0 - Changes since 1.12.1
Overall changes: Overall changes:

View File

@@ -1507,24 +1507,6 @@ INSERT INTO `sample_var_type` (`type`, `description`, `table`) VALUES(8, 'Email
-- -------------------------------------------------------- -- --------------------------------------------------------
--
-- Table structure for table `sessions2`
--
CREATE TABLE `sessions2` (
`sesskey` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`expiry` datetime NOT NULL,
`expireref` varchar(250) COLLATE utf8_unicode_ci DEFAULT '',
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
`sessdata` longtext COLLATE utf8_unicode_ci,
PRIMARY KEY (`sesskey`),
KEY `sess2_expiry` (`expiry`),
KEY `sess2_expireref` (`expireref`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
-- --
-- Table structure for table `setting` -- Table structure for table `setting`
-- --

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 // 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. // 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"; $defaulttemplate = "quexs";
$useWebserverAuth = true; //$useWebserverAuth = true;
$WebserverAuth_autocreateUser = true; //$WebserverAuth_autocreateUser = true;
$WebserverAuth_autouserprofile = Array( //$WebserverAuth_autouserprofile = Array(
'full_name' => 'autouser', // 'full_name' => 'autouser',
'email' => $siteadminemail, // 'email' => $siteadminemail,
'htmledtirmode' => $defaulthtmleditormode, // 'htmledtirmode' => $defaulthtmleditormode,
'templatelist' => 'default,basic', // 'templatelist' => 'default,basic',
'create_survey' => 1, // 'create_survey' => 1,
'lang' => DEFAULT_LOCALE, // 'lang' => DEFAULT_LOCALE,
'create_user' => 1, // 'create_user' => 1,
'delete_user' => 1, // 'delete_user' => 1,
'superadmin' => 1, // 'superadmin' => 1,
'configurator' => 1, // 'configurator' => 1,
'manage_template' => 1, // 'manage_template' => 1,
'manage_label' => 1); // 'manage_label' => 1);
//
$sessionhandler = 'db';