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

Method doStatReport

plugins/webstats/webstats.cpp:833–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

831}
832
833void WebStats::doStatReport(std::string& page, std::string& action) {
834 playeRecord = NULL;
835 initReport();
836
837 if (action.size()) {
838 action += ".tmpl";
839 }
840 if (!action.size() || !templateSystem.processTemplateFile(page, action.c_str())) {
841 if (!templateSystem.processTemplateFile(page, "tmpl")) {
842 templateSystem.processTemplate(page, defaultMainTemplate);
843 }
844 }
845 finishReport();
846}
847
848void WebStats::doPlayerReport(std::string& page, int playerID) {
849 playeRecord = bz_getPlayerByIndex(playerID);

Callers

nothing calls this directly

Calls 4

processTemplateFileMethod · 0.80
c_strMethod · 0.80
processTemplateMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected