Branch: Tag:

1998-04-09

1998-04-09 15:07:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>

The server URL wizard now works for virtual servers too.

Rev: server/base_server/mainconfig.pike:1.101

1:   inherit "config/builders"; - string cvs_version = "$Id: mainconfig.pike,v 1.100 1998/04/07 01:10:33 peter Exp $"; + string cvs_version = "$Id: mainconfig.pike,v 1.101 1998/04/09 15:07:32 grubba Exp $";   //inherit "roxenlib";      inherit "config/draw_things";
280:    case "ssl":    prt = "https://";    break; +  case "ftp": +  prt = "ftp://"; +  break;       default:    prt = port[1]+"://";
1019:    "Globals":"/Globals",    "Errors":"/Errors",    "Actions":"/Actions", +  "Docs":"/Docs"   ]);      array tabs = ({
1026:    "Globals",    "Errors",    "Actions", +  "Docs",   });      array tab_names = ({
1033:    "Global Variables",    "Event Log",    "Actions", +  "Manual",   });      
1626:    id->variables[var] : id->variables[srv];    if(srv == "Global Variables")    thenode = find_node("/Globals/Configuration interface/URL"); -  else +  else {    thenode = find_node("/Configurations/"+srv+ -  "/Global/Server URL"); +  "/Global/MyWorldLocation"); +  }    if(thenode) {    thenode->data[VAR_VALUE] = url;    thenode->change(1);    thenode->up->save(); -  +  } else { +  report_debug(sprintf("Attempt to set the Server URL for " +  "a non-existent server \"%s\".\n", srv));    } -  +     }    }    id->referer = ({ CONFIG_URL + o->path(1) });