59 |
. "')"; |
. "')"; |
60 |
|
|
61 |
// Fetch the results |
// Fetch the results |
62 |
$rs = mysql_tryquery($sql); |
$rs = xx_tryquery($sql); |
63 |
|
|
64 |
$row = mysql_fetch_array ($rs, MYSQL_ASSOC); |
$row = xx_fetch_array ($rs, xx_ASSOC); |
65 |
$last_login = Trim($row["last_login"]); |
$last_login = Trim($row["last_login"]); |
66 |
$last_ip = Trim($row["last_ip"]); |
$last_ip = Trim($row["last_ip"]); |
67 |
$access_id = (int) $row["access_id"]; |
$access_id = (int) $row["access_id"]; |
69 |
$access = Trim($row["access"]); |
$access = Trim($row["access"]); |
70 |
|
|
71 |
// If a 1+ rows are returned, user is validated |
// If a 1+ rows are returned, user is validated |
72 |
if (mysql_num_rows($rs) >= 1) { |
if (xx_num_rows($rs) >= 1) { |
73 |
$validated = $access_id; |
$validated = $access_id; |
74 |
$current_ip = $GLOBALS["REMOTE_ADDR"]; |
$current_ip = $GLOBALS["REMOTE_ADDR"]; |
75 |
|
|
85 |
. "' WHERE staff.staff_account = '" |
. "' WHERE staff.staff_account = '" |
86 |
. $user |
. $user |
87 |
. "'"; |
. "'"; |
88 |
mysql_tryquery($sql); |
xx_tryquery($sql); |
89 |
} |
} |
90 |
|
|
91 |
} // password > 5 characters in length |
} // password > 5 characters in length |