Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1: - string cvs_version = "$Id: configuration.pike,v 1.182 1999/06/28 01:42:48 mast Exp $"; + string cvs_version = "$Id: configuration.pike,v 1.183 2001/04/07 11:45:26 per Exp $";   #include <module.h>   #include <roxen.h>         #ifdef PROFILE   mapping profile_map = ([]);   #endif      #define CATCH(X) do { mixed err; if(err = catch{X;}) report_error(describe_backtrace(err)); } while(0)   
Roxen.git/server/base_server/configuration.pike:1778:      }         // this is not as trivial as it sounds. Consider gtext. :-)   public array open_file(string fname, string mode, object id)   {    object oc = id->conf;    string oq = id->not_query;    function funp; -  mapping file; +  mixed file;       id->not_query = fname;    foreach(oc->first_modules(), funp)    if(file = funp( id ))    break;    else if(id->conf != oc)    {    id->not_query = fname;    return open_file(fname, mode,id);    }
Roxen.git/server/base_server/configuration.pike:1982:    string loc;    array s, tmp;       file=replace(file, "//", "/"); // "//" is really "/" here...       // Map location-modules.    foreach(location_modules(id), tmp)    {    loc = tmp[0];    if((file+"/")==loc) -  return file+="/"; +  return access( file+"/", id );    if(!search(file, loc))    {   #ifdef MODULE_LEVEL_SECURITY    if(check_security(tmp[1], id)) continue;   #endif    if(s=function_object(tmp[1])->access(file[strlen(loc)..], id))    return s;    }    }   }