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, 1997, 1998, Idonex AB.    *    * This module makes it possible to write symbolic names instead of    * absoulte hrefs.    *    * made by Mattias Wingstedt <peter@idonex.se> -96    */    - constant cvs_version = "$Id: indirect_href.pike,v 1.8 1998/11/04 20:28:09 peter Exp $"; + constant cvs_version = "$Id: indirect_href.pike,v 1.9 1999/05/20 03:26:19 neotron Exp $";   constant thread_safe=1;   #include <module.h>      inherit "module";   inherit "roxenlib";      mapping hrefs;   string tagname;      void create()
Roxen.git/server/modules/tags/indirect_href.pike:68:   {    if (m[ "name" ] && hrefs[ m[ "name" ] ])    return "<a href=" + hrefs[ m[ "name" ] ] + ">" + q + "</a>";    else if (m[ "random" ])    return "<a href=" + values( hrefs )[ random( sizeof( hrefs ) ) ] + ">"    + q + "</a>";    else    return q;   }    + mapping query_tag_callers() { return ([]); } +    mapping query_container_callers()   {    return ([ tagname : tag_newa ]);   }