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.880 2004/08/25 08:48:18 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.881 2004/08/31 09:14:04 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:382:   }      /* Used by read_config.pike, since there seems to be problems with    * overloading otherwise.    */   static Privs PRIVS(string r, int|string|void u, int|string|void g)   {    return Privs(r, u, g);   }    + // Current Configuration. + Thread.Local current_configuration = Thread.Local(); +    // font cache and loading.   //   // This will be changed to a list of server global modules, to make it   // easier to implement new types of fonts (such as PPM color fonts, as   // an example)   class Fonts   {    class Font    {    Image.Image write( string ... what );
Roxen.git/server/base_server/roxen.pike:3261:    int|void nodraw )    //! Returns a @[result mapping] like one generated by    //! @[Roxen.http_file_answer()] but for the image file    //! rendered from the `data' instructions.    //!    //! Like @[metadata], a non-zero @[nodraw]parameter means an    //! image not already in the cache will not be rendered on the fly,    //! but instead zero will be returned (this will be seen as a 'File    //! not found' error)    { +  current_configuration->set(id->conf);    string na = store( data,id );    mixed res;   #ifdef ARG_CACHE_DEBUG    werror("data %O\n", na );   #endif    if(! (res=restore( na,id )) )    {    mixed err;    if (nodraw || (err = catch {    if (mapping res = draw( na, id ))