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.440 2001/06/22 02:59:33 nilsson Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.441 2001/06/24 03:51:31 per 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:1242:    int slevel;   #endif      #ifdef THREADS    Thread.MutexKey key;   #endif      #if defined(__NT__) || defined(STRIP_BSLASH)    if( strlen(id->not_query ) )    { -  werror("a: "+id->not_query+"\n"); +     int ss = (<'/','\\'>)[ id->not_query[0] ];    id->not_query = combine_path("/",replace(id->not_query,"\\","/"));    if( !ss ) id->not_query = id->not_query[1..]; -  werror("b: "+id->not_query+"\n"); +     }   #endif       TRACE_ENTER(sprintf("Request for %s", id->not_query), 0);       string file=id->not_query;    string loc;    function funp;    mixed tmp, tmp2;    mapping|object(Stdio.File)|int fid;
Roxen.git/server/base_server/configuration.pike:3020: Inside #if defined(MODULE_DEBUG)
   if( wr && enable_module_batch_msgs )    report_debug("] \b");   #endif   }      #if ROXEN_COMPAT < 2.2   // BEGIN SQL      mapping(string:string) sql_urls = ([]);    - mapping sql_cache = ([]); + constant sql_cache_get = DBManager.sql_cache_get;    - Sql.Sql sql_cache_get(string what) - { - #ifdef THREADS -  if(sql_cache[what] && sql_cache[what][this_thread()]) -  return sql_cache[what][this_thread()]; -  if(!sql_cache[what]) -  sql_cache[what] = ([ this_thread():Sql.Sql( what ) ]); -  else -  sql_cache[what][ this_thread() ] = Sql.Sql( what ); -  return sql_cache[what][ this_thread() ]; - #else /* !THREADS */ -  if(!sql_cache[what]) -  sql_cache[what] = Sql.Sql( what ); -  return sql_cache[what]; - #endif - } -  +    Sql.Sql sql_connect(string db)   {    if (sql_urls[db])    return sql_cache_get(sql_urls[db]);    else    return sql_cache_get(db);   }      // END SQL   #endif