diff options
Diffstat (limited to 'lib/Message.cc')
-rw-r--r-- | lib/Message.cc | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/lib/Message.cc b/lib/Message.cc index 1ede8fb..acd7933 100644 --- a/lib/Message.cc +++ b/lib/Message.cc @@ -1,19 +1,26 @@ #include "HttpServ.h" #include "Message.h" +#include "Buffer.h" +#include "CopyJob.h" #include "config.h" Message::Message(const String & t, const String & m, const String & U, Action * n) : Action(U), tit(t), msg(m), Next(n) { } -void Message::Do(Variables * v, Handle * h) { - SendHead(h); - (*h) << msg << "<CENTER><FORM METHOD=\"POST\" ACTION=\"/bin/" << (Next ? Next->GetURL() : "start") << "\">" << endnl << +Task * Message::Do(Variables * v, 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(h); - (*h) << "</FORM></CENTER>" << endnl; - SendFoot(h); - + v->Dump(b); + (*b) << "</FORM></CENTER>" << endnl; + SendFoot(b); + Accessed(); + + return t; } String Message::GetTitle(void) { |