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.1 2001/05/08 22:19:29 srb%cuci.nl Exp $"; + constant cvs_version = "$Id: writefile.pike,v 1.2 2001/05/16 07:51:00 per 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:96:    if(args->from) {    towrite=RXML.user_get_var(args->from, "form");    if(!towrite ||    IS(args["max-size"]) && sizeof(towrite)>(int)args["max-size"]) {    _ok = 0;    return 0;    }    } else    towrite=content;    object privs; -  ;{ array(int) st; +  ;{ Stat st;    string diro,dirn;    int domkdir=0;    for(dirn=filename;    diro=dirn, diro!=(dirn=dirname(dirn)) && !(st = file_stat(dirn));    domkdir=1);    if(st) {    privs = Privs("Writefile", st[5], st[6]);    if(domkdir && args->mkdirhier)    Stdio.mkdirhier(dirname(filename));    }