HTTPServer/__welcome.h

30 lines
874 B
C++

#ifndef ____welcome_h__
#define ____welcome_h__
#include "HTTPPage.h"
namespace http {
class __welcome : public HTTPPage {
int processCommand(HTTPRequest *httpRequest,
core::TCPSession *session,
HTTPSession *httpSession,
std::stringstream &data) override {
data << "<div class=\"window\">\
<p>You have successfully set up a JETServer.\
<br>Session Id: " << httpSession->getSessionId() << "\
<br>The configuration has not yet been established for this web site.</p>\
<input type=\"button\" onmousedown=\"getPage('/setupadmin','main'); return true;\" name=\"button1\" value=\"Configure\">\
</div>";
httpRequest->response.addHeader("Content-Type", "text/html");
return true;
}
};
}
#endif