Changeset 6787
- Timestamp:
- 2004-02-12T15:06:37+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/phindaction.cpp
r2542 r6787 121 121 } 122 122 123 void phindaction::get_cgihead_info (cgiargsclass & /*args*/, recptprotolistclass * /*protos*/,123 void phindaction::get_cgihead_info (cgiargsclass &args, recptprotolistclass * /*protos*/, 124 124 response_t &response,text_t &response_data, 125 125 ostream &/*logout*/) { 126 126 response = content; 127 response_data = "text/html"; 127 if (args["pxml"] == "1") { 128 response_data = "text/xml"; 129 } else { 130 response_data = "text/html"; 131 } 128 132 } 129 133 … … 208 212 // Output the header 209 213 if (XMLmode) { 210 textout << "Content-type: text/plain\n\n" 211 << "<phinddata id=\"" << phrase 214 textout << "<phinddata id=\"" << phrase 212 215 << "\" text=\"" << word 213 216 << "\" tf=\"" << tf … … 217 220 << "\">\n"; 218 221 } else { 219 textout << "Content-type: text/html\n\n" 220 << "<html><head><title>" << word << "</title></head>\n" 222 textout << "<html><head><title>" << word << "</title></head>\n" 221 223 << "<body><center>\n" 222 224 << "<p><h1>" << word << "</h1>\n"
Note:
See TracChangeset
for help on using the changeset viewer.