5 |
|
// $Id$ |
6 |
|
|
7 |
|
#include "HostStatus.hpp" |
8 |
+ |
#include "Host.hpp" |
9 |
|
|
10 |
|
int main(int argc, char* argv[]) |
11 |
|
{ |
16 |
|
|
17 |
|
HostStatus::HostStatus() |
18 |
|
{ |
19 |
+ |
sputenv("TZ=:America/Los_Angeles"); |
20 |
+ |
|
21 |
|
string method = sgetenv("REQUEST_METHOD"); |
22 |
|
|
23 |
|
parse(method); |
86 |
|
hostupdate << itor->first << '=' << itor->second << '&'; |
87 |
|
} |
88 |
|
|
89 |
< |
hostupdate << '\n'; |
89 |
> |
hostupdate << '\n' << flush; |
90 |
|
} |
91 |
|
|
92 |
< |
do |
92 |
> |
/* do |
93 |
|
{ |
94 |
|
string line; |
95 |
|
|
97 |
|
|
98 |
|
cout << line << '\n'; |
99 |
|
} |
100 |
< |
while (hostupdate.good()); |
100 |
> |
while (hostupdate.good());*/ |
101 |
|
} |