From: oes <oes@users.sourceforge.net>
Date: Tue, 2 Apr 2002 07:21:34 +0000 (+0000)
Subject: Using relative link for step2
X-Git-Tag: v_2_9_14~268
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/@default-cgi@/faq/static/gitweb.js?a=commitdiff_plain;h=e3c6601044c1d86765716ef3fa14b7e8d2598d57;p=privoxy.git

Using relative link for step2
---

diff --git a/doc/webserver/actions/index.php b/doc/webserver/actions/index.php
index 31db07d9..149ace9d 100755
--- a/doc/webserver/actions/index.php
+++ b/doc/webserver/actions/index.php
@@ -67,12 +67,14 @@ $actions_file_download = "http://www.privoxy.org/actions/testdrive.action";
 /*
  * For testing: 
  */
-$base_url = "http://www.oesterhelt.org/actions";
-//$base_url = "http://www.privoxy.org/actions";
-//$base_url = "http://localhost/actions";
-error_reporting(E_NONE);
-//error_reporting(E_ALL);
 //phpinfo();
+//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', " .
+               "'width=600,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no').focus());";
 
 
 /* 
@@ -129,7 +131,7 @@ if (!isset($headers["X-Actions-File-Version"]) || $headers["X-Actions-File-Versi
   </div>
 
   <div class="box">
-   <form action="<?php echo($base_url); ?>/step2.php" method="post">
+   <form action="step2.php" method="post">
 
     <table border="0" cellpadding="0" cellspacing="4">
 
@@ -178,7 +180,7 @@ if (!isset($headers["X-Actions-File-Version"]) || $headers["X-Actions-File-Versi
     </p>
     <p>
      Please right-click the following link and choose "Add to Favorites" (IE) or "Add Bookmark for Link" (Netscape): 
-     <a href="javascript:void(window.open('<?php echo($base_url); ?>/index.php?url='+escape(location.href), 'Feedback', 'width=600,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no').focus());">Privoxy-Submit</a>
+     <a href="<?php echo($bookmarklet); ?>">Privoxy-Submit</a>
     </p>
 
     <p>