camembert/camembert-before-ldap/inc/inc.db.php
2019-04-14 20:37:40 +02:00

16 lines
278 B
PHP

<?php
$db_name = "camembert";
$db_user = "camembert";
$db_pass = "CamembertDB@Pacat";
function ConnectDB() {
global $db, $db_name, $db_user, $db_pass;
if(!$db) {
$db = pg_connect("dbname=${db_name} user=${db_user} password=${db_pass}");
}
return $db;
}