Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2009, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.695 2010/03/30 12:28:54 grubba Exp $"; + constant cvs_version = "$Id$";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // Tell Pike.count_memory this is global.   constant pike_cycle_depth = 0;
Roxen.git/server/base_server/configuration.pike:509:    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 internal_location+(mod?replace(otomod[mod]||"", "#", "!")+"/":""); +  string ret = internal_location+(mod?replace(otomod[mod]||"", "#", "!")+"/":""); +  if (has_suffix(ret, "!0/")) { +  // Special case for module copy #0. +  ret = ret[..<sizeof("!0/")] + "/";    } -  +  return ret; + }      string query_name()   {    if(strlen(query("name")))    return query("name");    return name;   }      string comment()   {