/[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

trunk/admin/include/accessClass.php revision 31 by dpavlin, Thu Mar 4 21:18:33 2004 UTC branches/paul_xx/admin/include/accessClass.php revision 69 by dpavlin, Thu Mar 18 20:01:09 2004 UTC
# Line 18  var $staff_id; Line 18  var $staff_id;
18    
19  // Database variables  // Database variables
20  var $db_ac = "libdata";  var $db_ac = "libdata";
21  var $db_ac_srv = "localhost";  var $db_ac_srv = "yourlibrary.edu";
22  var $db_ac_usr = "libdata";  var $db_ac_usr = "libdata";
23  var $db_ac_pwd = "libdatapw";  var $db_ac_pwd = "changEth1s";
24    
25    
26  /**********************************************************  /**********************************************************
27  Constructor Method: accessClass  Constructor Method: accessClass
# Line 33  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 63  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.31  
changed lines
  Added in v.69

  ViewVC Help
Powered by ViewVC 1.1.26