Strings edited to refer to program instead of its python counterpart.
This commit is contained in:
parent
90a98c94b3
commit
589f7cec9f
@ -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
4
main.c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user