18 lines
781 B
C++
18 lines
781 B
C++
#ifndef ____setupadmin_h__
|
|
#define ____setupadmin_h__
|
|
|
|
namespace http {
|
|
|
|
class __setupadmin : core::Command {
|
|
|
|
int processCommand(std::string request, core::Session *session) override {
|
|
session.out << "<http><head></head><body style=\"background: #006; color: #fff;\">\
|
|
<form action=\"setupadmin\"><div style=\"background: #44C; text: #888; padding: 20px;\"><p>Please enter credential information\
|
|
for the security officer.<br><input type=\"text\" name=\"username\" size=\"50\">\
|
|
<br>Session Id: " + httpSession->getSessionId() + "\
|
|
<br>The configuration has not yet been established for this web site.</p>\
|
|
<button>Configure</button>\
|
|
</div></form></body></html>";
|
|
session.send();
|
|
}
|
|
} |