/[libdata]/branches/pear-db/admin/include/sessionClass.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/pear-db/admin/include/sessionClass.php

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

revision 52 by dpavlin, Fri Mar 5 22:38:33 2004 UTC revision 53 by dpavlin, Sat Mar 6 00:33:16 2004 UTC
# Line 90  function sessionClass($duration, $sessio Line 90  function sessionClass($duration, $sessio
90                  $time_human = $year . "-" . $mon . "-" . $mday . " " . $hours . ":" . $minutes . ":" . $seconds;                  $time_human = $year . "-" . $mon . "-" . $mday . " " . $hours . ":" . $minutes . ":" . $seconds;
91                                    
92                  // Build the SQL line to insert it into the database                  // Build the SQL line to insert it into the database
93                  $sql = "INSERT INTO session (staff_account, user_ip, session_id, time_human, time_unix, time_expire) VALUES ('"                  $sql = "INSERT INTO session (staff_account, user_ip, session_id, time_human, time_unix, time_expire)
94                          . $staff_account                          VALUES (?, ?, ?, ?, ?, ?)";
                         . "', '"  
                         . $user_ip  
                         . "', '"  
                         . $session_id  
                         . "', '"  
                         . $time_human  
                         . "', '"  
                         . $time_unix  
                         . "', '"  
                         . $time_expire    
                         . "')";  
95                                    
96                  // xx_query ("LOCK TABLE session WRITE", $this->con_session);                  // xx_query ("LOCK TABLE session WRITE", $this->con_session);
97                  if (!xx_query($sql, $this->con_session)){                  if (!xx_prepare_execute($sql,
98                            $staff_account,
99                            $user_ip,
100                            $session_id,
101                            $time_human,
102                            $time_unix,
103                            $time_expire)) {        
104                          xx_query ("UNLOCK TABLES", $this->con_session);                          xx_query ("UNLOCK TABLES", $this->con_session);
105                          $this->bailout();                          $this->bailout();
106                  }                  }

Legend:
Removed from v.52  
changed lines
  Added in v.53

  ViewVC Help
Powered by ViewVC 1.1.26