61 |
. "')"; |
. "')"; |
62 |
|
|
63 |
// Fetch the results |
// Fetch the results |
64 |
$rs = mysql_query($sql, $con); |
$rs = xx_query($sql, $con); |
65 |
$row = mysql_fetch_array ($rs); |
$row = xx_fetch_array ($rs); |
66 |
$last_login = Trim($row["last_login"]); |
$last_login = Trim($row["last_login"]); |
67 |
$last_ip = Trim($row["last_ip"]); |
$last_ip = Trim($row["last_ip"]); |
68 |
$access_id = (int) $row["access_id"]; |
$access_id = (int) $row["access_id"]; |
70 |
$access = Trim($row["access"]); |
$access = Trim($row["access"]); |
71 |
|
|
72 |
// If a 1+ rows are returned, user is validated |
// If a 1+ rows are returned, user is validated |
73 |
if (mysql_num_rows($rs) >= 1) { |
if (xx_num_rows($rs) >= 1) { |
74 |
$validated = $access_id; |
$validated = $access_id; |
75 |
$current_ip = $GLOBALS["REMOTE_ADDR"]; |
$current_ip = $GLOBALS["REMOTE_ADDR"]; |
76 |
|
|
86 |
. "' WHERE staff.staff_account = '" |
. "' WHERE staff.staff_account = '" |
87 |
. $user |
. $user |
88 |
. "'"; |
. "'"; |
89 |
if (!mysql_query ($sql, $con)){ |
if (!xx_query ($sql, $con)){ |
90 |
sql_err($sql); |
sql_err($sql); |
91 |
mysql_query ("UNLOCK TABLES", $con); |
xx_query ("UNLOCK TABLES", $con); |
92 |
bailout(); |
bailout(); |
93 |
} |
} |
94 |
else { |
else { |
95 |
mysql_query ("UNLOCK TABLES", $con); |
xx_query ("UNLOCK TABLES", $con); |
96 |
} |
} |
97 |
} |
} |
98 |
|
|