ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/HostStatus/HostStatus.cpp
(Generate patch)

Comparing HostStatus/HostStatus.cpp (file contents):
Revision 35 by Douglas Thrift, 2003-11-15T01:40:10-08:00 vs.
Revision 38 by Douglas Thrift, 2003-11-15T20:23:23-08:00

# Line 16 | Line 16 | int main(int argc, char* argv[])
16  
17   HostStatus::HostStatus()
18   {
19 + #ifndef __CYGWIN__
20          sputenv("TZ=:America/Los_Angeles");
21 + #else
22 +        sputenv("TZ= PST8PDT");
23 + #endif
24 +        tzset();
25  
26          string method = sgetenv("REQUEST_METHOD");
27  
# Line 124 | Line 129 | void HostStatus::display(const string& m
129  
130   void HostStatus::header()
131   {
132 <        cout << "<html>\n"
132 >        cout << "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\"\n"
133 >                << "\t\"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
134 >                << "<html>\n"
135                  << "<head>\n"
136 <                << "<link rel=\"StyleSheet\" href=\"../stylesheets/regular.css\" type\""
137 <                << "text/css\">\n"
136 >                << "<link rel=\"StyleSheet\" href=\"../stylesheets/regular.css\" type="
137 >                << "\"text/css\">\n"
138                  << "<title>Host Status</title>\n"
139                  << "</head>\n"
140                  << "<body>\n"
# Line 138 | Line 145 | void HostStatus::header()
145   void HostStatus::footer()
146   {
147          cout << "</table>\n"
148 + /*              << "<pre>" << flush;
149 +
150 +        ipstream env("env");
151 +
152 +        do
153 +        {
154 +                string line;
155 +
156 +                getline(env, line);
157 +
158 +                cout << line << '\n';
159 +        }
160 +        while (env.good());
161 +
162 +        cout << "</pre>\n"*/
163                  << "</html>\n";
164   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines