Roxen.git / server / modules / filesystems / filesystem.pike

version» Context lines:

Roxen.git/server/modules/filesystems/filesystem.pike:1:   // This is a roxen module. Copyright © 1996 - 2004, Roxen IS.      // This is a virtual "file-system".   // It will be located somewhere in the name-space of the server.   // Also inherited by some of the other filesystems.      inherit "module";   inherit "socket";    - constant cvs_version= "$Id: filesystem.pike,v 1.153 2006/12/14 13:04:59 grubba Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.154 2006/12/14 13:29:45 grubba Exp $";   constant thread_safe=1;      #include <module.h>   #include <roxen.h>   #include <stat.h>   #include <request_trace.h>         //<locale-token project="mod_filesystem">LOCALE</locale-token>   #define LOCALE(X,Y) _DEF_LOCALE("mod_filesystem",X,Y)
Roxen.git/server/modules/filesystems/filesystem.pike:902:    id->realfile = norm_f;    TRACE_LEAVE("");    accesses++;    if( charset != "iso-8859-1" )    {    if( id->set_output_charset )    id->set_output_charset( charset, 2 );    id->misc->input_charset = charset;    }    if (query("no-parse")) { -  TRACE_ENTER("Content-type mapping module", types_module); +  TRACE_ENTER("Content-type mapping module", conf->types_module);    array(string) tmp = conf->type_from_filename(norm_f, 1);    TRACE_LEAVE(tmp?sprintf("Returned type %s %s.", tmp[0], tmp[1]||"")    : "Missing type.");    TRACE_LEAVE("No parse return");    return Roxen.http_file_answer(o, tmp[0]) + ([ "encoding":tmp[1] ]);    }    TRACE_LEAVE("Normal return");    return o;    }    break;