#include "HttpServ.h" #include "Confirm.h" #include "Buffer.h" #include "CopyJob.h" #include "config.h" Confirm::Confirm(const String & t, const String & m, const String & U, Action * y, Action * n) : Action(U), tit(t), msg(m), NYes(y), NNo(n) { } Task * Confirm::Do(Variables * v, Handle * h) { Handle * b = new Buffer; Task * t = new CopyJob(b, h, -1, true); SendHead(b); (*b) << msg << "
" << endnl << "
GetURL() : "start") << "\">" << endnl << "" << endnl << "" << endnl; v->Dump(b); (*b) << "
" << endnl << "
GetURL() : "start") << "\">" << endnl << "" << endnl << "" << endnl; v->Dump(b); (*b) << "
" << endnl; SendFoot(b); Accessed(); return t; } String Confirm::GetTitle(void) { return tit; }