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

version» Context lines:

Roxen.git/server/modules/filesystems/sqlfs.pike:1:   // This is a roxen module. Copyright © 1996 - 2009, Roxen IS.      inherit "module";    - constant cvs_version= "$Id: sqlfs.pike,v 1.10 2009/05/07 14:15:54 mast Exp $"; + constant cvs_version= "$Id$";      #include <module.h>   #include <roxen.h>   #include <stat.h>      constant thread_safe=1;      //<locale-token project="mod_sqlfs">_</locale-token>   #define _(X,Y) _DEF_LOCALE("mod_sqlfs",X,Y)   // end of the locale related stuff
Roxen.git/server/modules/filesystems/sqlfs.pike:31:    _(16,"Where the module will be mounted in the site's virtual "    "file system."));       defvar("db", Variable.DatabaseChoice( "docs", 0,    _(59,"Filesystem database"),    _(60,"The database to use")) )    ->set_configuration_pointer( my_configuration );       defvar("table", Variable.TableChoice( "docs", 0,    _(61,"Filesystem table"), -  _(62,"The table that cotains the files." +  _(62,"The table that contains the files."    " The table should contain at least the "    "columns 'name' and 'contents'. Optionally "    "you can also have the fields 'mtime', "    "'uid' and 'gid'."),    getvar("db") ) );       defvar("charset", "iso-8859-1", _(39,"File contents charset"),    TYPE_STRING,    _(40,"The charset of the contents of the files on this file "    "system. This variable makes it possible for Roxen to use "
Roxen.git/server/modules/filesystems/sqlfs.pike:86:         private mapping last_file;   #ifdef THREADS   private Thread.Mutex lfm = Thread.Mutex();   #endif      protected string decode_path( string p )   {    if( path_encoding != "iso-8859-1" ) -  p = Locale.Charset.encoder( path_encoding )->feed( p )->drain(); +  p = Charset.encoder( path_encoding )->feed( p )->drain();       if( String.width( p ) != 8 )    p = string_to_utf8( p );       return p;   }      protected array low_stat_file( string f, RequestID id )   {    if (disabled)