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 - 1999, Idonex AB.      // 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 "roxenlib";   inherit "socket";    - constant cvs_version= "$Id: filesystem.pike,v 1.63 2000/01/31 03:48:21 per Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.64 2000/02/14 09:25:26 per Exp $";   constant thread_safe=1;      #include <module.h>   #include <roxen.h>   #include <stat.h>   #include <request_trace.h>      #if DEBUG_LEVEL > 20   # ifndef FILESYSTEM_DEBUG   # define FILESYSTEM_DEBUG
Roxen.git/server/modules/filesystems/filesystem.pike:125:    defvar("access_as_user", 0, "Access file as the logged in user",    TYPE_FLAG|VAR_MORE,    "EXPERIMENTAL. Access file as the logged in user.<br>\n"    "This is useful for eg named-ftp.");       defvar("no_symlinks", 0, "Forbid access to symlinks", TYPE_FLAG|VAR_MORE,    "EXPERIMENTAL.\n"    "Forbid access to paths containing symbolic links.<br>\n"    "NOTE: This can cause *alot* of lstat system-calls to be performed "    "and can make the server much slower."); +  +  defvar("charset", "iso-8859-1", "File charset", TYPE_STRING, +  "The charset the files on disk have.");   }         string path;   int stat_cache;      void start()   {   #ifdef THREADS    if(QUERY(access_as_user))
Roxen.git/server/modules/filesystems/filesystem.pike:469:    TRACE_LEAVE("");    TRACE_LEAVE("Permission denied.");    return http_low_answer(403, "<h2>File exists, but access forbidden "    "by user</h2>");    }       id->realfile = f;    TRACE_LEAVE("");    accesses++;    TRACE_LEAVE("Normal return"); +  id->misc->input_charset = query("charset");    return o;    }    break;       case "MKDIR":    if(!QUERY(put))    {    id->misc->error_code = 405;    TRACE_LEAVE("MKDIR disallowed (since PUT is disallowed)");    return 0;