/[health_html]/inc/class.DBI
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 /inc/class.DBI

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

revision 1.1.1.1 by ravilov, Fri Aug 3 09:12:42 2001 UTC revision 1.2 by ravilov, Wed Sep 19 12:23:56 2001 UTC
# Line 38  class DBI { Line 38  class DBI {
38          ereg( "(p)?dbi:(.+):(.+)", $dbi_connect_str, $regs )){          ereg( "(p)?dbi:(.+):(.+)", $dbi_connect_str, $regs )){
39        $dbi[db_type]       = $regs[2];        $dbi[db_type]       = $regs[2];
40        $dbi[db_name]       = $regs[3];        $dbi[db_name]       = $regs[3];
41        $dbi[db_host]       = ( $regs[5] ? $regs[5] : 'localhost' );        $dbi[db_host]       = ( $regs[5] ? $regs[5] : '' );
42        $dbi[is_persistent] = ( $regs[1] ? 1 : 0 );        $dbi[is_persistent] = ( $regs[1] ? 1 : 0 );
43        //echo "Connecting: [ ",        //echo "Connecting: [ ",
44          //$dbi[db_type],"][",          //$dbi[db_type],"][",
# Line 108  class DBI { Line 108  class DBI {
108            
109      //Include the file only if we have not already read it.      //Include the file only if we have not already read it.
110      if( ! $GLOBALS['classDBD'.$db_type."_read"] ){      if( ! $GLOBALS['classDBD'.$db_type."_read"] ){
111        include( 'class.DBD::'.$db_type );        include( 'inc/class.DBD::'.$db_type );
112      }      }
113            
114      //Check to see if we could read it...      //Check to see if we could read it...

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.26