Roxen.git / server / modules / examples / location.pike

version» Context lines:

Roxen.git/server/modules/examples/location.pike:1:   // This is a roxen module. Copyright © 2000 - 2001, Roxen IS.      #include <module.h>   inherit "module";   // All roxen modules must inherit module.pike    - constant cvs_version = "$Id: location.pike,v 1.5 2001/09/03 18:05:11 nilsson Exp $"; + constant cvs_version = "$Id: location.pike,v 1.6 2004/07/08 23:32:54 _cvs_stephen Exp $";   constant module_type = MODULE_LOCATION;   constant module_name = "RefDoc for MODULE_LOCATION";   constant module_doc = "This module does nothing, but its inlined "    "documentation gets imported into the roxen "    "programmer manual. You really don't want to "    "add this module to your virtual server, promise!";      // see common_api.pike for further explanations of the above constants      void create()
Roxen.git/server/modules/examples/location.pike:119:   {    return ({ 0775, // mode    ({ 17, -2 })[random(2)], // size/special    963331858, // atime    963331858, // mtime    963331858, // ctime    0, // uid    0 /* gid */ });   } // Of course, it's typically silly to return something like this.    - mapping(string:array(int)|Stat) find_dir_stat( string path, RequestID id ); + mapping(string:Stat) find_dir_stat( string path, RequestID id );   //! Need not be implemented. The parameter `path' is the path to a   //! directory, `id' is the request information object and the returned   //! mapping contains all filenames in the directory mapped to Stat   //! objects (or arrays for pike 7.0) for the same files respectively.   //!   //! If this method is not implemented, the find_dir_stat function   //! inherited from <tt>module.pike</tt> maps the result of   //! <ref>find_dir()</ref> over <ref>stat_file()</ref> to produce the   //! same result. Providing your own find_dir_stat might be useful if   //! your module maps its files from a database, in which case you