X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=doc%2Fwebserver%2Factions%2Findex.php;h=65ca715a239637f632c0ba3555920c4a2abfee92;hp=e01935f266a6f73c595afd0a6f267a7466286e96;hb=efd8e95a38aae502ae4d3b7979488881596cc6b7;hpb=273aaf5afed7e955586373e2e70fd23e29ce1514 diff --git a/doc/webserver/actions/index.php b/doc/webserver/actions/index.php index e01935f2..65ca715a 100755 --- a/doc/webserver/actions/index.php +++ b/doc/webserver/actions/index.php @@ -2,15 +2,86 @@
- + + + + + Privoxy: $title + + +Valid HTML 4.01 Transitional
+ + \n"); + exit; +} + +/* + * Bookmarklet that leads here: + */ +$my_address = "http://" . $HTTP_SERVER_VARS["HTTP_HOST"] . $PHP_SELF; +$bookmarklet = "javascript:w=Math.floor(screen.width/2);h=Math.floor(screen.height*0.9);void(window.open('$my_address?url='+escape(location.href)," . + "'Feedback','screenx='+w+',width='+w+',height='+h+',scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no," . + "copyhistory=no').focus());"; /* * Provide default if URL unset @@ -79,7 +185,10 @@ if (!isset($url)) { $url = "http://www.example.com/"; } - +else +{ + $url = strtr($url, " ", "+"); +} /* * Deny feedback which is not based on our latest @@ -87,23 +196,20 @@ if (!isset($url)) */ $headers = getallheaders(); -if (!isset($headers["X-Actions-File-Version"]) || $headers["X-Actions-File-Version"] < $required_actions_file_version) +if (!isset($headers["X-Actions-File-Version"]) || $headers["X-Actions-File-Version"] != $required_actions_file_version) { - echo ("As much as we welcome your feedback, please note that - we can only accept problem reports based on: -
We hope you will understand that we feel unable to maintain concurrent versions of the file.
-