Roxen.git / server / modules / scripting / piketag.pike

version» Context lines:

Roxen.git/server/modules/scripting/piketag.pike:1:   // This is a roxen module. Copyright © 1996 - 1998, Idonex AB.   //   // Adds support for inline pike in documents.   //   // Example:   // <pike>   // return "Hello world!\n";   // </pike>    - constant cvs_version = "$Id: piketag.pike,v 2.2 1999/12/21 16:48:31 per Exp $"; + constant cvs_version = "$Id: piketag.pike,v 2.3 2000/02/10 06:59:23 nilsson Exp $";   constant thread_safe=1;      inherit "roxenlib";   inherit "module";   #include <module.h>;      constant module_type = MODULE_PARSER;   constant module_name = "Pike tag";   constant module_doc =   #"This module adds a new tag, &lt;pike&gt;&lt;/pike&gt;. It makes it - possible to insert some pike code directly in the document. <br><img - src=/image/err_2.gif align=left alt=\"\"> <br>NOTE: Enabling this + possible to insert some pike code directly in the document. <br> + <img src=\"internal-roxen-err_2\" align=\"left\" alt=\"Warning\"> <br>NOTE: Enabling this   module is the same thing as letting your users run programs with the   same right as the server! Example:<p><pre> &lt;pike&gt; return   \"Hello world!\\n\"; &lt;/pike&gt;\n</pre> <p>Arguments: Any, all   arguments are passed to the script in the mapping args. There are also   a few helper functions available, output(string fmt, mixed ... args)   is a fast way to add new data to a dynamic buffer, flush() returns the   contents of the buffer as a string. A flush() is done automatically   if the script does not return any data, thus, another way to write the   hello world script is <tt>&lt;pike&gt;output(\"Hello %s\n\",   \"World\");&lt/pike&gt</tt><p> The request id is available as id.";