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

Method fillPageList

plugins/webadmin/webadmin.cpp:159–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void WebAdmin::fillPageList(std::vector<std::string> &pages) {
160 std::vector<std::string> templateDirs = templateSystem.getSearchPaths();
161
162 pages.clear();
163
164 for (size_t d = 0; d < templateDirs.size(); d++) {
165 std::vector<std::string> files = getFilesInDir(templateDirs[d], "*.page", false);
166
167 for (size_t f = 0; f < files.size(); f++) {
168 pages.push_back(getFileTitle(files[f]) + "." + getFileExtension(files[f]));
169 }
170 }
171}
172
173void WebAdmin::buildAuthPermsFromPages(void) {
174 std::vector<std::string> pages;

Callers

nothing calls this directly

Calls 7

getSearchPathsMethod · 0.80
getFilesInDirFunction · 0.50
getFileTitleFunction · 0.50
getFileExtensionFunction · 0.50
clearMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected