Browse Source

Strings edited to refer to program instead of its python counterpart.

master
5 years ago
parent
commit
589f7cec9f
  1. 2
      includes/dbquery.c
  2. 4
      main.c

2
includes/dbquery.c

@ -88,7 +88,7 @@ static void qresult(sqlite3_stmt * const sp, const char *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("<TD><a href='/cgi/cts.py?map=%s'>%s</a></TD>", sqlite3_column_text(sp, i), sqlite3_column_text(sp, i));
printf("<TD><a href='/cgi/cts?map=%s'>%s</a></TD>", 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 {

4
main.c

@ -16,9 +16,9 @@ void html(void) { @@ -16,9 +16,9 @@ void html(void) {
const char *html_mid = "<br>\
<H2>hi / good luck and have fun.<br><br>Available Pages</H2>\
<H3>Map Leaderboards</H3>\
<p>cts.py?map=[map name]</p>\
<p>cts?map=[map name]</p>\
<H3>Player Ranks</H3>\
<p>cts.py?player=[client id fingerprint]<br>\
<p>cts?player=[client id fingerprint]<br>\
<hr>";
const char *qstr = getenv("QUERY_STRING");
printf("%s", html_top);

Loading…
Cancel
Save