# | Line 22 | Line 22 | int main(int argc, char* argv[]) | |
---|---|---|
22 | ||
23 | Bender::Bender() | |
24 | { | |
25 | < | // |
25 | > | string path = sgetenv("PATH_TRANSLATED"); |
26 | > | |
27 | > | if (path != "") |
28 | > | { |
29 | > | cout << "Content-Type: text/html\n\n"; |
30 | > | |
31 | > | XalanTransformer transformer; |
32 | > | |
33 | > | if (transformer.transform(path.c_str(), cout) != 0) |
34 | > | { |
35 | > | ifstream fin(path.c_str()); |
36 | > | string line; |
37 | > | |
38 | > | do |
39 | > | { |
40 | > | getline(fin, line); |
41 | > | |
42 | > | cout << line << "\n"; |
43 | > | } |
44 | > | while (fin.good()); |
45 | > | } |
46 | > | } |
47 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |