Changed for public view (from testing purposes)
This commit is contained in:
parent
3afe9390cc
commit
90a98c94b3
17
main.c
17
main.c
@ -1,4 +1,5 @@
|
|||||||
#include "dbquery.h"
|
#include "dbquery.h"
|
||||||
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
void html(void) {
|
void html(void) {
|
||||||
@ -12,15 +13,23 @@ void html(void) {
|
|||||||
In-game database is not directly synced with this web server.\
|
In-game database is not directly synced with this web server.\
|
||||||
</p>\
|
</p>\
|
||||||
</body></html>";
|
</body></html>";
|
||||||
|
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>\
|
||||||
|
<H3>Player Ranks</H3>\
|
||||||
|
<p>cts.py?player=[client id fingerprint]<br>\
|
||||||
|
<hr>";
|
||||||
|
const char *qstr = getenv("QUERY_STRING");
|
||||||
printf("%s", html_top);
|
printf("%s", html_top);
|
||||||
// getquery(getenv("QUERY_STRING"));
|
if (qstr == NULL) {
|
||||||
// getquery("map=pornstar-kaine");
|
printf("%s", html_mid);
|
||||||
getquery(NULL);
|
}
|
||||||
|
getquery(qstr);
|
||||||
printf("%s", html_bot);
|
printf("%s", html_bot);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
html();
|
html();
|
||||||
// getquery("player=duHTyaSGpdTk7oebwPFoo899xPoTwP9bja4DUjCjTLo=");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user