Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS. - // $Id: module.pike,v 1.141 2003/07/07 17:44:58 mast Exp $ + // $Id: module.pike,v 1.142 2003/07/07 18:15:43 mast Exp $      #include <module_constants.h>   #include <module.h>   #include <request_trace.h>      constant __pragma_save_parent__ = 1;      inherit "basic_defvar";   mapping(string:array(int)) error_log=([]);   
Roxen.git/server/base_server/module.pike:280:    TRACE_LEAVE("OK");    } else {    TRACE_LEAVE("No stat info");    }    }       TRACE_LEAVE("");    return(res);   }    - // ISO 8601 Date and Time - // RFC 2518 23.2 - // No fraction, UTC only. - static string iso8601_date_time(int ts) - { -  mapping(string:int) gmt = gmtime(ts); -  return sprintf("%04d-%02d-%02dT%02d:%02d:%02dZ", -  1900 + gmt->year, gmt->mon, gmt->mday, -  gmt->hour, gmt->min, gmt->sec); - } -  +    //! Returns a multiset with the names off all supported properties.   multiset(string) query_all_properties(string path, RequestID id)   {    Stat st = stat_file(path, id);    if (!st) return (<>);    multiset(string) res = (<    "DAV:displayname", // 13.2    "DAV:getlastmodified", // 13.7    "DAV:resourcetype", // 13.9    >);
Roxen.git/server/base_server/module.pike:338:    }    break;    case "DAV:getcontenttype": // 13.5    if (st->isreg) {    return id->conf->    type_from_filename(path, 0,    lower_case(Roxen.extension(path, id)));    }    break;    case "DAV:getlastmodified": // 13.7 -  return iso8601_date_time(st->mtime); +  return Roxen.iso8601_date_time(st->mtime);    case "DAV:resourcetype": // 13.9    if (st->isdir) {    return ({    Parser.XML.Tree.ElementNode("DAV:collection", ([])), // 12.2    });    }    return "";    case "http://apache.org/dav/props/executable":    // http://www.webdav.org/mod_dav/:    //