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

Replace link with queXS to be "user" not loginID

This commit is contained in:
Adam Zammit
2015-08-18 16:31:14 +10:00
parent 13155fa7db
commit 6be4a2d1c9
3 changed files with 5 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ include ("../config.inc.php");
include ("auth-admin.php"); include ("auth-admin.php");
include ("../functions/functions.xhtml.php"); include ("../functions/functions.xhtml.php");
$username = $_SESSION['loginID']; $username = $_SESSION['user'];
$g = 0; $g = 0;
if (isset($_GET['g'])) if (isset($_GET['g']))
$g = intval($_GET['g']); $g = intval($_GET['g']);

View File

@@ -50,12 +50,12 @@ function get_client_id()
{ {
global $db; global $db;
if (!isset($_SESSION['loginID'])) if (!isset($_SESSION['user']))
return false; return false;
$sql = "SELECT client_id $sql = "SELECT client_id
FROM client FROM client
WHERE username = '{$_SESSION['loginID']}'"; WHERE username = '{$_SESSION['user']}'";
$o = $db->GetRow($sql); $o = $db->GetRow($sql);

View File

@@ -900,7 +900,7 @@ function get_extension($operator_id)
*/ */
function get_operator_id() function get_operator_id()
{ {
if (!isset($_SESSION['loginID'])) if (!isset($_SESSION['user']))
{ {
print "<p>" . T_("ERROR: You are not logged in.") . "</p>"; print "<p>" . T_("ERROR: You are not logged in.") . "</p>";
die(); die();
@@ -910,7 +910,7 @@ function get_operator_id()
$sql = "SELECT operator_id $sql = "SELECT operator_id
FROM operator FROM operator
WHERE username = " . $db->qstr($_SESSION['loginID']) . " WHERE username = " . $db->qstr($_SESSION['user']) . "
AND enabled = 1"; AND enabled = 1";
$o = $db->GetRow($sql); $o = $db->GetRow($sql);