| 846 | } |
| 847 | |
| 848 | void 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 | |
| 862 | void WebStats::doFlagReport(std::string& page, int flagID) { |
| 863 | flagReportID = flagID; |
nothing calls this directly
no test coverage detected