Changeset 1129 for trunk/gsdl/src/recpt
- Timestamp:
- 2000-04-20T10:30:25+12:00 (24 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/authenaction.cpp
r755 r1129 28 28 /* 29 29 $Log$ 30 Revision 1.10 2000/04/19 22:30:23 sjboddie 31 tidied up status pages and end-user collection building 32 30 33 Revision 1.9 1999/11/01 21:11:35 sjboddie 31 34 changed arguments passed to many functions … … 300 303 + "_")); 301 304 // change style of header and footer if page is a frame 302 if ( args["sp"] != "frameset") {305 if ((args["sp"].empty()) || (args["sp"] == "frameset")) { 303 306 disp.setmacro ("header", "authen", "_status:infoheader_(Log in)"); 304 307 disp.setmacro ("header", "authenok", "_status:infoheader_(Log in)"); … … 306 309 disp.setmacro ("footer", "authenok", "_status:infofooter_(Log in)"); 307 310 } 308 else {309 // disp.setmacro ("header", "authen", "_Global:header_"); //****310 // disp.setmacro ("header", "authenok", "_Global:header_");311 // disp.setmacro ("footer", "authen", "_Global:footer_");312 // disp.setmacro ("footer", "authenok", "_Global:footer_");313 disp.setmacro ("header", "authen", "_:header_");314 disp.setmacro ("header", "authenok", "_:header_");315 disp.setmacro ("footer", "authen", "_:footer_");316 disp.setmacro ("footer", "authenok", "_:footer_");317 }318 319 311 320 312 // get a list of saved configuration arguments (if possible) -
trunk/gsdl/src/recpt/buildaction.cpp
r1000 r1129 80 80 bool buildaction::check_cgiargs (cgiargsinfoclass &/*argsinfo*/, cgiargsclass &args, 81 81 ostream &/*logout*/) { 82 if ((args["bca"] != "buildstatus") && (args["bca"] != "collog")) 82 83 text_t &arg_bca = args["bca"]; 84 if (!((arg_bca == "buildstatus") || (arg_bca == "collog") || (arg_bca == "blankpage") 85 || ((arg_bca == "buildcol") && (args["wizard"] == "buildexec")))) 83 86 { 84 87 // authenticate the user if authentication is avaiable -
trunk/gsdl/src/recpt/statusaction.cpp
r995 r1129 28 28 /* 29 29 $Log$ 30 Revision 1.26 2000/04/19 22:30:23 sjboddie 31 tidied up status pages and end-user collection building 32 30 33 Revision 1.25 2000/02/29 21:00:31 sjboddie 31 34 fixed some compiler warnings … … 138 141 } 139 142 140 void statusaction::output_welcome (cgiargsclass &/*args*/, displayclass &disp, 141 outconvertclass &outconvert, 142 ostream &textout, ostream &/*logout*/) { 143 textout << outconvert << disp << "_status:infoheader_(_titlewelcome_)\n" 144 "_status:welcome_\n" 145 "_status:infofooter_\n"; 143 void statusaction::output_welcome (cgiargsclass &/*args*/, recptprotolistclass *protos, 144 displayclass &disp, outconvertclass &outconvert, 145 ostream &textout, ostream &logout) { 146 147 textout << outconvert << disp 148 << "_status:infoheader_(_titlewelcome_)\n" 149 << "_status:welcome_" 150 << "<center><table width=_pagewidth_>\n" 151 << "<th align=left>abbrev.</th><th align=left>collection</th>" 152 << "<th align=left>public?</th><th align=left>running?</th></tr>\n"; 153 154 recptprotolistclass::iterator rprotolist_here = protos->begin(); 155 recptprotolistclass::iterator rprotolist_end = protos->end(); 156 while (rprotolist_here != rprotolist_end) { 157 if ((*rprotolist_here).p != NULL) { 158 text_t protoname = (*rprotolist_here).p->get_protocol_name(); 159 text_tarray collist; 160 comerror_t err; 161 (*rprotolist_here).p->get_collection_list (collist, err, logout); 162 if (err == noError) { 163 text_tarray::iterator collist_here = collist.begin(); 164 text_tarray::iterator collist_end = collist.end(); 165 166 while (collist_here != collist_end) { 167 168 textout << outconvert << disp 169 << "<tr><td><a href=\"_gwcgi_?e=_compressedoptions_&a=status&sp=collectioninfo&pr=" 170 << protoname 171 << "&c=" 172 << *collist_here 173 << "\">" 174 << *collist_here 175 << "</a></td>"; 176 177 ColInfoResponse_t cinfo; 178 (*rprotolist_here).p->get_collectinfo (*collist_here, cinfo, err, logout); 179 if (err == noError) { 180 text_t collname = *collist_here; 181 text_tmap::iterator it = cinfo.collectionmeta.find("collectionname"); 182 if (it != cinfo.collectionmeta.end()) collname = (*it).second; 183 184 textout << "<td>"; 185 if (cinfo.buildDate > 0) 186 textout << outconvert << disp 187 << "<a href=\"_httppagex_(about)&c=" << *collist_here 188 << "\" target=_top>"; 189 190 textout << outconvert << disp << collname; 191 192 if (cinfo.buildDate > 0) textout << "</a>"; 193 194 textout << "</td>"; 195 196 if (cinfo.isPublic) textout << "<td>yes</td>"; 197 else textout << "<td>no</td>"; 198 199 if (cinfo.buildDate > 0) 200 textout << outconvert << "<td>yes</td>"; 201 else 202 textout << "<td>no</td>"; 203 204 } else { 205 textout << "<td></td><td></td><td></td>"; 206 } 207 208 textout << "</tr>\n"; 209 collist_here ++; 210 } 211 } 212 } 213 rprotolist_here ++; 214 } 215 216 textout << "</table></center>\n"; 217 textout << outconvert << disp << "_status:infofooter_\n"; 146 218 } 147 219 … … 856 928 } 857 929 858 bool statusaction::do_action (cgiargsclass &args, recptprotolistclass * /*protos*/,930 bool statusaction::do_action (cgiargsclass &args, recptprotolistclass *protos, 859 931 browsermapclass * /*browsers*/, displayclass &disp, 860 932 outconvertclass &outconvert, ostream &textout, … … 898 970 if (arg_sp == "frameset") output_frameset (args, disp, outconvert, textout, logout); 899 971 else if (arg_sp == "select") output_select (args, disp, outconvert, textout, logout); 900 else if (arg_sp == "welcome") output_welcome (args, disp, outconvert, textout, logout);972 else if (arg_sp == "welcome") output_welcome (args, protos, disp, outconvert, textout, logout); 901 973 else if (arg_sp == "generalinfo") output_generalinfo (args, disp, outconvert, textout, logout); 902 974 else if (arg_sp == "argumentinfo") output_argumentinfo (args, disp, outconvert, textout, logout); -
trunk/gsdl/src/recpt/statusaction.h
r760 r1129 44 44 outconvertclass &outconvert, 45 45 ostream &textout, ostream &logout); 46 46 47 void output_select (cgiargsclass &args, displayclass &disp, 47 48 outconvertclass &outconvert, 48 49 ostream &textout, ostream &logout); 49 50 50 void output_welcome (cgiargsclass &args, displayclass &disp, 51 outconvertclass &outconvert, 52 ostream &textout, ostream &logout); 51 void output_welcome (cgiargsclass &args, recptprotolistclass *protos, 52 displayclass &disp, outconvertclass &outconvert, 53 ostream &textout, ostream &logout); 54 53 55 void output_generalinfo (cgiargsclass &args, displayclass &disp, 54 56 outconvertclass &outconvert, 55 57 ostream &textout, ostream &logout); 58 56 59 void output_argumentinfo (cgiargsclass &args, displayclass &disp, 57 60 outconvertclass &outconvert, 58 61 ostream &textout, ostream &logout); 62 59 63 void output_actioninfo (cgiargsclass &args, displayclass &disp, 60 64 outconvertclass &outconvert, 61 65 ostream &textout, ostream &logout); 66 62 67 void output_protocolinfo (cgiargsclass &args, displayclass &disp, 63 68 outconvertclass &outconvert, 64 69 ostream &textout, ostream &logout); 70 65 71 void output_collectioninfo (cgiargsclass &args, displayclass &disp, 66 72 outconvertclass &outconvert, 67 73 ostream &textout, ostream &logout); 74 68 75 void output_initlog (cgiargsclass &args, displayclass &disp, 69 76 outconvertclass &outconvert, 70 77 ostream &textout, ostream &logout); 78 71 79 void output_errorlog (cgiargsclass &args, displayclass &disp, 72 80 outconvertclass &outconvert,
Note:
See TracChangeset
for help on using the changeset viewer.