summaryrefslogtreecommitdiff
path: root/lib/Message.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Message.cc')
-rw-r--r--lib/Message.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/Message.cc b/lib/Message.cc
new file mode 100644
index 0000000..1ede8fb
--- /dev/null
+++ b/lib/Message.cc
@@ -0,0 +1,21 @@
+#include "HttpServ.h"
+#include "Message.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 <<
+ "<INPUT TYPE=\"SUBMIT\" VALUE=\" Ok \">" << endnl;
+ v->Dump(h);
+ (*h) << "</FORM></CENTER>" << endnl;
+ SendFoot(h);
+
+ Accessed();
+}
+
+String Message::GetTitle(void) {
+ return tit;
+}