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 - 2000, 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 "roxenlib";   inherit "socket";    - constant cvs_version= "$Id: filesystem.pike,v 1.73 2000/03/16 18:44:38 nilsson Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.74 2000/03/21 17:12:26 mast 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:126:    defvar("access_as_user", 0, "Access file as the logged in user",    TYPE_FLAG|VAR_MORE,    "Access file as the logged in user. This is useful for eg "    "named-ftp.<br>\n"    "WARNING: This can have severe impact on performance when using "    "threads, since all threads need to be locked every time such "    "an access is done.");       defvar("no_symlinks", 0, "Forbid access to symlinks", TYPE_FLAG|VAR_MORE,    "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."); +  "Note: This can cause <em>a lot</em> 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.");       defvar("internal_files", ({}), "Internal files", TYPE_STRING_LIST,    "A list of glob patterns that matches files which should be "    "considered internal. Internal files can't be requested directly "    "from a client, won't show up in directory listings and can "    "never be uploaded, moved or deleted from a client. They can "    "only be accessed internally, e.g. with the RXML "    "<tt>&lt;insert&gt;</tt> and <tt>&lt;use&gt;</tt> tags.");   }    -  +    string path;   int stat_cache;      void start()   {    path = QUERY(searchpath);    stat_cache = QUERY(stat_cache);    FILESYSTEM_WERR("Online at "+QUERY(mountpoint)+" (path="+path+")");    cache_expire("stat_cache");   }