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.95 1998/02/17 04:58:58 mast Exp $"; + string cvs_version = "$Id: mainconfig.pike,v 1.96 1998/02/20 11:16:34 per 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:368:   {    switch(type)    {    case TYPE_CUSTOM:    return node->data[ VAR_MISC ][2]( var, type, node, allvars );       case TYPE_MODULE_LIST:    return Array.map(var/"\000", find_module);       case TYPE_MODULE: -  return find_module(var, node->config()); +  return find_module((var/"\000")[0], node->config());       case TYPE_PORTS:    /*    Encoded like this:       new_port --> Add a new port    ok[_<ID>] --> Save the value for all or one port    delete_<ID> --> Delete a port       ---- { A port is defined by:
Roxen.git/server/base_server/mainconfig.pike:451:    if(var[-1] != '/')    return var + "/";    return var;       case TYPE_TEXT_FIELD:    var -= "\r";    case TYPE_FONT:    case TYPE_STRING:    case TYPE_FILE:    case TYPE_LOCATION: -  return var; +  return (var/"\000")[0];       case TYPE_PASSWORD: -  return crypt(var); +  return crypt((var/"\000")[0]);       case TYPE_FLAG: -  return lower_case(var) == "yes"; +  return lower_case((var/"\000")[0]) == "yes";       case TYPE_INT:    int tmp;       if (!sscanf( var, "%d", tmp ))    {    node->error= var + " is not an integer";    return 0;    }    return tmp;