2
0
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:
azammitdcarf
2009-02-12 04:22:31 +00:00
parent 7f5a08fc22
commit adbd2f52cc
2 changed files with 7 additions and 1 deletions

View File

@@ -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