33 |
function accessClass($sessionClass) { |
function accessClass($sessionClass) { |
34 |
|
|
35 |
// Set the database connection variables |
// Set the database connection variables |
36 |
$this->con_ac = @mysql_connect ( $this->db_ac_srv, $this->db_ac_usr, $this->db_ac_pwd ) |
$this->con_ac = @xx_connect ( $this->db_ac_srv, $this->db_ac_usr, $this->db_ac_pwd ) |
37 |
or die ( "ERROR: Could not connect to database server!" ); |
or die ( "ERROR: Could not connect to database server!" ); |
38 |
$this->result_ac = mysql_select_db ( $this->db_ac, $this->con_ac ) |
$this->result_ac = xx_select_db ( $this->db_ac, $this->con_ac ) |
39 |
or die ( "ERROR: Could not connect to database!" ); |
or die ( "ERROR: Could not connect to database!" ); |
40 |
|
|
41 |
|
|
63 |
FROM staff s, access a WHERE s.access_id = a.access_id AND s.staff_account = '" |
FROM staff s, access a WHERE s.access_id = a.access_id AND s.staff_account = '" |
64 |
. $staff_account |
. $staff_account |
65 |
. "'"; |
. "'"; |
66 |
$rs = mysql_query($sql, $this->con_ac); |
$rs = xx_query($sql, $this->con_ac); |
67 |
$row = mysql_fetch_array ($rs); |
$row = xx_fetch_array ($rs); |
68 |
$access_level = $row["access_level"]; |
$access_level = $row["access_level"]; |
69 |
$access = $row["access"]; |
$access = $row["access"]; |
70 |
$first_name = $row["first_name"]; |
$first_name = $row["first_name"]; |