1 |
Douglas Thrift |
3 |
// Host Update |
2 |
|
|
// |
3 |
|
|
// Douglas Thrift |
4 |
|
|
// |
5 |
|
|
// $Id$ |
6 |
|
|
|
7 |
|
|
#include "HostUpdate.hpp" |
8 |
Douglas Thrift |
9 |
#include "Host.hpp" |
9 |
Douglas Thrift |
3 |
|
10 |
|
|
int main(int argc, char* argv[]) |
11 |
|
|
{ |
12 |
|
|
HostUpdate update; |
13 |
|
|
|
14 |
|
|
return 0; |
15 |
|
|
} |
16 |
|
|
|
17 |
|
|
HostUpdate::HostUpdate() |
18 |
|
|
{ |
19 |
|
|
CgiEnvironment env = cgi.getEnvironment(); |
20 |
|
|
|
21 |
|
|
cout << "Location: " << (env.usingHTTPS() ? "https" : "http") << "://" |
22 |
|
|
<< env.getServerName() << ":" << env.getServerPort() << "/\n\n"; |
23 |
|
|
|
24 |
|
|
form_iterator itor = cgi["host"]; |
25 |
|
|
FormEntry host = *itor; |
26 |
|
|
} |
27 |
|
|
|
28 |
|
|
HostUpdate::~HostUpdate() |
29 |
|
|
{ |
30 |
|
|
} |