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

Method doPlayerReport

plugins/webstats/webstats.cpp:848–860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846}
847
848void WebStats::doPlayerReport(std::string& page, int playerID) {
849 playeRecord = bz_getPlayerByIndex(playerID);
850 if (!playeRecord) {
851 page += "Invalid Player";
852 }
853 else {
854 if (!templateSystem.processTemplateFile(page, "player.tmpl")) {
855 templateSystem.processTemplate(page, defaultPlayerTemplate);
856 }
857 bz_freePlayerRecord(playeRecord);
858 }
859 playeRecord = NULL;
860}
861
862void WebStats::doFlagReport(std::string& page, int flagID) {
863 flagReportID = flagID;

Callers

nothing calls this directly

Calls 3

bz_freePlayerRecordFunction · 0.85
processTemplateFileMethod · 0.80
processTemplateMethod · 0.80

Tested by

no test coverage detected