X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=html%2Fccbs.pm;h=cd71ce8aeb6f68b3ee318ee5464b03a436b79f1a;hb=2b281b9236c2b6aae61081717ea6210900f0dbbe;hp=3fdf3a5fc85b84c2c521954fb030ef30658f72cb;hpb=e71b6b6b5a37007339ff1d3359302e9d78a7ebb2;p=ccbs diff --git a/html/ccbs.pm b/html/ccbs.pm index 3fdf3a5..cd71ce8 100755 --- a/html/ccbs.pm +++ b/html/ccbs.pm @@ -41,7 +41,7 @@ sub print_see_other { } sub db_connect { - my $dbh = DBI->connect("dbi:Pg:dbname=ccbs;host=www.positivegaming.com", "ccbs", "GeT|>>B_") + my $dbh = DBI->connect("dbi:Pg:dbname=$ccbs::config::dbname;host=$ccbs::config::dbhost", $ccbs::config::dbuser, $ccbs::config::dbpass) or die "Couldn't connect to database"; $dbh->{RaiseError} = 1; return $dbh;