Update of /cvsroot/phpmychat/phpMyChat - 0.14/chat/lib/database
In directory usw-pr-cvs1:/tmp/cvs-serv8139/chat/lib/database
Modified Files:
pgsql.lib.php3
Log Message:
Tried a fix for the bug #438170 (Connecting to postgres on port 5433)
***** Bogus filespec: -
***** Bogus filespec: 0.14/chat/lib/database
Index: pgsql.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat - 0.14/chat/lib/database/pgsql.lib.php3,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** pgsql.lib.php3 2001/03/17 10:04:39 1.3
--- pgsql.lib.php3 2001/07/03 20:19:21 1.4
***************
*** 26,41 ****
if($this->Link_ID == 0)
{
! $options = "dbname=".$this->Database;
if ($this->Host)
{
! $tmp = split(":", $this->Host);
! if ($tmp[0])
{
! $options .= " host=".$tmp[0];
! if ($tmp[1]) $options .= " port=".$tmp[1];
}
}
! if ($this->User) $options .= " user=".$this->User;
! if ($this->Password) $options .= " password=".$this->Password;
$this->Link_ID = @pg_Connect($options);
if (!$this->Link_ID)
--- 26,48 ----
if($this->Link_ID == 0)
{
! $options = '';
if ($this->Host)
{
! $tmp = split(':', $this->Host);
! $options .= 'host=' . $tmp[0];
! if ($tmp[1])
{
! $options .= ' port=' . $tmp[1];
}
}
! $options .= ' dbname=' . $this->Database;
! if ($this->User)
! {
! $options .= ' user=' . $this->User;
! }
! if ($this->Password)
! {
! $options .= ' password=' . $this->Password;
! }
$this->Link_ID = @pg_Connect($options);
if (!$this->Link_ID)
|