]> git.sesse.net Git - ccbs/blobdiff - html/ccbs.pm
Update translations.
[ccbs] / html / ccbs.pm
index 3fdf3a5fc85b84c2c521954fb030ef30658f72cb..9d5c44fd337008ea05f4329fcabf77b54a8a3bb1 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;
@@ -92,7 +92,7 @@ sub process_template {
        my $template = Template->new($config);
 
        my $output = '';
-       $template->process('main.tmpl', $vars, \$output)
+       $template->process($ccbs::config::main_template, $vars, \$output)
                or die $template->error();
 
        print $output;