Roxen.git
/
server
/
modules
/
tags
/
killframe.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/modules/tags/killframe.pike:5:
* * Will also remove occuranses of "indexfiles" from the end of the URL. * * made by Peter Bortas <peter@roxen.com> Januari -97 * * Thanks for suggestions and bugreports: * Barry Treahy <treahy@allianceelec.com> * Chris Burgess <chris@ibex.co.nz> */
-
constant cvs_version = "$Id: killframe.pike,v 1.
31
2000
/
09
/
10
16
:
35
:
07
nilsson
Exp $";
+
constant cvs_version = "$Id: killframe.pike,v 1.
32
2001
/
03
/
07
13
:
42
:
11
kuntri
Exp $";
constant thread_safe=1; #include <module.h> inherit "module"; void create() { defvar( "killindex", 1, "Remove index files from the URL", TYPE_FLAG, "If set, the module will remove occurrences of any index file from " "the end of the URL, leaving only a slash. The index file "
Roxen.git/server/modules/tags/killframe.pike:29:
constant module_type = MODULE_TAG; constant module_name = "Kill frame"; constant module_doc = "This module defines a the tag <killframe> that " "adds some JavaScript that will prevent others " "from putting the page in a frame. It can " "also strip any occurrences of index files, like <tt>index.html</tt>, " "from the end of the URL."; TAGDOCUMENTATION #ifdef manual
-
constant tagdoc=(["killframe":#"<desc tag><short>
+
constant tagdoc=(["killframe":#"<desc tag
='tag'
><
p><
short>
This tag adds some JavaScript that will prevent others from putting the page in a frame.</short> It can also strip any occurrences of index files, like <ext>index.html</ext>, from the end of the
-
URL.</desc>
+
URL.</
p></
desc>
-
<attr name=killindex>Removes trailing index.html from the URL</attr>",
+
<attr name=killindex>
<p>
+
Removes trailing index.html from the URL
.
</
p>
+
</
attr>",
]); #endif string tag_killframe( string tag, mapping m, object id ) { NOCACHE(); if( !id->supports->javascript ) return ""; string javascript;