34 |
function accessClass($sessionClass) { |
function accessClass($sessionClass) { |
35 |
|
|
36 |
// Set the database connection variables |
// Set the database connection variables |
37 |
$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 ) |
38 |
or die ( "ERROR: Could not connect to database server!" ); |
or die ( "ERROR: Could not connect to database server!" ); |
39 |
$this->result_ac = mysql_select_db ( $this->db_ac, $this->con_ac ) |
$this->result_ac = xx_select_db ( $this->db_ac, $this->con_ac ) |
40 |
or die ( "ERROR: Could not connect to database!" ); |
or die ( "ERROR: Could not connect to database!" ); |
41 |
|
|
42 |
|
|
64 |
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 = '" |
65 |
. $staff_account |
. $staff_account |
66 |
. "'"; |
. "'"; |
67 |
$rs = mysql_query($sql, $this->con_ac); |
$rs = xx_query($sql, $this->con_ac); |
68 |
$row = mysql_fetch_array ($rs); |
$row = xx_fetch_array ($rs); |
69 |
$access_level = $row["access_level"]; |
$access_level = $row["access_level"]; |
70 |
$access = $row["access"]; |
$access = $row["access"]; |
71 |
$first_name = $row["first_name"]; |
$first_name = $row["first_name"]; |