Roxen.git / server / base_server / mainconfig.pike

version» Context lines:

Roxen.git/server/base_server/mainconfig.pike: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";      // import Array;   // import Stdio;      string status_row(object node);   string display_tabular_header(object node);   object get_template(string t);
Roxen.git/server/base_server/mainconfig.pike:273:    foreach((glob ? GLOBVAR(ConfigPorts) : server->query("Ports")),    array port) {    string prt;    if(port[1] == "tetris")    continue;    switch(port[1][0..2])    {    case "ssl":    prt = "https://";    break; +  case "ftp": +  prt = "ftp://"; +  break;       default:    prt = port[1]+"://";    }    if(port[2] && port[2]!="ANY")    prt += port[2];   #if efun(gethostname)    else    prt += (gethostname()/".")[0] + "." +    (glob ? roxen->get_domain() : server->query("Domain"));
Roxen.git/server/base_server/mainconfig.pike:1012:   //PUSH("<br>");    return res*"";   }      mapping (string:string) selected_nodes =   ([    "Configurations":"/Configurations",    "Globals":"/Globals",    "Errors":"/Errors",    "Actions":"/Actions", +  "Docs":"/Docs"   ]);      array tabs = ({    "Configurations",    "Globals",    "Errors",    "Actions", -  +  "Docs",   });      array tab_names = ({    "Virtual Servers",    "Global Variables",    "Event Log",    "Actions", -  +  "Manual",   });         string display_tabular_header(object node)   {    string p, s;       array links = Array.map(tabs, lambda(string q) {    return selected_nodes[q]+"?"+(bar++);    });
Roxen.git/server/base_server/mainconfig.pike:1619:       string srv, url;    object thenode;    foreach(indices(id->variables), string var)    {    if(sscanf(var, "%s->own", srv)) {    url = id->variables[srv] == "own" ?    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) });    break;    // Save changes done to the node 'o'. Currently 'o' is the root    // node most of the time, thus saving _everything_.    case "save":    mapping cf;    if(cf = save_it(id, o))    return cf;