Changeset 160 for trunk/gsdl/src/recpt
- Timestamp:
- 1999-02-12T15:40:18+13:00 (25 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/Makefile
r158 r160 36 36 37 37 HEADERS = receptionist.h cgiwrapper.h cgiargs.h action.h \ 38 converter.h recptconfig.h cgiutils.h htmlgen.h statusaction.h 38 converter.h recptconfig.h cgiutils.h htmlgen.h statusaction.h pageaction.h 39 39 40 40 SOURCES = receptionist.cpp cgiwrapper.cpp cgiargs.cpp recptmain.cpp action.cpp \ 41 converter.cpp recptconfig.cpp cgiutils.cpp htmlgen.cpp statusaction.cpp 41 converter.cpp recptconfig.cpp cgiutils.cpp htmlgen.cpp statusaction.cpp pageaction.cpp 42 42 43 43 OBJECTS = receptionist.o cgiwrapper.o cgiargs.o recptmain.o action.o \ 44 converter.o recptconfig.o cgiutils.o htmlgen.o statusaction.o 44 converter.o recptconfig.o cgiutils.o htmlgen.o statusaction.o pageaction.o 45 45 46 46 EXEC = recpt … … 74 74 cgiwrapper.o: ../../lib/gsdlconf.h ../../lib/site.h cgiwrapper.h 75 75 cgiwrapper.o: receptionist.h ../../lib/text_t.h cgiargs.h ../../lib/display.h 76 cgiwrapper.o: action.h recptconfig.h statusaction.h 76 cgiwrapper.o: action.h recptconfig.h statusaction.h pageaction.h 77 77 cgiwrapper.o: ../../packages/fcgi/include/fcgiapp.h 78 78 cgiwrapper.o: ../../packages/fcgi/include/fcgi_config.h … … 97 97 statusaction.o: ../../lib/text_t.h cgiargs.h ../../lib/display.h 98 98 statusaction.o: receptionist.h 99 pageaction.o: pageaction.h ../../lib/gsdlconf.h ../../lib/site.h action.h 100 pageaction.o: ../../lib/text_t.h cgiargs.h ../../lib/display.h 101 pageaction.o: receptionist.h -
trunk/gsdl/src/recpt/cgiwrapper.cpp
r158 r160 12 12 /* 13 13 $Log$ 14 Revision 1.6 1999/02/12 02:40:17 sjboddie 15 16 Added page action 17 14 18 Revision 1.5 1999/02/11 01:24:04 rjmcnab 15 19 … … 49 53 #include "action.h" 50 54 #include "statusaction.h" 55 #include "pageaction.h" 51 56 #include <stdlib.h> 52 57 … … 312 317 outconvertclass text_t2ascii; 313 318 314 // the thelist of actions319 // the list of actions 315 320 statusaction *astatusaction = new statusaction; 316 321 if (astatusaction != NULL) { … … 318 323 recpt.add_action (astatusaction); 319 324 } 325 326 pageaction *apageaction = new pageaction; 327 if (apageaction != NULL) { 328 apageaction->set_receptionist (&recpt); 329 recpt.add_action (apageaction); 330 } 331 320 332 321 333 // set defaults -
trunk/gsdl/src/recpt/statusaction.cpp
r159 r160 12 12 /* 13 13 $Log$ 14 Revision 1.4 1999/02/12 02:40:18 sjboddie 15 16 Added page action 17 14 18 Revision 1.3 1999/02/11 23:07:00 sjboddie 15 19 … … 61 65 62 66 bool statusaction::do_action (cgiargsclass &args, outconvertclass &outconvert, 63 ostream &textout, ostream &/*logout*/) { 67 ostream &textout, ostream &logout) { 68 64 69 textout << outconvert << "<html>\n"; 65 70 textout << outconvert << "<head>\n"; … … 187 192 } 188 193 194 ifstream errin (GSDL_GSDLHOME "/etc/errout.txt"); 195 if (initin) { 196 textout << outconvert << "<p>The error log, " GSDL_GSDLHOME "/etc/errout.txt, contains the\n"; 197 textout << outconvert << "following information:\n\n"; 198 text_t errorpage = "<p><pre>\n"; 199 200 char c; 201 errin.get(c); 202 while (!errin.eof ()) { 203 errorpage.push_back(c); 204 errin.get(c); 205 } 206 207 errorpage += "</pre>\n"; 208 errin.close(); 209 textout << outconvert << errorpage; 210 211 } else { 212 textout << outconvert << "Couldn't read error log, " GSDL_GSDLHOME "/etc/errout.txt.\n"; 213 } 214 189 215 textout << outconvert << "</body>\n"; 190 216 textout << outconvert << "</html>\n";
Note:
See TracChangeset
for help on using the changeset viewer.