38 lines
2.0 KiB
C++
38 lines
2.0 KiB
C++
#ifndef ____configure_h__
|
|
#define ____configure_h__
|
|
|
|
namespace http {
|
|
|
|
class __configure : public HTTPPage {
|
|
|
|
int processCommand(std::string request, core::Session *session, HTTPSession *httpSession, HTTPRequest &httpRequest, std::stringstream &data) override {
|
|
|
|
data << "<form name=\"configure\" action=\"setupadmin\" method=\"POST\">" << std::endl;
|
|
data << " <div class=\"window\"><h1>System Configuration</h1>" << std::endl;
|
|
data << "" << std::endl;
|
|
data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
|
|
data << " <div>Web Domain Name:</div>" << std::endl;
|
|
data << " <input type=\"text\" name=\"domainname\" size=\"30\">" << std::endl;
|
|
data << " </div>" << std::endl;
|
|
data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
|
|
data << " <div>View Directory:</div>" << std::endl;
|
|
data << " <input type=\"text\" name=\"viewdirectory\" size=\"30\">" << std::endl;
|
|
data << " </div>" << std::endl;
|
|
data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
|
|
data << " <div>Image Library Directory:</div>" << std::endl;
|
|
data << " <input type=\"password\" name=\"imagelibrary\" size=\"30\">" << std::endl;
|
|
data << " </div>" << std::endl;
|
|
data << " <br><br>Session Id: " << httpSession->getSessionId() << "" << std::endl;
|
|
data << " <br>The configuration has not yet been established for this web site.</p>" << std::endl;
|
|
data << " <input type=\"button\" onmousedown=\"process('/mainmenu','configure', 'main'); return true;\" name=\"button1\" value=\"Update Configuration\">" << std::endl;
|
|
data << " </div></form>" << std::endl;
|
|
|
|
httpRequest.response.addHeader("Content-Type", "text/html");
|
|
|
|
return true;
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif
|