diff --git a/includes/dbquery.c b/includes/dbquery.c index bbdf345..f93ef84 100644 --- a/includes/dbquery.c +++ b/includes/dbquery.c @@ -88,7 +88,7 @@ static void qresult(sqlite3_stmt * const sp, const char *c) { if ((*c == 'm' && i == 1) || (*c == '\0' && i == 3) || (*c == 'p' && i == 0)) { print_plname(sqlite3_column_text(sp, i)); } else if ((i == 0 && *c == '\0') || (i == 1 && *c == 'p') ) { - printf("%s", sqlite3_column_text(sp, i), sqlite3_column_text(sp, i)); + printf("%s", sqlite3_column_text(sp, i), sqlite3_column_text(sp, i)); } else if (i == 2 && (*c == 'm' || *c == '\0')) { print_time(sqlite3_column_text(sp, i)); } else { diff --git a/main.c b/main.c index 862b8e3..ea1b5a4 100644 --- a/main.c +++ b/main.c @@ -16,9 +16,9 @@ void html(void) { const char *html_mid = "
\

hi / good luck and have fun.

Available Pages

\

Map Leaderboards

\ -

cts.py?map=[map name]

\ +

cts?map=[map name]

\

Player Ranks

\ -

cts.py?player=[client id fingerprint]
\ +

cts?player=[client id fingerprint]
\


"; const char *qstr = getenv("QUERY_STRING"); printf("%s", html_top);