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

version» Context lines:

Roxen.git/server/modules/filesystems/filesystem.pike:1:   // This is a roxen module. (c) Informationsv√§varna AB 1996.      // 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.    - string cvs_version= "$Id: filesystem.pike,v 1.18 1997/07/06 18:29:11 grubba Exp $"; + string cvs_version= "$Id: filesystem.pike,v 1.19 1997/08/12 06:32:17 per Exp $";      #include <module.h>   #include <roxen.h>   #include <stat.h>      #if DEBUG_LEVEL > 20   # ifndef FILESYSTEM_DEBUG   # define FILESYSTEM_DEBUG   # endif   #endif
Roxen.git/server/modules/filesystems/filesystem.pike:49:    defvar("searchpath", "NONE", "Search path", TYPE_DIR,    "This is where the module will find the files in the real "+    "file system");      #ifdef COMPAT    defvar("html", 0, "All files are really HTML files", TYPE_FLAG|VAR_EXPERT,    "If you set this variable, the filesystem will _know_ that all files "    "are really HTML files. This might be useful now and then.");   #endif    -  defvar(".files", 0, "Show hidden files", TYPE_FLAG, +  defvar(".files", 0, "Show hidden files", TYPE_FLAG|VAR_MORE,    "If set, hidden files will be shown in dirlistings and you "    "will be able to retrieve them.");    -  defvar("dir", 1, "Enable directory listings per default", TYPE_FLAG, +  defvar("dir", 1, "Enable directory listings per default", TYPE_FLAG|VAR_MORE,    "If set, you have to create a file named .www_not_browsable ("    "or .nodiraccess) in a directory to disable directory listings."    " If unset, a file named .www_browsable in a directory will "    "_enable_ directory listings.\n");    -  defvar("tilde", 0, "Show backupfiles", TYPE_FLAG, +  defvar("tilde", 0, "Show backupfiles", TYPE_FLAG|VAR_MORE,    "If set, files ending with '~' or '#' or '.bak' will "+    "be shown in directory listings");       defvar("put", 1, "Handle the PUT method", TYPE_FLAG,    "If set, PUT can be used to upload files to the server.");       defvar("delete", 0, "Handle the DELETE method", TYPE_FLAG,    "If set, DELETE can be used to delete files from the "    "server.");       defvar("check_auth", 1, "Require authentication for modification",    TYPE_FLAG,    "Only allow authenticated users to use methods other than "    "GET and POST. If unset, this filesystem will be a _very_ "    "public one (anyone can edit files located on it)");       defvar("stat_cache", 1, "Cache the results of stat(2)", -  TYPE_FLAG, +  TYPE_FLAG|VAR_MORE,    "This can speed up the retrieval of files up to 60/70% if you"    " use NFS, but it does use some memory.");       defvar("access_as_user", 0, "Access file as the logged in user", -  TYPE_FLAG, +  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, +  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.");   }         mixed *register_module()   {    return ({