JETServer
/home/bradarant/barant/HTTPServer/__configure.h
1
#ifndef ____configure_h__
2
#define ____configure_h__
3
4
namespace
http
{
5
6
class
__configure
:
public
HTTPPage
{
7
8
int
processCommand(std::string request, core::Session *session,
HTTPSession
*httpSession,
HTTPRequest
&httpRequest, std::stringstream &data)
override
{
9
10
data <<
"<form name=\"configure\" action=\"setupadmin\" method=\"POST\">"
<< std::endl;
11
data <<
" <div class=\"window\"><h1>System Configuration</h1>"
<< std::endl;
12
data <<
""
<< std::endl;
13
data <<
" <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">"
<< std::endl;
14
data <<
" <div>Web Domain Name:</div>"
<< std::endl;
15
data <<
" <input type=\"text\" name=\"domainname\" size=\"30\">"
<< std::endl;
16
data <<
" </div>"
<< std::endl;
17
data <<
" <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">"
<< std::endl;
18
data <<
" <div>View Directory:</div>"
<< std::endl;
19
data <<
" <input type=\"text\" name=\"viewdirectory\" size=\"30\">"
<< std::endl;
20
data <<
" </div>"
<< std::endl;
21
data <<
" <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">"
<< std::endl;
22
data <<
" <div>Image Library Directory:</div>"
<< std::endl;
23
data <<
" <input type=\"password\" name=\"imagelibrary\" size=\"30\">"
<< std::endl;
24
data <<
" </div>"
<< std::endl;
25
data <<
" <br><br>Session Id: "
<< httpSession->getSessionId() <<
""
<< std::endl;
26
data <<
" <br>The configuration has not yet been established for this web site.</p>"
<< std::endl;
27
data <<
" <input type=\"button\" onmousedown=\"process('/mainmenu','configure', 'main'); return true;\" name=\"button1\" value=\"Update Configuration\">"
<< std::endl;
28
data <<
" </div></form>"
<< std::endl;
29
30
httpRequest.response.addHeader(
"Content-Type"
,
"text/html"
);
31
32
return
true
;
33
}
34
};
35
}
36
37
#endif
http::HTTPSession
Definition:
HTTPSession.h:9
http
Definition:
__configure.h:4
http::HTTPPage
Definition:
HTTPPage.h:11
http::HTTPRequest
Definition:
HTTPRequest.h:11
http::__configure
Definition:
__configure.h:6
Generated by
1.8.13