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");
screen.logical_width=800
screen.logical_height=600
+# Database configuration.
+db.dbname=ccbs
+db.host=www.positivegaming.com
+db.user=ccbs
+db.password=GeT|>>B_
+
# Theme.
default.font=/usr/share/fonts/truetype/msttcorefonts/Georgia.ttf;/usr/share/fonts/truetype/freefont/FreeSerif.ttf;arialuni.ttf
default.red=255