-
-<?php
-
-/*
- * Config:
- */
-$required_actions_file_version = "1.0";
-$required_privoxy_version = "2.9.13";
-$actions_file_download = "http://www.privoxy.org/actions/testdrive.action";
-$submit_target = "http://www.oesterhelt.org/actions-test/step2.php";
-
-
-/*
- * Debug:
- */
-//phpinfo();
-//error_reporting(E_ALL);
-error_reporting(E_NONE);
-
-/*
- * Function: error_abort
- * Purpose: Return an error page with $title and $message
- */
-function error_abort($title, $message)
-{
- if ($title == "invalid") /* shortcut */
- {
- $title = "Invalid Feedback Submission";
- }
-
- echo (" <title>Privoxy: $title</title>
- </head>
- <body>
- <div class=\"title\">
- <h1>
- <a href=\"http://www.privoxy.org/\">Privoxy</a>: $title
- </h1>
- </div>
- <center>
- <div class=\"errorbox\">
- $message
- </div>
- </center>
- <p>Valid <a href=\"http://validator.w3.org/\">HTML 4.01 Transitional</a></p>
- </body>
- </html>\n");
- exit;
-}
-
-
-/*
- * 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());";
-
-
-/*
- * Provide default if URL unset
- */
-if (!isset($url))
-{
- $url = "http://www.example.com/";
-}
-
-
-/*
- * Deny feedback which is not based on our latest
- * distribution:
- */
-$headers = getallheaders();
-
-if (!isset($headers["X-Actions-File-Version"]) || $headers["X-Actions-File-Version"] < $required_actions_file_version)
-{
-
- error_abort("invalid", "<p>As much as we welcome your feedback, please note that
- we can only accept problem reports based on:
- <ul>
- <li><a href=\"http://www.privoxy.org/\">Privoxy</a> version $required_privoxy_version or later</li>
- <li><a href=\"$actions_file_download\">Actionsfile</a> version version $required_actions_file_version or later</li>
- </ul>
- <p>We hope you will understand that we feel unable to maintain concurrent versions of the file.</p>");
-}
-
-?>
-
- <title>Privoxy Action List Feedback - Step 1 of 2</title>