Branch: Tag:


2001-09-21 15:58:18 by Johan Sundström <>

Improved TAGDOC and XML compliance.

Rev: server/modules/database/sqltag.pike:1.83
Rev: server/modules/examples/fnord.pike:1.16
Rev: server/modules/examples/newstyle_fnord.pike:1.13
Rev: server/modules/graphics/atlas.pike:1.10
Rev: server/modules/graphics/business.pike:1.143
Rev: server/modules/graphics/cimg.pike:1.47
Rev: server/modules/graphics/counter.pike:1.41
Rev: server/modules/graphics/gbutton.pike:1.90
Rev: server/modules/graphics/graphic_text.pike:1.279
Rev: server/modules/graphics/tablist.pike:1.58
Rev: server/modules/graphics/wiretap.pike:1.31
Rev: server/modules/ldap/ldaptag.pike:2.17
Rev: server/modules/misc/language2.pike:1.15
Rev: server/modules/misc/preferred_language.pike:1.20
Rev: server/modules/scripting/perl.pike:2.21
Rev: server/modules/scripting/piketag.pike:2.36
Rev: server/modules/tags/accessed.pike:1.48
Rev: server/modules/tags/additional_rxml.pike:1.17
Rev: server/modules/tags/awizard.pike:1.24
Rev: server/modules/tags/check_spelling.pike:1.18
Rev: server/modules/tags/countdown.pike:1.46
Rev: server/modules/tags/diremit.pike:1.14
Rev: server/modules/tags/email.pike:1.15
Rev: server/modules/tags/foldlist.pike:1.32
Rev: server/modules/tags/html_wash.pike:1.23
Rev: server/modules/tags/indirect_href.pike:1.32
Rev: server/modules/tags/javascript_support/javascript_support.pike:1.42
Rev: server/modules/tags/killframe.pike:1.35
Rev: server/modules/tags/obox.pike:1.37
Rev: server/modules/tags/session_tag.pike:1.11
Rev: server/modules/tags/ssi.pike:1.44
Rev: server/modules/tags/tablify.pike:1.70
Rev: server/modules/tags/vform.pike:1.29
Rev: server/modules/tags/writefile.pike:1.5
Rev: server/modules/throttling/throttletags.pike:1.13

10:      #define _ok id->misc->defines[" _ok"]    - constant cvs_version = "$Id: writefile.pike,v 1.4 2001/08/24 22:35:24 nilsson Exp $"; + constant cvs_version = "$Id: writefile.pike,v 1.5 2001/09/21 15:58:17 jhs Exp $";   constant thread_safe = 1;   constant language = roxen->language;   
162: Inside #if defined(manual)
  TAGDOCUMENTATION;   #ifdef manual   constant tagdoc=([ - "writefile":#"<desc cont='cont'><p><short> + "writefile":#"<desc type='cont'><p><short>    Writes uploaded or direct content to a file.</short>    You can either use an upload form or write the container content    directly into a file. The ownership of any newly created file is determined
173: Inside #if defined(manual)
   on success or failure of the requested operation.</p>   </desc>    - <attr name=filename value=string> + <attr name='filename' value='string'>    <p>Specifies the virtual filename to be created or operated on (relative    to the current directory, or to the root of the virtual filesystem).</p>   </attr>    - <attr name=chroot value=string> + <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> + <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    <var>from=wrapupafile</var> should be specified.</p>    - <ex type='box'><form method='post' + <ex-box><form method='post'    enctype=\"multipart/form-data\">    <input type='file' name='wrapupafile' />    <input type='submit' value=\"Upload file\" />
197: Inside #if defined(manual)
  File uploaded:    <insert scope='form'    variable=\"wrapupafile..filename\"/> - </ex> + </ex-box>   </attr>    - <attr name=append> + <attr name='append'>    <p>Append to the file instead of replacing it.</p>   </attr>    - <attr name=mkdirhier> + <attr name='mkdirhier'>    <p>Create the directory hierarchy needed to store the file if needed.</p>   </attr>    - <attr name=remove> + <attr name='remove'>    <p>Causes the specified filename or directory to be removed.</p>   </attr>    - <attr name=moveto value=string> + <attr name='moveto' value='string'>    <p>Causes the specified filename to be moved to this new location.</p>   </attr>    - <attr name=max-size value=integer> + <attr name='max-size' value='integer'>    <p>Specifies the maximum upload file size in bytes which is accepted.</p>   </attr>    - <attr name=max-height value=integer> + <attr name='max-height' value='integer'>    <p>The maximum imageheight in pixels which is accepted.</p>   </attr>    - <attr name=max-width value=integer> + <attr name='max-width' value='integer'>    <p>The maximum imagewidth in pixels which is accepted.</p>   </attr>    - <attr name=min-height value=integer> + <attr name='min-height' value='integer'>    <p>The minimum imageheight in pixels which is accepted.</p>   </attr>    - <attr name=min-width value=integer> + <attr name='min-width' value='integer'>    <p>The minimum imagewidth in pixels which is accepted.</p>   </attr>    - <attr name=accept-type value=string> + <attr name='accept-type' value='string'>    <p>Comma separated list of file types which are accepted, currently    supported types    are jpeg, png and gif; the check is performed on the file content, not