Roxen.git / server / base_server / mainconfig.pike

version» Context lines:

Roxen.git/server/base_server/mainconfig.pike:118:    // depth-first save.    while(node)    {    if(node->changed) node->save();    node=node->next;    }    if(saver) saver(this_object());    }   };    - object root=new(Node); + object root=Node();   int expert_mode;         void create()   {    build_root(root);    init_ip_list();    call_out(init_ip_list, 0);   }   
Roxen.git/server/base_server/mainconfig.pike:531:    return m[a][0] > m[b][0];    }, a);       res = default_head("Add a module")+    "<hr noshade><form>"+ TABLEP("<table>","<dl>")+"\n\n";       for(i=0; i<sizeof(mods); i++)    if(!(b = module_nomore(mods[i], a[mods[i]][2], node->config())))    {    if(id->supports->tables) -  res += ("<tr><td><table><tr valign=top><td><input type=submit value=\"" + +  res += ("<tr><td><table><tr valign=top><td valign=top><input type=submit value=\"" +    a[mods[i]][0] + "\" name=\"" + mods[i] + "\"><br></td><td>" +    a[mods[i]][1]+"<p></td></tr>\n</table>"    "<hr noshade size=1></td></tr>\n\n");    else    res += ("<dt><input type=submit value=\"" +    a[mods[i]][0] + "\" name=\"" + mods[i] + "\"><dd>" +    a[mods[i]][1]+"<p><hr noshade size=1>\n\n");    }    else    {
Roxen.git/server/base_server/mainconfig.pike:897:       object o;    int i;       id->since = 0; // We do not want 'get-if-modified-since' to work here.          // Permisson denied by address?    if(id->remoteaddr)    if(strlen(roxen->QUERY(ConfigurationIPpattern)) && -  !do_match(id->remoteaddr, roxen->QUERY(ConfigurationIPpattern))) +  !glob(roxen->QUERY(ConfigurationIPpattern),id->remoteaddr))    return stores("Permission denied.\n");       // Permission denied by userid?    if(!id->misc->read_allow)    {    if(!(strlen(roxen->QUERY(ConfigurationPassword))    && strlen(roxen->QUERY(ConfigurationUser))))    return initial_configuration(id); // Never configured before    else if(!conf_auth_ok(id->auth))    return http_auth_failed("Roxen server maintenance"); // Denied    } else { -  id->prestate = aggregate_list(@indices(id->prestate)&({"fold","unfold"})); +  id->prestate = aggregate_multiset(@indices(id->prestate) +  &({"fold","unfold"}));       if(sizeof(id->variables)) // This is not 100% neccesary, really.    id->variables = ([ ]);    }       o = find_node(id->not_query); // Find the requested node (from the filename)       if(!o) // Bad node, perhaps an old bookmark or something.    {    id->referer = ({ });