Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS. - constant cvs_version = "$Id: configuration.pike,v 1.407 2001/01/10 08:57:24 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.408 2001/01/13 17:43:28 nilsson Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>         #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:142:    return module->variables[variable]->name()+    "\n"+module->variables[ variable ]->doc();    }    if(variables[ variable ])    return variables[variable]->name()+    "\n"+variables[ variable ]->doc();   }      string query_internal_location(RoxenModule|void mod)   { -  return QUERY(InternalLoc)+(mod?replace(otomod[mod]||"", "#", "!")+"/":""); +  return query("InternalLoc")+(mod?replace(otomod[mod]||"", "#", "!")+"/":"");   }      string query_name()   { -  if(strlen(QUERY(name))) -  return QUERY(name); +  if(strlen(query("name"))) +  return query("name");    return name;   }      string comment()   { -  return QUERY(comment); +  return query("comment");   }      /* A 'pri' is one of the ten priority objects. Each one holds a list    * of modules for that priority. They are all merged into one list for    * performance reasons later on.    */      array (Priority) allocate_pris()   {    return allocate(10, Priority)();
Roxen.git/server/base_server/configuration.pike:1026:    return internal_roxen_image(loc, id);       case "gopher":    TRACE_LEAVE("Magic internal gopher image");    return internal_gopher_image(loc);    }    }   #endif       // Locate internal location resources. -  if(!search(file, QUERY(InternalLoc))) +  if(!search(file, query("InternalLoc")))    {    TRACE_ENTER("Magic internal module location", 0);    RoxenModule module;    string name, rest;    function find_internal; -  if(2==sscanf(file[strlen(QUERY(InternalLoc))..], "%s/%s", name, rest) && +  if(2==sscanf(file[strlen(query("InternalLoc"))..], "%s/%s", name, rest) &&    (module = find_module(replace(name, "!", "#"))) &&    (find_internal = module->find_internal))    {   #ifdef MODULE_LEVEL_SECURITY    if(tmp2 = check_security(find_internal, id, slevel))    if(intp(tmp2))    {    TRACE_LEAVE("Permission to access module denied.");    find_internal = 0;    } else {