Branch: Tag:

1999-11-29

1999-11-29 17:00:09 by Martin Nilsson <mani@lysator.liu.se>

WAP WML Module. It can convert between WML 1.0 and WML 1.1, convert between WBMP and normal web formats, set correct MIME type, and does all this depending on the clients capabilities. It currently does not convert character encodings and entities, nor is it really tested.

Rev: server/modules/tags/killframe.pike:1.23
Rev: server/modules/tags/wml.pike:1.1

12:    * Chris Burgess <chris@ibex.co.nz>    */    - constant cvs_version = "$Id: killframe.pike,v 1.22 1999/07/21 05:12:03 nilsson Exp $"; + constant cvs_version = "$Id: killframe.pike,v 1.23 1999/11/29 16:49:19 nilsson Exp $";   constant thread_safe=1;      #include <module.h>
20:      void create()   { -  defvar( "killindex", 1, "Kill trailing 'indexfiles'?", TYPE_FLAG|VAR_MORE, +  defvar( "killindex", 1, "Kill trailing 'indexfiles'?", TYPE_FLAG,    "When set, the killframe module will remove occurrences of "    "'indexfiles' (as set in the active directory module) from "    "the end of the URL, leaving only a slash." );
72:       // Links to index.html are ugly. All pages deserve a uniqe URL, and for    // index-pages that URL in /. -  if( query("killindex") ) +  if( query("killindex") || m->killindex )    {    //Get indexfiles from the directory-module if there is one.    array indexfiles = ({});
103:    + javascript    + "//--></script>\n");   } -  - mapping query_tag_callers() - { -  return ([ "killframe" : tag_killframe ]); - } +