Made script location indepandant
authoroes <oes@users.sourceforge.net>
Tue, 2 Apr 2002 08:45:22 +0000 (08:45 +0000)
committeroes <oes@users.sourceforge.net>
Tue, 2 Apr 2002 08:45:22 +0000 (08:45 +0000)
doc/webserver/actions/index.php

index 149ace9..b8c60c8 100755 (executable)
@@ -8,9 +8,12 @@
               This file belongs in
               ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/
 
-  $Id: index.php,v 1.5 2002/04/01 19:13:47 oes Exp $
+  $Id: index.php,v 1.7 2002/04/02 07:21:34 oes Exp $
 
   $Log: index.php,v $
+  Revision 1.7  2002/04/02 07:21:34  oes
+  Using relative link for step2
+
   Revision 1.5  2002/04/01 19:13:47  oes
   Extended, fixed bugs, beefed up design, made IE-safe
 
@@ -71,9 +74,12 @@ $actions_file_download = "http://www.privoxy.org/actions/testdrive.action";
 //error_reporting(E_ALL);
 error_reporting(E_NONE);
 
-//$bookmarklet_base = "http://www.privoxy.org/actions/";
-$bookmarklet_base = "http://www.oesterhelt.org/actions/index.php";
-$bookmarklet = "javascript:void(window.open('$bookmarklet_base?url='+escape(location.href), 'Feedback', " .
+
+/*
+ * Bookmarklet that leads here:
+ */
+$my_address = "http://" . $HTTP_SERVER_VARS["HTTP_HOST"] . $PHP_SELF;
+$bookmarklet = "javascript:void(window.open('$my_address?url='+escape(location.href), 'Feedback', " .
                "'width=600,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no').focus());";