mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Check for server side authentication
Make sure questionnaire is displayed Q by Q
This commit is contained in:
@@ -105,7 +105,7 @@ function create_limesurvey_questionnaire($title)
|
||||
. "VALUES ($surveyid, 1,\n"
|
||||
. "'', 'N', \n"
|
||||
. "'N','1980-01-01', '', 'N',\n"
|
||||
. "'', 'G', 'quexs', '" . QUEXS_URL . "rs_project_end.php',\n"
|
||||
. "'', 'S', 'quexs', '" . QUEXS_URL . "rs_project_end.php',\n"
|
||||
. "'en', 'Y', 'N', 'N',\n"
|
||||
. "'N', '0', 'Y',\n"
|
||||
. "'att1', 'att2', \n"
|
||||
|
||||
@@ -520,6 +520,12 @@ function get_extension($operator_id)
|
||||
*/
|
||||
function get_operator_id()
|
||||
{
|
||||
if (!isset($_SERVER['PHP_AUTH_USER']))
|
||||
{
|
||||
print "<p>" . T_("ERROR: You do not have server side authentication enabled therefore queXS cannot determine which user is accessing the system.") . "</p>";
|
||||
return false;
|
||||
}
|
||||
|
||||
global $db;
|
||||
|
||||
$sql = "SELECT operator_id
|
||||
|
||||
Reference in New Issue
Block a user