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 - 2001, Roxen IS.   //   // A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.454 2001/07/21 11:19:57 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.455 2001/07/21 14:22:26 mast Exp $";   #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)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:3078:   // END SQL   #endif      static string my_url;      void fix_my_url()   {    my_url = query ("MyWorldLocation");    if (!sizeof (my_url) &&    !(my_url = Roxen.get_world (query ("URLs")))) -  my_url = "http://localhost/"; // Probably no port configured. +  // Probably no port configured. The empty string is used as a +  // flag; there shouldn't be any bad fallback here. +  my_url = ""; +  else    if (!has_suffix (my_url, "/")) my_url += "/";   }      string get_url() {return my_url;}      array after_init_hooks = ({});   mixed add_init_hook( mixed what )   {    if( inited )    call_out( what, 0, this_object() );