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

Method newPage

plugins/webadmin/logs.cpp:99–109  ·  view source on GitHub ↗

check for any filter params

Source from the content-addressed store, hash-verified

97
98// check for any filter params
99void LogLoop::newPage(const std::string& pagename, const HTTPRequest& request) {
100 displayLimit = 20;
101 if (!pagename.size() || compare_nocase(pagename, "main")) {
102 displayLimit = 5;
103 }
104
105 std::string val;
106 if (request.getParam("loglimit", val)) {
107 displayLimit = (size_t)atoi(val.c_str());
108 }
109}
110
111void LogLoop::getKey(size_t item, std::string& data, const std::string& key) {
112 LogMessage& message = messages[item];

Callers 1

callNewPageCallbacksFunction · 0.45

Calls 4

c_strMethod · 0.80
compare_nocaseFunction · 0.50
sizeMethod · 0.45
getParamMethod · 0.45

Tested by

no test coverage detected