Changeset 963 for trunk/gsdl/src/recpt/buildaction.cpp
- Timestamp:
- 2000-02-22T11:01:02+13:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/buildaction.cpp
r822 r963 30 30 #include "htmlutils.h" 31 31 #include "buildaction.h" 32 #include "gsdlhome.h"33 32 34 33 /////////////// … … 103 102 logout << "The page action does not contain information\n" 104 103 << "about any receptionists. The method set_receptionist\n" 105 << 106 << 104 << "was probably not called from the module which instantiated\n" 105 << "this page action.\n"; 107 106 return; 108 107 } … … 111 110 if (rprotolist == NULL) return; 112 111 113 const recptconf &rcinfo = recpt->get_configinfo ();114 115 112 // build up javascript and HTML code useful in web forms 116 113 text_t first_dirname = ""; … … 193 190 // check to see if the "collection" is writable 194 191 text_t cfg_fname 195 = filename_cat( GSDL_GSDLHOME,"collect",*collist_here,"etc","collect.cfg");192 = filename_cat(gsdlhome, "collect", *collist_here, "etc", "collect.cfg"); 196 193 if (!file_writable(cfg_fname)) 197 194 { … … 276 273 // set macro cfgperm based on whether config file can be read or no 277 274 text_t dirname = (args["bc1dirname"] == "") ? first_dirname : args["bc1dirname"]; 278 text_t cfg_fname = filename_cat( rcinfo.gsdlhome,"collect",dirname,"etc","collect.cfg");275 text_t cfg_fname = filename_cat(gsdlhome, "collect", dirname, "etc", "collect.cfg"); 279 276 text_t cfgperm = (file_writable(cfg_fname)) ? "read/write" : "readonly"; 280 277 disp.setmacro("cfgperm","build",cfgperm); … … 288 285 // read in collect.cfg 289 286 text_t cfg_fname 290 = filename_cat( GSDL_GSDLHOME,"collect",dirname,"etc","collect.cfg");287 = filename_cat(gsdlhome, "collect", dirname, "etc", "collect.cfg"); 291 288 ifstream cfg_ifs (cfg_fname.getcstr(), ios::in | ios::nocreate); 292 289 if (cfg_ifs) … … 323 320 324 321 // read in collect.bld 325 text_t bld_fname = filename_cat( rcinfo.gsdlhome,"log",dirname+".bld");322 text_t bld_fname = filename_cat(gsdlhome, "log", dirname+ ".bld"); 326 323 ifstream bld_ifs (bld_fname.getcstr(), ios::in | ios::nocreate); 327 324 if (bld_ifs) … … 356 353 ostream &logout) { 357 354 355 // make sure we know about a receptionist 356 if (recpt == NULL) { 357 logout << "The page action does not contain information\n" 358 << "about any receptionists. The method set_receptionist\n" 359 << "was probably not called from the module which instantiated\n" 360 << "this page action.\n"; 361 return false; 362 } 358 363 359 364 if (args["bca"] == "newcol") { … … 419 424 outconvertclass &outconvert, ostream &textout, 420 425 ostream &logout) { 426 427 421 428 422 429 … … 448 455 449 456 textout << outconvert << disp << headmess << content << "_build:framefooter_\n"; 450 451 text_t cmd = filename_cat(GSDL_GSDLHOME,"cgi-bin","webpage_buildcol.pl"); 457 text_t cmd = filename_cat(gsdlhome, "cgi-bin", "webpage_buildcol.pl"); 452 458 cmd += " gsdlhome=\""+args["gsdlhome"]+"\" httpbuild=\""+args["httpbuild"]+"\""; 453 459 cmd += " bc1copydata=\""+args["bc1copydata"]+"\"";
Note:
See TracChangeset
for help on using the changeset viewer.