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

This commit is contained in:
2017-03-19 00:22:53 -07:00
parent 90a98c94b3
commit 589f7cec9f
2 changed files with 3 additions and 3 deletions

View File

@ -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)) { if ((*c == 'm' && i == 1) || (*c == '\0' && i == 3) || (*c == 'p' && i == 0)) {
print_plname(sqlite3_column_text(sp, i)); print_plname(sqlite3_column_text(sp, i));
} else if ((i == 0 && *c == '\0') || (i == 1 && *c == 'p') ) { } 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')) { } else if (i == 2 && (*c == 'm' || *c == '\0')) {
print_time(sqlite3_column_text(sp, i)); print_time(sqlite3_column_text(sp, i));
} else { } else {

4
main.c
View File

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