Roxen.git / server / modules / tags / indirect_href.pike

version» Context lines:

Roxen.git/server/modules/tags/indirect_href.pike:1:   // This is a roxen module. Copyright © 1996 - 2000, Roxen IS.   //   // This module makes it possible to write symbolic names instead of   // absoulte hrefs.   //   // made by Mattias Wingstedt      #pragma strict_types    - constant cvs_version = "$Id: indirect_href.pike,v 1.21 2000/05/05 15:33:07 kuntri Exp $"; + constant cvs_version = "$Id: indirect_href.pike,v 1.22 2000/07/17 12:22:01 nilsson Exp $";   constant thread_safe = 1;   #include <module.h>      inherit "module";      void create()   {    defvar( "hrefs", "roxen = http://www.roxen.com\n"    "community = http://community.roxen.com", "Indirect hrefs",    TYPE_TEXT_FIELD, "The URL database with the syntax:<br>\n"
Roxen.git/server/modules/tags/indirect_href.pike:48:    hrefs = ([ ]);    if (lines = ([string]query( "hrefs" )-" "-"\t") /"\n")    foreach (lines, string line)    if (sscanf( line, "%s=%s", variable, value ) >= 2)    hrefs[ variable ] = value;   }      class TagAI {    inherit RXML.Tag;    string name; -  mapping(string:RXML.Type) req_arg_types = (["name":RXML.t_text]); +  mapping(string:RXML.Type) req_arg_types = (["name":RXML.t_text(RXML.PEnt)]);       void create() {    if(variables->tagname)    name = [string]query("tagname");    else    name = "ai";    }       class Frame {    inherit RXML.Frame;