diff options
Diffstat (limited to 'lib/Message.cc')
-rw-r--r-- | lib/Message.cc | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/lib/Message.cc b/lib/Message.cc index 1a381da..5cb8859 100644 --- a/lib/Message.cc +++ b/lib/Message.cc @@ -1,30 +1,30 @@ -#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-#include "HttpServ.h"
-#include "Message.h"
-#include "Buffer.h"
-#include "CopyJob.h"
-
-Message::Message(const String & t, const String & m, const String & U, Action * n) :
- Action(U), tit(t), msg(m), Next(n) { }
-
-Task * Message::Do(Variables * v, Variables *, Handle * h) {
- Handle * b = new Buffer();
- Task * t = new CopyJob(b, h, -1, true);
-
- SendHead(b);
- (*b) << msg << "<CENTER><FORM METHOD=\"POST\" ACTION=\"/bin/" << (Next ? Next->GetURL() : "start") << "\">" << endnl <<
- "<INPUT TYPE=\"SUBMIT\" VALUE=\" Ok \">" << endnl;
- v->Dump(b);
- (*b) << "</FORM></CENTER>" << endnl;
- SendFoot(b);
-
- Accessed();
-
- return t;
-}
-
-String Message::GetTitle(void) {
- return tit;
-}
+#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#include "HttpServ.h" +#include "Message.h" +#include "Buffer.h" +#include "CopyJob.h" + +Message::Message(const String & t, const String & m, const String & U, Action * n) : + Action(U), tit(t), msg(m), Next(n) { } + +Task * Message::Do(Variables * v, Variables *, Handle * h) { + Handle * b = new Buffer(); + Task * t = new CopyJob(b, h, -1, true); + + SendHead(b); + (*b) << msg << "<CENTER><FORM METHOD=\"POST\" ACTION=\"/bin/" << (Next ? Next->GetURL() : "start") << "\">" << endnl << + "<INPUT TYPE=\"SUBMIT\" VALUE=\" Ok \">" << endnl; + v->Dump(b); + (*b) << "</FORM></CENTER>" << endnl; + SendFoot(b); + + Accessed(); + + return t; +} + +String Message::GetTitle(void) { + return tit; +} |