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

version» Context lines:

Roxen.git/server/modules/examples/fnord.pike:1: - // This is a roxen module. Copyright © 1996 - 2001, Roxen IS. + // This is a ChiliMoon module. Copyright © 1996 - 2001, Roxen IS.      // This is a small sample module. It is intended to show a simple example   // of a container.      // This variable is shown in the configinterface as the version of the module. - constant cvs_version = "$Id: fnord.pike,v 1.18 2004/05/23 15:08:56 _cvs_dirix Exp $"; + constant cvs_version = "$Id: fnord.pike,v 1.19 2004/06/05 15:19:44 _cvs_dirix Exp $";    - // Tell Roxen that this module is threadsafe. That is there is no + // Tell ChiliMoon that this module is threadsafe. That is there is no   // request specific data in global variables.   constant thread_safe=1;      // Include and inherit code that is needed in every module.   #include <module.h>   inherit "module";      // Some defines for the translation system   //   //<locale-token project="mod_fnord">LOCALE</locale-token>
Roxen.git/server/modules/examples/fnord.pike:59:   // actually get to it,</FNORD> complete source for the ...      // The way the normally hidden text is made visible is by including   // "fnord" in the prestates (i.e. add "/(fnord)" before the "filename"   // part of the URL).      // Michael A. Patton <map@bbn.com>         // This is the code for the actual container. By naming it "simpletag_" - // it is automatically recognized by Roxen as the code for a tag. + // it is automatically recognized by ChiliMoon as the code for a tag.      // First, check the 'request_id->prestate' multiset for the presence   // of 'fnord'. If it is there, show the contents, otherwise, if there   // is an 'alt' text, display it, if not, simply return an empty string      string simpletag_fnord(string tag_name, mapping arguments, string contents,    RequestID id )   {    if (id->prestate->fnord)    return contents;