Changeset 1148
- Timestamp:
- 2000-05-04T17:18:46+12:00 (24 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/buildaction.cpp
r1129 r1148 434 434 435 435 text_tarray wizard_split; 436 const text_t & wizard = (args["wizard"]=="") ? (text_t)"buildcol" : args["wizard"];436 const text_t wizard = (args["wizard"].empty()) ? "buildcol" : args["wizard"]; 437 437 splitchar(wizard.begin(),wizard.end(),':',wizard_split); 438 const text_t &wizard_last = wizard_split.back();438 const text_t wizard_last = wizard_split.back(); 439 439 440 440 if (wizard_last != "buildframe") … … 449 449 text_t dirname = (args["bc1dirname"] == "") ? (text_t)"unknown" : args["bc1dirname"]; 450 450 text_t tmpname = dirname+"_XXXXXX"; 451 if (mktemp(tmpname.getcstr())==NULL) 452 { 453 logout << "Failed to create temporary filename" << endl; 454 } 451 char *cstr_tmpname = tmpname.getcstr(); 452 if (mktemp(cstr_tmpname)==NULL) 453 logout << "Failed to create temporary filename" << endl; 454 455 delete cstr_tmpname; 456 455 457 disp.setmacro("bcargtmpname","build",tmpname); 456 458 … … 461 463 textout << outconvert << disp << headmess << content << "_build:framefooter_\n"; 462 464 text_t cmd = filename_cat(gsdlhome, "cgi-bin", "webpage_buildcol.pl"); 463 cmd += " gsdlhome=\""+ args["gsdlhome"]+"\" httpbuild=\""+args["httpbuild"]+"\"";465 cmd += " gsdlhome=\""+gsdlhome+"\" httpbuild=\""+args["httpbuild"]+"\""; 464 466 cmd += " bc1copydata=\""+args["bc1copydata"]+"\""; 465 467 cmd += " bc1doimport=\""+args["bc1doimport"]+"\""; -
trunk/gsdl/src/recpt/documentaction.cpp
r1079 r1148 28 28 /* 29 29 $Log$ 30 Revision 1.38 2000/05/04 05:18:46 sjboddie 31 attempting to get end-user collection building to work under windows 32 30 33 Revision 1.37 2000/04/07 04:40:44 sjboddie 31 34 Reverted back to old DocumentHeader, DocumentTitles, DocumentImages etc. … … 177 180 #include "querytools.h" 178 181 #include "unitool.h" 179 #include " htmlutils.h"182 #include "gsdltools.h" 180 183 181 184 documentaction::documentaction () { -
trunk/gsdl/src/recpt/receptionist.cpp
r1089 r1148 28 28 /* 29 29 $Log$ 30 Revision 1.49 2000/05/04 05:18:46 sjboddie 31 attempting to get end-user collection building to work under windows 32 30 33 Revision 1.48 2000/04/14 02:52:06 sjboddie 31 34 tidied up error messaging and set up some debugging info to be output … … 231 234 #include "cgiutils.h" 232 235 #include "htmlutils.h" 236 #include "gsdltools.h" 233 237 #include "OIDtools.h" 234 238 #include <assert.h> … … 1230 1234 text_t &collection = args["c"]; 1231 1235 1232 disp.setmacro ("gsdlhome", "Global", configinfo.gsdlhome);1236 disp.setmacro ("gsdlhome", "Global", dm_safe(configinfo.gsdlhome)); 1233 1237 disp.setmacro ("gwcgi", "Global", configinfo.gwcgi); 1234 1238 disp.setmacro ("httpimg", "Global", configinfo.httpimg);
Note:
See TracChangeset
for help on using the changeset viewer.