Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.979 2008/08/05 22:15:44 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.980 2008/08/08 15:04:22 mast Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:5726:    object con = dbm_cached_get("local");       {    array tmp =    con->query("SELECT full,enc FROM compiled_formats WHERE md5=%s", kmd5 );       if( sizeof(tmp) && (tmp[0]->full == fmt) )    {    LogFormat lf;    if (mixed err = catch { -  lf = decode_value( tmp[0]->enc, master()->MyCodec() )(); +  lf = decode_value( tmp[0]->enc, master()->Decoder() )();    }) {   // #ifdef DEBUG    report_error("Decoding of dumped log format failed:\n%s",    describe_backtrace(err));   // #endif    }       if (lf && lf->log_access) {    // Check that it's a new style log program (old ones have log()    // instead of log_access()).
Roxen.git/server/base_server/roxen.pike:5884:   ";       string src = #"    inherit ___LogFormat;" + a_func + e_func;    program res;    if (mixed err = catch (res = compile_string (src))) {    werror ("Failed to compile program: %s\n", src);    throw (err);    }    mixed err = catch { -  string enc = encode_value(res, master()->MyCodec(res)); +  string enc = encode_value(res, master()->Encoder (res));       con->query("REPLACE INTO compiled_formats (md5,full,enc) VALUES (%s,%s,%s)",    kmd5, fmt, enc);    };    if (err) {    master()->handle_error(err);    }       LogFormat lf = res();    compiled_log_access[fmt] = lf->log_access;
Roxen.git/server/base_server/roxen.pike:6121:       string kmd5 = md5( pattern );       array tmp =    dbm_cached_get( "local" )    ->query("SELECT full,enc FROM compiled_formats WHERE md5=%s", kmd5 );       if( sizeof(tmp) && (tmp[0]->full == pattern) )    {    mixed err = catch { -  return decode_value( tmp[0]->enc, master()->MyCodec() )()->f; +  return decode_value( tmp[0]->enc, master()->Decoder() )()->f;    };   // #ifdef DEBUG    report_error("Decoding of dumped log format failed:\n%s",    describe_backtrace(err));   // #endif    }             string code = "";
Roxen.git/server/base_server/roxen.pike:6434: Inside #if defined(SECURITY_PATTERN_DEBUG) || defined(HTACCESS_DEBUG)
   "%{ %s\n%}\n"    "Code:\n"    "%{ %s\n%}\n",    pattern/"\n",    code/"\n"));   #endif /* SECURITY_PATTERN_DEBUG || HTACCESS_DEBUG */    mixed res = compile_string( code );       dbm_cached_get( "local" )    ->query("REPLACE INTO compiled_formats (md5,full,enc) VALUES (%s,%s,%s)", -  kmd5,pattern,encode_value( res, master()->MyCodec( res ) ) ); +  kmd5,pattern,encode_value( res, master()->Encoder (res) ) );    return compile_string(code)()->f;   }         static string cached_hostname = gethostname();      class LogFile(string fname, string|void compressor_program)   {    Stdio.File fd;    int opened;