mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Remove references to HTPASSWD
Updated user creation / editing code to refer to limesurvey session
This commit is contained in:
@@ -240,7 +240,13 @@ if (!isset($_SESSION['loginID']))
|
||||
//go to queXS
|
||||
$loc = "";
|
||||
if ($_SESSION['USER_RIGHT_SUPERADMIN'] == 1)
|
||||
$loc = "/admin";
|
||||
$loc = "admin";
|
||||
else
|
||||
{
|
||||
$utest = $connect->GetOne("SELECT username FROM client WHERE username = '" . $_SESSION['user'] . "'");
|
||||
if (!empty($utest))
|
||||
$loc = "client";
|
||||
}
|
||||
header('Location: ' . QUEXS_URL . $loc);
|
||||
die();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user