Branch: Tag:

1996-11-27

1996-11-27 13:45:57 by Per Hedbor <ph@opera.com>

Comments

Rev: server/modules/directories/directories.pike:1.3
Rev: server/modules/directories/fastdir.pike:1.2
Rev: server/modules/directories/indexfiles.pike:1.2
Rev: server/modules/filesystems/filesystem.pike:1.3
Rev: server/modules/filesystems/secure_fs.pike:1.3
Rev: server/modules/filesystems/userfs.pike:1.4
Rev: server/modules/filters/hostredirect.pike:1.2
Rev: server/modules/filters/htaccess.pike:1.3
Rev: server/modules/filters/redirect.pike:1.2
Rev: server/modules/filters/relay.pike:1.2
Rev: server/modules/logging/client_logger.pike:1.2
Rev: server/modules/logging/home_logger.pike:1.3
Rev: server/modules/logging/nologging.pike:1.2
Rev: server/modules/misc/contenttypes.pike:1.2
Rev: server/modules/misc/ismap.pike:1.2
Rev: server/modules/misc/userdb.pike:1.3
Rev: server/modules/proxies/connect.pike:1.2
Rev: server/modules/proxies/gopher.pike:1.2
Rev: server/modules/proxies/proxy.pike:1.5
Rev: server/modules/proxies/wais.pike:1.2
Rev: server/modules/scripting/cgi.pike:1.2
Rev: server/modules/scripting/fcgi.pike:1.2
Rev: server/modules/scripting/pikescript.pike:1.2
Rev: server/modules/tags/header.pike:1.2
Rev: server/modules/tags/htmlparse.pike:1.5
Rev: server/modules/tags/indirect_href.pike:1.2
Rev: server/modules/tags/language.pike:1.2
Rev: server/modules/tags/lpctag.pike:1.2
Rev: server/modules/tags/tablify.pike:1.2

1: - // This is a virtual "file-system". - // It will be located somewhere in the name-space of the server. + // This is a roxen module. (c) Informationsvvarna AB 1996. +  + // This module makes it possible to write symbolic names instead of + // absoulte hrefs. + // Written by Mattias Wingstedt, <wing@infovav.se>, please refer + // to him for further info. +    #include <module.h>      inherit "module";
11:   void create()   {    defvar( "hrefs", "", "Indirect hrefs", TYPE_TEXT_FIELD, -  "Syntax:\n" -  + "[name] = [URL]\n" ); +  "Syntax:<br>\n" +  "[name] = [URL]\n" ); +     defvar( "tagname", "newa", "Tagname", TYPE_STRING,    "Name of the tag\n" -  + "&lt;tag name=[name]&gt;foo&lt;/tag&gt; will be replaced with\n" -  + "&lt;a href=[URL]&gt;foo&lt;/a&gt;" ); +  "&lt;tag name=[name]&gt;foo&lt;/tag&gt; will be replaced with\n" +  "&lt;a href=[URL]&gt;foo&lt;/a&gt;" );   }    - mixed *register_module() + array (mixed) register_module()   { -  return ({ -  MODULE_PARSER, -  "Indirect href", -  ("Indirect href") -  }); +  return ({ MODULE_PARSER, "Indirect href", "Indirect href", });   }      void start()   { -  string *lines, line; -  string variable, value, *foo; +  array (string) lines, foo; +  string line; +  string variable, value;    string dir = "";    mapping all = ([ ]);