Branch: Tag:

2000-01-31

2000-01-31 03:48:21 by Per Hedbor <ph@opera.com>

Made some variables VAR_INITIAL (to test the code..)

Rev: server/modules/directories/directories.pike:1.46
Rev: server/modules/filesystems/filesystem.pike:1.63
Rev: server/modules/filesystems/userfs.pike:1.48
Rev: server/modules/graphics/wiretap.pike:1.5
Rev: server/modules/misc/sqldb.pike:1.2
Rev: server/modules/misc/userdb.pike:1.36

8:   inherit "roxenlib";   inherit "socket";    - constant cvs_version= "$Id: filesystem.pike,v 1.62 2000/01/06 22:34:11 mast Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.63 2000/01/31 03:48:21 per Exp $";   constant thread_safe=1;      #include <module.h>
77:      void create()   { -  defvar("mountpoint", "/", "Mount point", TYPE_LOCATION, +  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, +  defvar("searchpath", "NONE", "Search path", TYPE_DIR|VAR_INITIAL,    "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|VAR_MORE,    "If set, hidden files will be shown in dirlistings and you "    "will be able to retrieve them.");
105:    "If set, files ending with '~' or '#' or '.bak' will "+    "be shown in directory listings");    -  defvar("put", 0, "Handle the PUT method", TYPE_FLAG, +  defvar("put", 0, "Handle the PUT method", TYPE_FLAG|VAR_INITIAL,    "If set, PUT can be used to upload files to the server.");    -  defvar("delete", 0, "Handle the DELETE method", TYPE_FLAG, +  defvar("delete", 0, "Handle the DELETE method", TYPE_FLAG|VAR_INITIAL,    "If set, DELETE can be used to delete files from the "    "server.");   
481:    id->realfile = f;    TRACE_LEAVE("");    accesses++; - #ifdef COMPAT -  if(QUERY(html)) {/* Not very likely, really.. */ -  TRACE_LEAVE("Compat return"); -  return ([ "type":"text/html", "file":o, ]); -  } - #endif +     TRACE_LEAVE("Normal return");    return o;    }