Roxen.git / server / modules / tags / writefile.pike

version» Context lines:

Roxen.git/server/modules/tags/writefile.pike:3:   // <srb@cuci.nl>   //   // This module is open source software; you can redistribute it and/or   // modify it under the terms of the GNU General Public License as published   // by the Free Software Foundation; either version 2, or (at your option) any   // later version.   //      #define _ok id->misc->defines[" _ok"]    - constant cvs_version = "$Id: writefile.pike,v 1.8 2001/10/08 12:32:57 anders Exp $"; + constant cvs_version = "$Id: writefile.pike,v 1.9 2001/10/30 21:29:17 srb%cuci.nl Exp $";   constant thread_safe = 1;   constant language = roxen->language;      #include <module.h>   #include <config.h>      inherit "module";         // ---------------- Module registration stuff ----------------
Roxen.git/server/modules/tags/writefile.pike:27:   constant module_doc = "This module provides the writefile RXML tags.<br>"    "<p>Copyright &copy; 2001, by "    "<a href='mailto:srb@cuci.nl'>Stephen R. van den Berg</a>, "    "The Netherlands.</p>"    "<p>This module is open source software; you can redistribute it and/or "    "modify it under the terms of the GNU General Public License as published "    "by the Free Software Foundation; either version 2, or (at your option) any "    "later version.</p>";      void create() { +  set_module_creator("Stephen R. van den Berg <srb@cuci.nl>");    defvar ("onlysubdirs", 1,    "Within tree only", TYPE_FLAG,    "Setting this will force all specified chroots and filenames to be "    "relative to the directory this tag is located in. "    "It functions as an enforced dynamic chroot to constrain users in "    "e.g. a user filesystem."    );   }      #define IS(arg) ((arg) && sizeof(arg))
Roxen.git/server/modules/tags/writefile.pike:180: Inside #if defined(manual)
     <attr name='chroot' value='string'>    <p>Specifies the virtual root directory (sandbox) all file operations are    contained under.</p>   </attr>      <attr name='from' value='string'>   <p>Specifies the type=file form field variable which uploaded the    file to be written. If this attribute is omitted, the container    content is what will be written instead. Given the example -  below, the parameter from=wrapupafile should be specified.</p> +  below, the parameter <var>from=wrapupafile</var> should be +  specified.</p>      <ex-box><form method='post'    enctype='multipart/form-data'>    <input type='file' name='wrapupafile' />    <input type='submit' value='Upload file' />   </form>   File uploaded:    <insert scope='form'    variable='wrapupafile.filename'/>   </ex-box>