]> git.sesse.net Git - ccbs/blobdiff - html/ccbs.pm
Move the database config into config.pm.
[ccbs] / html / ccbs.pm
index 3fdf3a5fc85b84c2c521954fb030ef30658f72cb..cd71ce8aeb6f68b3ee318ee5464b03a436b79f1a 100755 (executable)
@@ -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;