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.76 2000/03/26 03:43:24 mast Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.77 2000/03/26 03:58:22 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:30: Inside #if defined(QUOTA_DEBUG)
     #ifdef QUOTA_DEBUG   # define QUOTA_WERR(X) werror("QUOTA: "+X+"\n")   #else   # define QUOTA_WERR(X)   #endif      constant module_type = MODULE_LOCATION;   constant module_name = "Filesystem";   constant module_doc = - ("This is a virtual filesystem, use it to make files available to "+ + ("This is a virtual filesystem. Use it to make files available to "    "the users of your WWW-server. If you want to serve any 'normal' " -  "files from your server, you will have to have atleast one filesystem.") ; +  "files from your server, you will have to have at least one filesystem.") ;   constant module_unique = 0;      int redirects, accesses, errors, dirlists;   int puts, deletes, mkdirs, moves, chmods;      static mapping http_low_answer(int errno, string data, string|void desc)   {    mapping res = ::http_low_answer(errno, data);       if (desc) {
Roxen.git/server/modules/filesystems/filesystem.pike:76:   }      void create()   {    defvar("mountpoint", "/", "Mount point", TYPE_LOCATION|VAR_INITIAL,    "This is where the module will be inserted in the "+    "namespace of your server.");       defvar("searchpath", "NONE", "Search path", TYPE_DIR|VAR_INITIAL,    "This is where the module will find the files in the real "+ -  "file system"); +  "file system.");       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|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");