| 321 | |
| 322 | |
| 323 | void cWebAdmin::HandleRootRequest(cHTTPConnection & a_Connection, cHTTPRequest & a_Request) |
| 324 | { |
| 325 | UNUSED(a_Request); |
| 326 | static const char LoginForm[] = \ |
| 327 | "<h1>MCServer WebAdmin</h1>" \ |
| 328 | "<center>" \ |
| 329 | "<form method='get' action='webadmin/'>" \ |
| 330 | "<input type='submit' value='Log in'>" \ |
| 331 | "</form>" \ |
| 332 | "</center>"; |
| 333 | cHTTPResponse Resp; |
| 334 | Resp.SetContentType("text/html"); |
| 335 | a_Connection.Send(Resp); |
| 336 | a_Connection.Send(LoginForm, sizeof(LoginForm) - 1); |
| 337 | a_Connection.FinishResponse(); |
| 338 | } |
| 339 | |
| 340 | |
| 341 |
nothing calls this directly
no test coverage detected