/[libdata]/trunk/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 /trunk/admin/include/accessClass.php

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

revision 71 by dpavlin, Thu Mar 4 21:18:33 2004 UTC revision 72 by dpavlin, Thu Mar 18 20:33:37 2004 UTC
# Line 33  Sets the properties. Line 33  Sets the properties.
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                    
# Line 63  function accessClass($sessionClass) { Line 63  function accessClass($sessionClass) {
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"];

Legend:
Removed from v.71  
changed lines
  Added in v.72

  ViewVC Help
Powered by ViewVC 1.1.26