|
$Server = $Server == '' ? 'localhost' : $Server;
$DbName = $DbName == '' ? 'lightbox' : $DbName;
$User = $User == '' ? 'lightbox' : $User;
if ( !extension_loaded( "pgsql" ) ) {
dl("php_pgsql.dll");
}
$this->Connect = pg_connect(
"host=$Server" .
" port=5432" .
" dbname=$DbName" .
" user=$User" .
" password=$Password"
);
if ( $GLOBALS['conf_db_connect_action'] != '' ) {
pg_query( $this->Connect, $GLOBALS['conf_db_connect_action'] );
}
| |