try {
init_freetype();
set_screen_size(screen_width, screen_height);
- pqxx::connection conn("dbname=ccbs host=www.positivegaming.com user=ccbs password=GeT|>>B_");
+
+ char connstr[1024];
+ snprintf(connstr, sizeof(connstr), "dbname=%s host=%s user=%s password=%s",
+ get_theme_config("db", "dbname").c_str(),
+ get_theme_config("db", "host").c_str(),
+ get_theme_config("db", "user").c_str(),
+ get_theme_config("db", "password").c_str());
+ pqxx::connection conn(connstr);
FlagTrigger tournament_changed(conn, "active_tournament");
FlagTrigger rounds_changed(conn, "active_groups");