$link = @pg_pconnect($connect_string) or $error_text .= ("<p/>DEBUG INFORMATION:<br/>Connect: failed to connect to database. $DEBUG_TEXT");
$link = @pg_pconnect($connect_string) or $error_text .= ("<p>DEBUG INFORMATION:<br/>Connect: failed to connect to database. $DEBUG_TEXT");
if ($link) {
pg_set_client_encoding($link, 'UNICODE');
}
} else {
$error_text .= "<p/>DEBUG INFORMATION:<br/>PostgreSQL functions not available! (php5-pgsql installed?)<br/>database_type = 'pgsql' in config.inc.php, are you using a different database? $DEBUG_TEXT";
$error_text .= "<p>DEBUG INFORMATION:<br/>PostgreSQL functions not available! (php5-pgsql installed?)<br/>database_type = 'pgsql' in config.inc.php, are you using a different database? $DEBUG_TEXT";
}
} else {
$error_text = "<p/>DEBUG INFORMATION:<br/>Invalid \$CONF['database_type']! Please fix your config.inc.php! $DEBUG_TEXT";
$error_text = "<p>DEBUG INFORMATION:<br/>Invalid \$CONF['database_type']! Please fix your config.inc.php! $DEBUG_TEXT";
}
return array($link, $error_text);
@ -1570,7 +1570,7 @@ function db_get_boolean($bool) {