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

version» Context lines:

Roxen.git/server/modules/tags/killframe.pike:1: - /* This is a roxen module. Copyright © 1997, 1998, Idonex AB. + /* This is a roxen module. Copyright © 1997-1999, Idonex AB.    *    * Adds some java script that will prevent others from putting    * your page in a frame.    *    * Will also remove occuranses of "indexfiles" from the end of the URL.    *    * made by Peter Bortas <peter@idonex.se> 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.21 1998/08/10 21:39:31 per Exp $"; + constant cvs_version = "$Id: killframe.pike,v 1.22 1999/07/21 05:12:03 nilsson Exp $";   constant thread_safe=1;      #include <module.h>   inherit "module";      void create()   {    defvar( "killindex", 1, "Kill trailing 'indexfiles'?", TYPE_FLAG|VAR_MORE,    "When set, the killframe module will remove occurrences of "    "'indexfiles' (as set in the active directory module) from "
Roxen.git/server/modules/tags/killframe.pike:92:       //top.location = self.location breaks some versions of IE.    //Mozilla 3 on Solaris cows with top.frames.length    if( id->client && id->client[0][..8] == "Mozilla/3" )    javascript = ( " if(top.location != \""+ my_url +"\")\n"    " top.location = \""+ my_url +"\";\n" );    else    javascript = ( " if(top.frames.length>1)\n"    " top.location = \""+ my_url +"\";\n" );    -  return("<script language=javascript><!--\n" +  return("<script language=\"javascript\"><!--\n"    + javascript    + "//--></script>\n");   }      mapping query_tag_callers()   {    return ([ "killframe" : tag_killframe ]);   }