- Timestamp:
- 2011-08-26T18:49:30+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/w32server/settings.cpp
r22770 r24498 69 69 int gsdl_start_browser = 1; 70 70 int gsdl_address_resolution_method = 2; // use localhost since users may switch between computers 71 // The resolution method was previously on 1: Get an IP, but don't resolve to a name 71 72 text_t gsdl_host_IP; 72 // The resolution method was previously on 1: Get an IP, but don't resolve to a name 73 text_t gsdl_mode_property_prefix; 73 74 74 75 // private data … … 313 314 write_ini_line(fout, "portnumber", text_t(gsdl_port_num)); 314 315 write_ini_line(fout, "externalaccess", text_t(gsdl_external_access)); 315 write_ini_line(fout, "autoenter", text_t(gsdl_auto_enter));316 write_ini_line(fout, gsdl_mode_property_prefix+"autoenter", text_t(gsdl_auto_enter)); 316 317 write_ini_line(fout, "browser", text_t(gsdl_browser)); 317 318 write_ini_line(fout, "browserexe", gsdl_browser_exe); 318 319 write_ini_line(fout, "collections", gsdl_collections); 319 write_ini_line(fout, "start_browser", text_t(gsdl_start_browser));320 write_ini_line(fout, gsdl_mode_property_prefix+"start_browser", text_t(gsdl_start_browser)); 320 321 write_ini_line(fout, "address_resolution_method", text_t(gsdl_address_resolution_method)); 321 322 write_ini_line(fout, "hostIP", gsdl_host_IP); … … 407 408 gsdl_port_num = 80; 408 409 gsdl_external_access = 0; 409 gsdl_auto_enter = 0; 410 gsdl_start_browser = 1; 410 if(gsdl_mode_property_prefix == "") { 411 gsdl_auto_enter = 0; 412 gsdl_start_browser = 1; 413 } else { 414 gsdl_auto_enter = 1; 415 gsdl_start_browser = 0; 416 } 411 417 412 418 check_installed_browsers (netscapeneeded); … … 473 479 gsdl_external_access = value.getint(); 474 480 475 } else if (key == "autoenter") {481 } else if (key == gsdl_mode_property_prefix+"autoenter") { 476 482 gsdl_auto_enter = value.getint(); 477 483 478 } else if (key == "start_browser") {484 } else if (key == gsdl_mode_property_prefix+"start_browser") { 479 485 gsdl_start_browser = value.getint(); 480 486
Note:
See TracChangeset
for help on using the changeset viewer.