Add a phpcompta_user variable for the conn. string

This commit is contained in:
sparkyx 2007-06-10 09:18:42 +00:00
parent 4a0c49c0a6
commit efb0e626a3
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,4 @@
<?php //$Revision$
<?php
/*
* This file is part of PhpCompta.
*
@ -98,8 +98,9 @@ function DbConnect($p_db=-1,$p_type='dossier') {
$password=phpcompta_password;
$port=phpcompta_psql_port;
ob_start();
$a=pg_connect("dbname=$l_dossier host=127.0.0.1 user='phpcompta'
$a=pg_connect("dbname=$l_dossier host=127.0.0.1 user='$phpcompta_user'
password='$password' port=$port");
if ( $a == false )
{
ob_clean();