/[libdata]/branches/paul_xx/admin/include/accessClass.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /branches/paul_xx/admin/include/accessClass.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

branches/paul/admin/include/accessClass.php revision 68 by dpavlin, Thu Mar 18 19:24:54 2004 UTC branches/paul_xx/admin/include/accessClass.php revision 69 by dpavlin, Thu Mar 18 20:01:09 2004 UTC
# Line 34  Sets the properties. Line 34  Sets the properties.
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                    
# Line 64  function accessClass($sessionClass) { Line 64  function accessClass($sessionClass) {
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"];

Legend:
Removed from v.68  
changed lines
  Added in v.69

  ViewVC Help
Powered by ViewVC 1.1.26