MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / doFlagReport

Method doFlagReport

plugins/webstats/webstats.cpp:862–873  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

860}
861
862void WebStats::doFlagReport(std::string& page, int flagID) {
863 flagReportID = flagID;
864 if (flagReportID < 0 || flagReportID > (int)bz_getNumFlags()) {
865 page += "Invalid Flag";
866 }
867 else {
868 if (!templateSystem.processTemplateFile(page, "flag.tmpl")) {
869 templateSystem.processTemplate(page, defaultFlagTemplate);
870 }
871 }
872 flagReportID = -1;
873}
874
875//void WebStats::getURLData(const char* url, int requestID, const URLParams &paramaters, bool get)
876bool WebStats::handleRequest(const HTTPRequest& request, HTTPReply& reply) {

Callers

nothing calls this directly

Calls 3

bz_getNumFlagsFunction · 0.85
processTemplateFileMethod · 0.80
processTemplateMethod · 0.80

Tested by

no test coverage detected