Update of /cvsroot/phpweather/phpweather/db
In directory usw-pr-cvs1:/tmp/cvs-serv6340
Modified Files:
pw_db_dba.php
Log Message:
Added a suffix on the filenames so it doesn't use the same name at the
default null database.
Index: pw_db_dba.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/db/pw_db_dba.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- pw_db_dba.php 7 Mar 2002 09:40:38 -0000 1.1
+++ pw_db_dba.php 18 Mar 2002 16:57:54 -0000 1.2
@@ -92,33 +92,33 @@
if (!$this->properties['db_pconnect']) {
$this->is_connected = $this->link_id =
dba_open(PHPWEATHER_BASE_DIR . '/db/files/' .
- $this->properties['db_metars'],
+ $this->properties['db_metars'] . '.dba',
'w',
$this->properties['db_handler']);
$this->link_stations_id =
dba_open(PHPWEATHER_BASE_DIR . '/db/files/' .
- $this->properties['db_stations'],
+ $this->properties['db_stations'] . '.dba',
'r',
$this->properties['db_handler']);
$this->link_countries_id =
dba_open(PHPWEATHER_BASE_DIR . '/db/files/' .
- $this->properties['db_countries'],
+ $this->properties['db_countries'] . '.dba',
'r',
$this->properties['db_handler']);
} else {
$this->is_connected = $this->link_id =
dba_popen(PHPWEATHER_BASE_DIR . '/db/files/' .
- $this->properties['db_metars'],
+ $this->properties['db_metars'] . '.dba',
'w',
$this->properties['db_handler']);
$this->link_stations_id =
dba_popen(PHPWEATHER_BASE_DIR . '/db/files/' .
- $this->properties['db_stations'],
+ $this->properties['db_stations'] . '.dba',
'r',
$this->properties['db_handler']);
$this->link_countries_id =
dba_popen(PHPWEATHER_BASE_DIR . '/db/files/' .
- $this->properties['db_countries'],
+ $this->properties['db_countries'] . '.dba',
'r',
$this->properties['db_handler']);
}
@@ -221,33 +221,33 @@
if (!$this->properties['db_pconnect']) {
$this->is_connected = $this->link_id =
dba_open(PHPWEATHER_BASE_DIR . '/db/files/' .
- $this->properties['db_metars'],
+ $this->properties['db_metars'] . '.dba',
'n',
$this->properties['db_handler']);
$this->link_stations_id =
dba_open(PHPWEATHER_BASE_DIR . '/db/files/' .
- $this->properties['db_stations'],
+ $this->properties['db_stations'] . '.dba',
'n',
$this->properties['db_handler']);
$this->link_countries_id =
dba_open(PHPWEATHER_BASE_DIR . '/db/files/' .
- $this->properties['db_countries'],
+ $this->properties['db_countries'] . '.dba',
'n',
$this->properties['db_handler']);
} else {
$this->is_connected = $this->link_id =
dba_popen(PHPWEATHER_BASE_DIR . '/db/files/' .
- $this->properties['db_metars'],
+ $this->properties['db_metars'] . '.dba',
'n',
$this->properties['db_handler']);
$this->link_stations_id =
dba_popen(PHPWEATHER_BASE_DIR . '/db/files/' .
- $this->properties['db_stations'],
+ $this->properties['db_stations'] . '.dba',
'n',
$this->properties['db_handler']);
$this->link_countries_id =
dba_popen(PHPWEATHER_BASE_DIR . '/db/files/' .
- $this->properties['db_countries'],
+ $this->properties['db_countries'] . '.dba',
'n',
$this->properties['db_handler']);
}
|