JETServer
/home/bradarant/barant/HTTPServer/__welcome.h
1
#ifndef ____welcome_h__
2
#define ____welcome_h__
3
4
#include "HTTPPage.h"
5
#include "BMAMySQL.h"
6
7
namespace
http
{
8
9
class
__welcome
:
public
HTTPPage
{
10
11
int
processCommand(std::string request,
12
core::Session *session,
13
HTTPSession
*httpSession,
14
HTTPRequest
&httpRequest,
15
std::stringstream &data)
override
{
16
17
data <<
"<div class=\"window\">\
18
<p>You have successfully set up a JETServer.\
19
<br>Session Id: "
<< httpSession->getSessionId() <<
"\
20
<br>The configuration has not yet been established for this web site.</p>\
21
<input type=\"button\" onmousedown=\"getPage('/setupadmin','main'); return true;\" name=\"button1\" value=\"Configure\">\
22
</div>"
;
23
24
httpRequest.response.addHeader(
"Content-Type"
,
"text/html"
);
25
26
return
true
;
27
}
28
};
29
}
30
31
#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::__welcome
Definition:
__welcome.h:9
Generated by
1.8.13