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 - 2001, 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.817 2003/01/13 15:07:37 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.818 2003/01/15 16:38:16 grubba 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:1593: Inside #if constant(SSL.sslfile)
   port = pn;    ip = i;       restore();       object privs = Privs("Reading cert file");    int key_matches;    string f, f2;    ctx->certificates = ({});    -  foreach( map(query_option("ssl_cert_file")/",", String.trim_whites), +  foreach( map(query_option("ssl_cert_file"), String.trim_whites),    string cert_file )    {    if( catch{ f = lopen(cert_file, "r")->read(); } )    {    report_error(LOC_M(8,"SSL3: Reading cert-file '%s' failed!")+"\n",    cert_file);    return;    }       if( strlen(query_option("ssl_key_file")) &&
Roxen.git/server/base_server/roxen.pike:2270: Inside #if undefined(__NT__)
   report_debug("**** %s: ABS exiting roxen!\n\n",    ctime(time()));    _exit(1); // It might now quit correctly otherwise, if it's    // locked up    });    int t = alarm (60*query("abs_timeout")+20);    // werror("alarm: %d seconds left, set to %d\n", t, 60*query("abs_timeout")+20);   }   #endif    + function(string:Sql.Sql) dbm_cached_get;      class ImageCache   //! The image cache handles the behind-the-scenes caching and   //! regeneration features of graphics generated on the fly. Besides   //! being a cache, however, it serves a wide variety of other   //! interesting image conversion/manipulation functions as well.   {   #define QUERY(X,Y...) get_db()->query(X,Y)    string name;    string dir;
Roxen.git/server/base_server/roxen.pike:3657:       define_global_variables();       // for module encoding stuff       add_constant( "CFUserDBModule",config_userdb_module );       //add_constant( "ArgCache", ArgCache );    //add_constant( "roxen.load_image", load_image );    +  if (all_constants()["roxen"]) { +  error("Duplicate Roxen object!\n"); +  } +     // simplify dumped strings.    add_constant( "roxen", this_object());    //add_constant( "roxen.decode_charset", decode_charset);      // add_constant( "DBManager", ((object)"base_server/dbs.pike") );       // This is currently needed to resolve the circular references in    // RXML.pmod correctly. :P    master()->resolv ("RXML.refs");    master()->resolv ("RXML.PXml");
Roxen.git/server/base_server/roxen.pike:4289: Inside #if defined(TIMERS)
   for( int i = 0; i<sizeof(b); i++ )    report_notice( " %-30s : %10.1fms\n", b[i], a[i]/1000.0 );    report_notice("\n\n");   }   #endif         array argv;   int main(int argc, array tmp)   { +  // __builtin.gc_parameters((["enabled": 0]));    argv = tmp;    tmp = 0;       // For RBF    catch(mkdir( "../var" ));       dbm_cached_get = master()->resolv( "DBManager.cached_get" );       dbm_cached_get( "local" )->    query( "CREATE TABLE IF NOT EXISTS "
Roxen.git/server/base_server/roxen.pike:4584:   int is_ip(string s)   {    return s&&(sscanf(s,"%*d.%*d.%*d.%*d")==4 && s[-1]>47 && s[-1]<58);   }      static string _sprintf( )   {    return "roxen";   }    - function(string:Sql.Sql) dbm_cached_get; -  +    // Support for logging in configurations and modules.      class LogFormat   {    static string host_ip_to_int(string s)    {    int a, b, c, d;    sscanf(s, "%d.%d.%d.%d", a, b, c, d);    return sprintf("%c%c%c%c",a, b, c, d);    }