committing changes in /etc made by "-bash"

Package changes:
This commit is contained in:
2022-11-16 16:04:55 +02:00
parent 78c5f6b37f
commit 90c134cd7f
62 changed files with 14092 additions and 4 deletions

275
privoxy/templates/blocked Normal file
View File

@@ -0,0 +1,275 @@
##########################################################
#
# "Blocked" Error Output template for Privoxy.
#
# NOTE: UNLIKE THE OTHER TEMPLATES, THIS ONE USES
# JavaScript write() TO GENERATE THE PAGE IN JS_AWARE
# BROWSERS. SYMBOL SUBSTITUTIONS THAT RESULT IN MULTILINE
# STRINGS WILL BREAK THE JavaScript SYNTAX.
# USE WITH CAUTION.
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written in plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach this proxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the proxy administrator, as configured
# in the config file
# default-cgi:
# The URL for the "main menu" builtin CGI of this proxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The version number of the proxy software
# code-status:
# The development status of the proxy software: "alpha", "beta",
# or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
#
# protocol:
# The request's protocol: http:// or https://
# hostport:
# The host and port part of the blocked request's URL.
# path:
# The path part of the blocked request's URL.
# path-ue:
# The path part of the blocked request's URL, url-encoded.
#
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# This is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
# force-support:
# Privoxy has been compiled with support for forced loading
# of blocked content. In that case, the symbol "force-prefix" is
# avaiable, which translates to the FORCE_PREFIX
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Request blocked (Privoxy@@my-hostname@)</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico" type="image/x-icon">
<style type="text/css">
#include cgi-style.css
</style>
<script type="text/javascript" language="javascript">
<!--
/*
* Is this window or frame too small
* for the full-blown "blocked" page?
*/
function isSmallFrame()
{
minWidth = 650;
minHeight = 330;
/*
* Navigator, Mozilla, Opera
*/
if (window.innerWidth
&& (window.innerWidth >= minWidth)
&& (window.innerHeight >= minHeight))
{
return false;
}
/*
* MSIE
*/
else if (document.body && document.body.clientWidth
&& (document.body.clientWidth >= minWidth)
&& (document.body.clientHeight >= minHeight))
{
return false;
}
/*
* Small window or unsupported browser
*/
return true;
}
//-->
</script>
</head>
<body>
<script type="text/javascript" language="javascript">
<!--
# Note: The same small version is used at the bottom
# of this file in the <noscript> context. If you
# make changes here, keep the other version in sync!
if (isSmallFrame())
{
document.write('\
<p class="small" align="center"> \
Request blocked by <a href="@default-cgi@" target="_blank">Privoxy</a>: @block-reason@ \
<br>See <a href="@default-cgi@show-url-info?url=@hostport@@path-ue@" \
>why this block applies</a> \
<!-- @if-force-support-start --> \
or <a href="http://@hostport@@force-prefix@@path@">go \
<!-- if-force-support-end@ --> \
to <b>@protocol@@hostport@@path@</b> \
<!-- @if-force-support-start --> \
anyway</a>. \
<!-- if-force-support-end@ --> \
</p> \
');
}
else
{
document.write('\
<table cellpadding="20" cellspacing="10" border="0" width="100%">\
<tr> \
<td class="status"> \
BLOCKED \
</td> \
<td class="title" width=100%> \
<h1> \
This is <a href="@homepage@">Privoxy</a> @version@ on @my-hostname@ (@my-ip-address@), port @my-port@, \
@if-enabled-display-then@enabled@else-not-enabled-display@disabled@endif-enabled-display@ \
</h1> \
</td> \
</tr> \
\
<!-- @if-unstable-start --> \
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in \
<tr> \
<td class="warning" colspan="2"> \
<h2>Warning:</h2> \
<p> \
<b>Please note that this <font color=red>@code-status@</font> release \
of the proxy software is not intended for production systems! \
<br>Use at your own risk. See the <a href="@user-manual@copyright.html">license</a> for details.</b> \
</p> \
</td> \
</tr> \
<!-- if-unstable-end@ --> \
\
<tr> \
<td class="box" colspan="2"> \
<h2>Request for blocked URL</h2> \
<p>Your request for <b>@protocol@@hostport@@path@</b> was blocked. \
<br>Block reason: @block-reason@ \
<br><a href="@default-cgi@show-url-info?url=@hostport@@path-ue@" \
>See why this block applies</a> \
<!-- @if-force-support-start --> \
or <a href="http://@hostport@@force-prefix@@path@">go there anyway</a>. \
<!-- if-force-support-end@ --> \
</p> \
</td> \
</tr> \
\
<tr> \
<td class="box" colspan="2"> \
<h2>More Privoxy:</h2> \
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul> \
</td> \
</tr> \
\
<!-- @if-have-help-info-start --> \
<tr> \
<td class="info" colspan="2"> \
<h2>Local Privoxy support:</h2> \
\
<!-- @if-have-proxy-info-start --> \
<p>You can consult the <a href="@proxy-info-url@">online documentation</a> for more information about this Privoxy installation.</p> \
<!-- if-have-proxy-info-end@ --> \
\
<!-- @if-have-adminaddr-info-start --> \
<p>Address e-mail questions about this service to \
<a href="mailto:@admin-address@"><code>@admin-address@</code></a>, \
who will be glad to help you. \
</p> \
<!-- if-have-adminaddr-info-end@ --> \
</td> \
</tr> \
<!-- if-have-help-info-end@ --> \
\
<tr> \
<td class="info" colspan="2"> \
<big><b>Support and Service:</b></big> \
<p> \
The Privoxy Team values your feedback. \
</p> \
<p> \
Please have a look at the User Manual to learn how to \
<a title="Privoxy User Manual: Contacting the developers, Bug Reporting and Feature Requests" \
href="@user-manual@contact.html">get support or report problems</a>. \
<p> \
If you want to support the Privoxy Team, you can \
<a href="https://www.privoxy.org/participate">participate</a> \
or <a href="https://www.privoxy.org/donate">donate</a>. \
</p> \
</td> \
</tr> \
\
</table> \
');
}
//-->
</script>
# Note: The same small version is used above via JavaScript
# If you make changes here, keep the other version in sync!
<noscript>
<p class="small" align="center">
Request blocked by <a href="@default-cgi@">Privoxy</a>: @block-reason@
<br>See <a href="@default-cgi@show-url-info?url=@hostport@@path-ue@"
>why this block applies</a>
<!-- @if-force-support-start -->
or <a href="http://@hostport@@force-prefix@@path@">go
<!-- if-force-support-end@ -->
to <b>@protocol@@hostport@@path@</b>
<!-- @if-force-support-start -->
anyway</a>.
<!-- if-force-support-end@ -->
</p>
</noscript>
</body>
</html>

View File

@@ -0,0 +1,148 @@
##########################################################
#
# No-Such-Domain Error Output template for Privoxy.
#
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written win plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach this proxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the proxy administrator, as configured
# in the config file
# default-cgi:
# The URL for the "main menu" builtin CGI of this proxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The version number of the proxy software
# code-status:
# The development status of the proxy software: "alpha", "beta",
# or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# this is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>404 - Privoxy Configuration Page not found</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
</head>
<body>
<table cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="status">
404
</td>
<td class="title" style="width: 100%">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning" colspan="2">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="warning" colspan="2">
<h2>Privoxy Configuration page not found</h2>
<p>You typed in what looks like a URL used to configure
Privoxy, but it cannot be recognised. Maybe it's
for a different Privoxy version, or you typed it
in wrong? Or maybe the Privoxy administrator
has decided to disable the feature.</p>
<p>If you got here by clicking a link in the
configuration interface, please file a bug report!</p>
<p>You can use the menu below to select from the available
configuration options</p>
</td>
</tr>
<tr>
<td class="box" colspan="2">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info" colspan="2">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info" colspan="2">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,155 @@
##########################################################
#
# No-Such-Domain Error Output template for Privoxy.
#
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written win plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach this proxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the proxy administrator, as configured
# in the config file
# default-cgi:
# The URL for the "main menu" builtin CGI of this proxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The version number of the proxy software
# code-status:
# The development status of the proxy software: "alpha", "beta",
# or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# this is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Privoxy: Bad parameter</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
</head>
<body>
<table cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="title">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="warning">
<h2>Bad parameter to Privoxy configuration page</h2>
<p>You've found a page used to configure Privoxy, but the
parameters (the part of the web page address after the
"?" mark) are wrong or missing.</p>
<p>Possible causes:</p>
<ul>
<li>If you just typed a URL pattern into a form, then you got
something wrong. Press the "back" button on your browser
once and correct what you typed.</li>
<li>If you tried to type in the URL, then you've found a
page where you can't do that. You can only view this
page by following links from elsewhere in the configuration
interface.</li>
<li>If you got here using your browser's "back" button, then
that is deliberately disabled for this page.</li>
<li>If you got here by clicking a link in the
configuration interface, please file a bug report!</li>
</ul>
<p>You can use the menu below to select from the available
configuration options</p>
</td>
</tr>
<tr>
<td class="box">
<h2>Privoxy Menu:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,168 @@
##########################################################
#
# Feature disabled or referrer untrusted Error Output template for Privoxy.
#
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written win plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach this proxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the proxy administrator, as configured
# in the config file
# default-cgi:
# The URL for the "main menu" builtin CGI of this proxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The version number of the proxy software
# code-status:
# The development status of the proxy software: "alpha", "beta",
# or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# this is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Configuration Page Disabled</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
</head>
<body>
<table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="title">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="warning">
<h2>Privoxy Configuration access denied</h2>
<p>Access to <b>@url@</b> has been denied because:</p>
<ul>
<li>it requires a feature that has been disabled by the Privoxy administrator,</li>
<li>you didn't come here through one of Privoxy's CGI pages, or</li>
<li>the <q>Referer:</q> header is blocked.</li>
</ul>
<p>Note that the following features which used to be enabled in earlier
releases are now off by default:
</p>
<ul>
<li><a href="@user-manual@config.html#ENABLE-EDIT-ACTIONS">enable-edit-actions</a></li>
<li><a href="@user-manual@config.html#ENABLE-REMOTE-TOGGLE">enable-remote-toggle</a></li>
<li><a href="@user-manual@config.html#ENABLE-REMOTE-HTTP-TOGGLE">enable-remote-http-toggle</a>
(Most likely you don't need this anyway.)</li>
</ul>
<p>Please refer to the documentation behind the links to learn how to
enable them again and what the consequences are.</p>
<p>All enabled features are accessible from the
<a href="@default-cgi@">main menu</a>, some of them
are <em>protected</em> with a referrer check though.
If you got caught by the referrer check, but are <strong>absolutely</strong> sure
you know what you are doing, please <a title="Retry from a trusted referrer"
href="@url@">try again</a>.</p>
<p>If the <q>Referer:</q> header is blocked, you'll have to make an exception for
Privoxy's web interface first. Note that <em>dumb</em> referrer blocking
is a bad idea anyway, as it makes it easier to fingerprint your
requests. Consider using Privoxy's conditional referrer block instead.</p>
</td>
</tr>
<tr>
<td class="box">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,138 @@
##########################################################
#
# No-Such-Domain Error Output template for Privoxy.
#
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written win plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach this proxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the proxy administrator, as configured
# in the config file
# default-cgi:
# The URL for the "main menu" builtin CGI of this proxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The version number of the proxy software
# code-status:
# The development status of the proxy software: "alpha", "beta",
# or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# this is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Privoxy: Actions file not found</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
</head>
<body>
<table cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="title">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="warning">
<h2>Actions file not found</h2>
<p>The actions file you are trying to edit (index <code>@f@</code>)
does not exist, or cannot be read.</p>
</td>
</tr>
<tr>
<td class="box">
<h2>Privoxy Menu:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,145 @@
##########################################################
#
# No-Such-Domain Error Output template for Privoxy.
#
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written win plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach this proxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the proxy administrator, as configured
# in the config file
# default-cgi:
# The URL for the "main menu" builtin CGI of this proxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The version number of the proxy software
# code-status:
# The development status of the proxy software: "alpha", "beta",
# or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# this is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Privoxy: Cannot write to actions file</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
</head>
<body>
<table cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="title">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="warning">
<h2>Cannot write to actions file</h2>
<p>The actions file you are trying to edit (<code>@f@.action</code>)
could not be written to.</p>
<p>You many not have permission to write to the file - check the file
permissions. On Windows, right-click the file, choose Properties,
and make sure it is not read-only.</p>
<p>Another reason you may see this message is if you have run out of
disk space. If that is the case, then the actions file has been
truncated - if you get further errors, you may need to fix it
using a text editor.</p>
</td>
</tr>
<tr>
<td class="box">
<h2>Privoxy Menu:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,156 @@
##########################################################
#
# No-Such-Domain Error Output template for Privoxy.
#
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written win plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach this proxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the proxy administrator, as configured
# in the config file
# default-cgi:
# The URL for the "main menu" builtin CGI of this proxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The version number of the proxy software
# code-status:
# The development status of the proxy software: "alpha", "beta",
# or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# this is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Privoxy: URL out of date</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
</head>
<body>
<table cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="title">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="warning">
<h2>URL out of date - file has changed since it was generated</h2>
<p>The URL you're viewing is out of date. To prevent possible
damage to your configuration file, this action has been ignored.
</p>
<p>Possible causes:</p>
<ul>
<li>If you got here using your browser's "back" button, then
that is deliberately disabled for this page. Please
navigate around the configuration editor using the
links provided.</li>
<li>Perhaps you've got more than one browser window open, and
you're trying to change the same file in both? You can
only have one editor window open at a time. Your other edit
window should continue to function.</li>
<li>You may have modified the file some other way - perhaps by
editing it with a text editor. Simply go back in to the
configuration interface using the links below.</li>
</ul>
<p>You can go back into the edit interface using the menu below,
or by clicking <a href="edit-actions-list?f=@f@">here</a>.
</p>
</td>
</tr>
<tr>
<td class="box">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,175 @@
##########################################################
#
# No-Such-Domain Error Output template for Privoxy.
#
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written win plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach this proxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the proxy administrator, as configured
# in the config file
# default-cgi:
# The URL for the "main menu" builtin CGI of this proxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The version number of the proxy software
# code-status:
# The development status of the proxy software: "alpha", "beta",
# or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# this is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Privoxy: Parse error</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
</head>
<body>
<table cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="title">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="warning">
<h2>Parse error</h2>
<p>The file you're trying to edit is not valid. You need to fix
it using a text editor before you can edit it using the
web-based editor.</p>
<p>This error should only occur if you edited the file using a text
editor. If you managed to take a valid file and break it this
badly using the web-based editor, please file a bug report!</p>
<p>When you've fixed the problem, you can go back into the edit
interface using the menu below, or by clicking <a
href="edit-actions-list?f=@f@">here</a>.
</p>
</td>
</tr>
<tr>
<td class="box">
<h2>Problem description:</h2>
<p>@parse-error@</p>
</td>
</tr>
<tr>
<td class="box">
<h2>The line which caused the problem:</h2>
<pre>@line-raw@</pre>
</td>
</tr>
<tr>
<td class="box">
<h2>The line which caused the problem, with comments removed</h2>
<p><code>@line-data@</code></p>
</td>
</tr>
<tr>
<td class="box">
<h2>Note</h2>
<p>Only the first error is reported - the file may contain other
errors, as well as the one reported above.</p>
</td>
</tr>
<tr>
<td class="box">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,149 @@
##############################################################################
#
# File : templates/cgi-style.css
#
# Purpose : Style sheet for the web-based config interface.
#
# Copyright : Written by and Copyright (C) 2001 members of the
# Privoxy team. https://www.privoxy.org/
#
# Original Author: Copyright (C) 2001 Jonathan Foster
# http://www.jon-foster.co.uk/
#
# This program is free software; you can redistribute it
# and/or modify it under the terms of the GNU General
# Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# The GNU General Public License should be included with
# this file. If not, you can view it at
# http://www.gnu.org/copyleft/gpl.html
# or write to the Free Software Foundation, Inc., 59
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
/*
* CSS for Privoxy CGI and script output
*/
/*
* General rules: Font, Color, Headings, Margins, Links
*/
body,td,th { font-family: arial, helvetica, helv, sans-serif; }
body { background-color: #ffffff; color: #000000; }
h1 { font-size: 140%; margin: 0px; }
h2 { font-size: 120%; margin: 0px; }
h3 { font-size: 110%; margin: 0px; }
p,pre { margin-left: 15px; }
li { margin: 2px 15px; }
dl { margin: 2px 15px; }
a:link { color: #0000dd; text-decoration: none; }
a:visited { color: #330099; text-decoration: none; }
a:active { color: #3333ff; text-decoration: none; }
/*
* Boxen as Table elements:
*/
td.title { border: solid black 1px; background-color: #dddddd; }
td.box { border: solid black 1px; background-color: #eeeeee; }
td.info { border: solid black 1px; background-color: #ccccff; }
td.warning { border: solid black 1px; background-color: #ffdddd; }
/*
* Special Table Boxen: for nesting, naked container and for
* the Status field in CGI Output:
*/
td.wrapbox { border: solid black 1px; padding: 5px; }
td.container { padding: 0px; }
td.status { border: solid black 1px; background-color: #ff0000; color: #ffffff; font-size: 300%; font-weight: bolder; }
/*
* Same Boxen as <div>s:
*/
div.title { border: solid black 1px; background-color: #dddddd; margin: 20px; padding: 20px; }
div.box { border: solid black 1px; background-color: #eeeeee; margin: 20px; padding: 20px; }
div.info { border: solid black 1px; background-color: #ccccff; margin: 20px; padding: 20px; }
div.warning { border: solid black 1px; background-color: #ffdddd; margin: 20px; padding: 20px; }
div.wrapbox { border: solid black 1px; margin: 20px; padding: 5px; }
/*
* Bold definitions in <dl>s, grey BG for table headings, transparent (no-bordered) table
*/
dt { font-weight: bold; }
th { background-color: #dddddd; }
table.transparent { border-style: none}
/*
* Special purpose paragraphs: Small for page footers,
* Important for quoting wrong or dangerous examples,
* Whiteframed for the toggle?mini=y CGI
*/
p.small { font-size: 10px; margin: 0px; }
p.important { border: solid black 1px; background-color: #ffdddd; font-weight: bold; padding: 2px; }
p.whiteframed { margin: 5px; padding: 5px; border: solid black 1px; text-align: center; background-color: #eeeeee; }
/*
* Links as buttons:
*/
td.buttons {
padding: 2px;
}
a.cmd, td.indentbuttons a, td.buttons a {
white-space: nowrap;
width: auto;
padding: 2px;
background-color: #dddddd;
color: #000000;
text-decoration: none;
border-top: 1px solid #ffffff;
border-left: 1px solid #ffffff;
border-bottom: 1px solid #000000;
border-right: 1px solid #000000;
}
a.cmd:hover, td.indentbuttons a:hover, td.buttons a:hover {
background-color: #eeeeee;
}
a.cmd:active, td.indentbuttons a:active, td.buttons a:active {
border-top: 1px solid #000000;
border-left: 1px solid #000000;
border-bottom: 1px solid #ffffff;
border-right: 1px solid #ffffff;
}
/*
* Special red emphasis:
*/
em.warning, strong.warning { color: #ff0000 }
/*
* In show-status we use tables directly behind headlines
* and for some reason or another the headlines are set to
* "margin:0" and leave the tables no air to breath.
*
* A proper fix would be to replace or remove the "margin:0",
* but as this affects every cgi page we do it another time
* and use this workaround until then.
*/
.box table { margin-top: 1em; }
/*
* Let the URL and pattern input fields scale with the browser
* width and try to prevent vertical scroll bars if the width
* is less than 80 characters.
*/
input.url, input.pattern { width: 95%; }

View File

@@ -0,0 +1,154 @@
##########################################################
#
# client-tags template for Privoxy.
#
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written win plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach this proxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the proxy administrator, as configured
# in the config file
# default-cgi:
# The URL for the "main menu" builtin CGI of this proxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The version number of the proxy software
# code-status:
# The development status of the proxy software: "alpha", "beta",
# or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
# client-request:
# The request and headers that the client sent.
# processed-request:
# What we would have rewritten this request to, if this had not
# been intercepted.
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# this is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Available client tags - Privoxy@@my-hostname@</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
<!-- @if-tags-expire-start -->
<meta http-equiv="refresh" content="@refresh-delay@">
<!-- if-tags-expire-end@ -->
</head>
<body>
<table cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="title">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="box">
<h2>Available client tags</h2>
<p>
This page shows the configured
<a title="Lookup client-specific-tag directive in the user-manual"
href="@user-manual@config.html#CLIENT-SPECIFIC-TAG">client-specific tags</a>,
and whether or not they are enabled for the address your request came from
(@client-ip-addr@):
</p>
@client-tags@
</td>
</tr>
<tr>
<td class="box">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,155 @@
##########################################################
#
# Connect-Failed Error Output template for Privoxy.
#
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written win plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach this proxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the proxy administrator, as configured
# in the config file
# default-cgi:
# The URL for the "main menu" builtin CGI of this proxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The version number of the proxy software
# code-status:
# The development status of the proxy software: "alpha", "beta",
# or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
#
# host-ip:
# The IP address of the host that could not be reached
# hostport:
# The host and port part of the request that lead to this problem
# path:
# The path part of the request that lead to this problem
#
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# this is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>503 - Connect failed (Privoxy@@my-hostname@)</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
<style type="text/css">
#include cgi-style.css
</style>
</head>
<body>
<table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="status">
503
</td>
<td class="title" style="width: 100%">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning" colspan="2">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="warning" colspan=2>
<h2>Connect failed</h2>
<p>Your request for <a href="@protocol@@hostport@@path@"><b>@protocol@@hostport@@path@</b></a> could
not be fulfilled, because the connection to <b>@host@</b> (@host-ip@) could not be established.
</p>
<p>This is often a temporary failure, so you might just
<a href="@protocol@@hostport@@path@">try again</a>.
</p>
</td>
</tr>
<tr>
<td class="box" colspan="2">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info" colspan="2">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info" colspan="2">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,86 @@
##########################################################
#
# connection-timeout Error Output template for Privoxy.
#
##########################################################
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>504 - Connection timeout (Privoxy@@my-hostname@)</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
<style type="text/css">
#include cgi-style.css
</style>
</head>
<body>
<table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="status">
504
</td>
<td class="title" style="width: 100%">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning" colspan="2">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="warning" colspan=2>
<h2>Connection timeout</h2>
<p>Your request for <a href="@protocol@@hostport@@path@"><b>@protocol@@hostport@@path@</b></a>
could not be fulfilled, because the connection to <b>@host@</b> (@host-ip@) timed out.
</p>
<p>This is often a temporary failure, so you might just
<a href="@protocol@@hostport@@path@">try again</a>.
</p>
</td>
</tr>
<tr>
<td class="box" colspan="2">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info" colspan="2">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info" colspan="2">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

130
privoxy/templates/default Normal file
View File

@@ -0,0 +1,130 @@
##########################################################
#
# Default-CGI Output template for Privoxy.
#
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written win plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach this proxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the proxy administrator, as configured
# in the config file
# default-cgi:
# The URL for the "main menu" builtin CGI of this proxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The version number of the proxy software
# code-status:
# The development status of the proxy software: "alpha", "beta",
# or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# this is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Privoxy@@my-hostname@</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
</head>
<body>
<table cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="title">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="box">
<h2>Privoxy Menu:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,147 @@
##############################################################################
#
# File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-add-url-form,v $
#
# Purpose : Template used to add a URL pattern to the actions file.
#
#
# Copyright : Written by and Copyright (C) 2001 members of the
# Privoxy team. https://www.privoxy.org/
#
# Original Author: Copyright (C) 2001 Jonathan Foster
# http://www.jon-foster.co.uk/
#
# This program is free software; you can redistribute it
# and/or modify it under the terms of the GNU General
# Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# The GNU General Public License should be included with
# this file. If not, you can view it at
# http://www.gnu.org/copyleft/gpl.html
# or write to the Free Software Foundation, Inc., 59
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
#
# Standard support:
#
# This file currently produces valid HTML 4.01 Strict.
#
# If you change it, please save the generated page from your web browser
# and then upload it to http://validator.w3.org/ for checking.
#
#############################################################################
#
# Available variables include:
#
# filename
# ver
# section
#
#############################################################################
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
<title>Privoxy@@my-hostname@: Add URL Pattern</title>
<script type="text/javascript">
<!--
function validate(text)
{
if (text=="")
{
alert("You need to type a pattern in order to continue!");
return false;
}
return true;
}
//-->
</script>
</head>
<body>
<table cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="title">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="box">
<h2>Add URL or TAG Pattern</h2>
<form method="GET" action="edit-actions-add-url"
onSubmit="return validate(u.value);">
<p>
<input type="hidden" name="f" value="@f@">
<input type="hidden" name="v" value="@v@">
<input type="hidden" name="s" value="@s@">
<input type="text" name="u" value="" size="78" class="pattern"><br>
<input type="submit" value="Submit"> &nbsp;
<input type="reset" value="Reset"> &nbsp;
<a class="cmd" href="edit-actions-list?f=@f@#l@s@">Cancel</a>
</p>
</form>
</td>
</tr>
<tr>
<td class="box">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,30 @@
##############################################################################
#
# File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-for-url-filter,v $
#
# Purpose : Template that is included from most of Privoxy's CGI pages
# to show the user how to get help or report problems.
#
#
# Copyright : Written by and Copyright (C) 2002-2007 members of
# members of the Privoxy team. https://www.privoxy.org/
#
# This template is free software; you can redistribute it
# and/or modify it under the terms of the GNU General
# Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at
# your option) any later version.
#
##############################################################################
<tr class="bg1" align="left" valign="top">
<td class="en1" align="center" valign="middle"><input type="radio" name="filter_r@index@" value="Y" @this-filter-y@></td>
<td class="dis1" align="center" valign="middle"><input type="radio" name="filter_r@index@" value="N" @this-filter-n@></td>
<td class="noc1" align="center" valign="middle"><input type="radio" name="filter_r@index@" value="X" @this-filter-x@></td>
<td class="action">
<input type="hidden" name="filter_t@index@" value="@abbr-action-type@">
<input type="hidden" name="filter_n@index@" value="@name@">
<a href="@user-manual@@actions-help-prefix@@anchor@">@filter-type@</a> @name@
</td>
<td>@description@</td>
</tr>

View File

@@ -0,0 +1,40 @@
##############################################################################
#
# File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-for-url-filter,v $
#
# Purpose : Template that is included from most of Privoxy's CGI pages
# to show the user how to get help or report problems.
#
#
# Copyright : Written by and Copyright (C) 2002-2007 members of
# members of the Privoxy team. https://www.privoxy.org/
#
# This template is free software; you can redistribute it
# and/or modify it under the terms of the GNU General
# Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at
# your option) any later version.
#
##############################################################################
<tr class="bg1" align="left" valign="top">
<td class="en1" align="center" valign="middle"><input type="radio" name="string_action_@abbr-action-type@_r@index@" value="Y" @this-filter-y@></td>
<td class="dis1" align="center" valign="middle"><input type="radio" name="string_action_@abbr-action-type@_r@index@" value="N" @this-filter-n@></td>
<td class="noc1" align="center" valign="middle"><input type="radio" name="string_action_@abbr-action-type@_r@index@" value="X"></td>
<td class="action">
<input type="hidden" name="string_action_@abbr-action-type@_t@index@" value="@abbr-action-type@">
<input type="hidden" name="string_action_@abbr-action-type@_c@index@" value="@code@">
<input type="hidden" name="string_action_@abbr-action-type@_o@index@" value="@name@">
<a href="@user-manual@@actions-help-prefix@@anchor@">@filter-type@</a> @name@
</td>
<td>@desc@.</td>
</tr>
<tr class="bg1" align="left" valign="top" id="string_action_@abbr-action-type@_@index@_opts">
<td class="en1">&nbsp;</td>
<td class="dis1">&nbsp;</td>
<td class="noc1">&nbsp;</td>
<td>&nbsp;</td>
<td>@input_desc@:<br>
<input type="text" name="string_action_@abbr-action-type@_n@index@" size="40" value="@name@">
</td>
</tr>

View File

@@ -0,0 +1,279 @@
##############################################################################
#
# File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-list,v $
#
# Purpose : Template used to edit the actions file.
#
#
# Copyright : Written by and Copyright (C) 2001-2009 the
# Privoxy team. https://www.privoxy.org/
#
# Original Author: Copyright (C) 2001 Jonathan Foster
# http://www.jon-foster.co.uk/
#
# This program is free software; you can redistribute it
# and/or modify it under the terms of the GNU General
# Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# The GNU General Public License should be included with
# this file. If not, you can view it at
# http://www.gnu.org/copyleft/gpl.html
# or write to the Free Software Foundation, Inc., 59
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
#
# Browser support for the CSS on this page:
# MS Internet Explorer 5.5 - Yes - everything works.
# Netscape 6.2 - Yes - everything works.
# Netscape 4.75 - No - CSS buttons look really bad, but they are
# usable. Everything else works.
# Opera 5.12 - Yes - everything works.
# MS Internet Explorer 4+ - Untested
# MS IE 3.x, NS3.x - Untested (Don't support CSS, so everything
# should work, but will look ugly).
# Mozilla >=0.6 - Yes - everything works.
#
# All browsers should work, you just might not get the pretty CSS buttons.
#
# If your favorite browser isn't listed/tested, please test and add it.
#
#
#############################################################################
#
# Standard support:
#
# This file currently produces valid HTML 4.01 Strict.
#
# If you change it, please save the generated page from your web browser
# and then upload it to http://validator.w3.org/ for checking.
#
#############################################################################
#
# Available variables include:
#
# filename
# ver
#
#
#############################################################################
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
<title>Privoxy: Edit actions file @actions-file@</title>
<style type="text/css">
table.framed {
border: solid black 1px;
margin: 10px 0px;
}
tr.actions {
background-color: #eeffee;
}
tr.url {
background-color: #ddddff;
}
tr.adv {
background-color: #FFFFD0;
}
td.header {
font-weight: bold;
font-size: 110%;
padding: 10px 15px 2px 15px;
}
td.url {
font-weight: bold;
}
td.action {
font-weight: bold;
font-style: italic;
padding: 2px 30px;
}
td.nbr, td.buttons {
white-space: nowrap;
}
td.indentbuttons {
padding: 2px 30px;
}
</style>
<script type="text/javascript">
<!--
// Non-JS capable browsers will follow the link to a HTML "are you sure?" page
// JavaScript-capable browsers will call this function, which does a
// client-side prompt for speed. It may kick off the delete directly.
// It always returns false to cancel following the link.
function rm_p(link,pattern,curtext)
{
if (window.confirm("Are you sure you want to delete this URL pattern?\nPattern is: "+unescape(curtext)))
{
link.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern;
return true;
}
return false;
}
function e_p(link,pattern,curtext)
{
if ((newtext=window.prompt("Edit the pattern to your needs:", unescape(curtext))) != null)
{
if (newtext != "")
{ link.href="edit-actions-url?f=@f@&v=@v@&p="+pattern+"&u="+encodeURIComponent(newtext); }
else
{ link.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern; }
return true;
}
return false;
}
function a_p(link,section)
{
if (((newtext=window.prompt("Enter the new pattern:", "")) != null ) && (newtext != ""))
{
link.href="edit-actions-add-url?f=@f@&v=@v@&s="+section+"&u="+encodeURIComponent(newtext);
return true;
}
return false;
}
//-->
</script>
</head>
<body>
<table cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="title">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="info">
<h2>What is all this?</h2>
<p>
If you haven't already done so, it is <b>strongly recommended</b> that you at
least skim <a href="@user-manual@@actions-help-prefix@ACTIONS-FILE">the
chapter on actions files</a> in the <a href="@user-manual@">User Manual</a>
before making any changes. You will also find a comprehensive list of
all available actions there, as well how the settings on this page
work.
</p>
<!-- @if-all-urls-present-then@ -->
<p>
Please note that <b>the first section has special importance</b>. It sets the default actions for
all URLs. The resulting actions for a particular URL may differ from these defaults if that
URL matches again further down, but this section is largely responsible for your browsing
experience. Edit manually with great care, or choose from the predefined sets of actions.
</p>
<!-- @else-not-all-urls-present@@endif-all-urls-present@ -->
<!-- @if-default-action-then@ -->
<p>
This is the default action file. Updates for it are available from
<a href="https://www.privoxy.org/">Privoxy.org</a> from time to time.
It is therefore <b>not recommended</b> that you add your private
rules here, since they will be lost if you install an update in the future.
Put your rules in a separate actions file, like <tt>user.action</tt> instead.
</p>
<!-- @else-not-default-action@@endif-default-action@ -->
</td>
</tr>
<tr>
<td class="box">
<div class="buttons">
<h2>Editing Actions File @actions-file@</h2>
<!-- @if-all-urls-present-then@@else-not-all-urls-present@ -->
<p><a class="cmd" href="edit-actions-section-add?f=@f@&amp;v=@v@&amp;s=0">Insert new section at top</a></p>
<!-- @endif-all-urls-present@ -->
</div>
</td>
</tr>
<!-- @if-all-urls-present-then@ -->
<tr>
<td class="container"><a name="l@all-urls-s@"></a>
<table border="0" width="100%" cellspacing="2" cellpadding="3" class="framed">
<tr class="actions"><td class="header"><a href="@user-manual@@actions-help-prefix@ACTIONS">Actions</a>:</td></tr>
<tr class="actions">
<td class="indentbuttons">
<a href="eafu?f=@f@&amp;v=@v@&amp;s=@all-urls-s@">Edit</a>
@all-urls-buttons@
</td>
</tr>
<tr class="actions"><td class="action">@all-urls-actions@</td></tr>
<tr class="url"><td class="header"><a href="@user-manual@@actions-help-prefix@AF-PATTERNS">URL patterns</a>:</td></tr>
<tr class="url"><td class="indentbuttons">/ &nbsp; <i>(Matches all requests)</a></td></tr>
<tr class="adv"><td class="header">Advanced:</td></tr>
<tr class="adv">
<td class="indentbuttons">
<a href="easa?f=@f@&amp;v=@v@&amp;s=@all-urls-s@#l@all-urls-s-next@">Insert new section below</a>
</td>
</tr>
</table>
</td>
</tr>
<!-- @else-not-all-urls-present@@endif-all-urls-present@ -->
@sections@
<tr>
<td class="box">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,33 @@
##############################################################################
#
# File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-list-button,v $
#
# Purpose : Template which forms part of edit-actions-list
#
#
# Copyright : Written by and Copyright (C) 2001 members of the
# Privoxy team. https://www.privoxy.org/
#
# Original Author: Copyright (C) 2001 Jonathan Foster
# http://www.jon-foster.co.uk/
#
# This program is free software; you can redistribute it
# and/or modify it under the terms of the GNU General
# Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# The GNU General Public License should be included with
# this file. If not, you can view it at
# http://www.gnu.org/copyleft/gpl.html
# or write to the Free Software Foundation, Inc., 59
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#############################################################################
&nbsp; <a href="eas?f=@f@&amp;v=@v@&amp;s=@all-urls-s@&amp;p=@button-name@#l@all-urls-s@">Set to @button-name@</a>

View File

@@ -0,0 +1,67 @@
##############################################################################
#
# File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-list-section,v $
#
# Purpose : Template which forms part of edit-actions-list
#
#
# Copyright : Written by and Copyright (C) 2001 members of the
# Privoxy team. https://www.privoxy.org/
#
# Original Author: Copyright (C) 2001 Jonathan Foster
# http://www.jon-foster.co.uk/
#
# This program is free software; you can redistribute it
# and/or modify it under the terms of the GNU General
# Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# The GNU General Public License should be included with
# this file. If not, you can view it at
# http://www.gnu.org/copyleft/gpl.html
# or write to the Free Software Foundation, Inc., 59
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#############################################################################
#
# Available variables include:
#
# filename
# ver
# sectionid
# urls
#
#############################################################################
#
# ** Important note: **
#
# It is important to keep this file small. That's why all the
# identifiers in the HTML are short and cryptic. Currently, the main
# edit-actions page is ~300k. Before it was optimized, it was ~550k.
#
#############################################################################
<tr><td class="container"><a name="l@s@"></a>
<table border="0" width="100%" cellspacing="2" cellpadding="3" class="framed">
<tr class="actions"><td class="header"><a href="@user-manual@@actions-help-prefix@ACTIONS">Actions</a>:</td></tr>
<tr class="actions"><td class="indentbuttons"><a href="eafu?f=@f@&amp;v=@v@&amp;s=@s@">Edit</a></td></tr>
<tr class="actions"><td class="action">@actions@</td></tr>
<tr class="url"><td class="header"><a href="@user-manual@@actions-help-prefix@AF-PATTERNS">URL patterns</a>:</td></tr>
<tr class="url"><td class="indentbuttons"><a href="eaa?f=@f@&amp;v=@v@&amp;s=@s@" onclick="return a_p(this,@s@);">Add</a></td></tr>
@urls@
<tr class="adv"><td class="header">Advanced:</td></tr>
<tr class="adv"><td class="indentbuttons">
@if-s-prev-exists-start@<a href="eass?f=@f@&amp;v=@v@&amp;s1=@s-prev@&amp;s2=@s@#l@s-prev@">Move section up</a> &nbsp; @if-s-prev-exists-end@
@if-s-next-exists-start@<a href="eass?f=@f@&amp;v=@v@&amp;s1=@s@&amp;s2=@s-next@#l@s@">Move section down</a> &nbsp; @if-s-next-exists-end@
<a href="easa?f=@f@&amp;v=@v@&amp;s=@s@#l@s-next@">Insert new section below</a>
@if-empty-section-start@ &nbsp; <a href="easr?f=@f@&amp;v=@v@&amp;s=@s@#l@s@">Delete whole section</a>@if-empty-section-end@
</td></tr>
</table>
</td></tr>

View File

@@ -0,0 +1,54 @@
##############################################################################
#
# File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-list-url,v $
#
# Purpose : Template which forms part of edit-actions-list
#
#
# Copyright : Written by and Copyright (C) 2001 members of the
# Privoxy team. https://www.privoxy.org/
#
# Original Author: Copyright (C) 2001 Jonathan Foster
# http://www.jon-foster.co.uk/
#
# This program is free software; you can redistribute it
# and/or modify it under the terms of the GNU General
# Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# The GNU General Public License should be included with
# this file. If not, you can view it at
# http://www.gnu.org/copyleft/gpl.html
# or write to the Free Software Foundation, Inc., 59
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#############################################################################
#
# Available variables include:
#
# filename
# ver
# sectionid
# urls
#
#############################################################################
#
# ** Important note: **
#
# It is *extremely* important to keep this file small. That's why all the
# identifiers in the HTML are short and cryptic. Currently, the main
# edit-actions page is ~300k. Before it was optimized, it was ~550k.
#
#############################################################################
<tr class="url" valign="top">
<td class="indentbuttons"><a name="l@p@"
href="ear?f=@f@&amp;v=@v@&amp;p=@p@" onclick="return rm_p(this, @p@,'@url@');">Remove</a>&nbsp;&nbsp;&nbsp;<a
href="eau?f=@f@&amp;v=@v@&amp;p=@p@" onclick="return e_p(this, @p@,'@url@');">Edit</a>&nbsp; @url-html@</td>
</tr>

View File

@@ -0,0 +1,132 @@
##############################################################################
#
# File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-remove-url-form,v $
#
# Purpose : Template used to confirm removal of a particular URL
# pattern from an actions file. Only used on browsers that
# don't support JavaScript.
#
#
# Copyright : Written by and Copyright (C) 2001 members of the
# Privoxy team. https://www.privoxy.org/
#
# Original Author: Copyright (C) 2001 Jonathan Foster
# http://www.jon-foster.co.uk/
#
# This program is free software; you can redistribute it
# and/or modify it under the terms of the GNU General
# Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# The GNU General Public License should be included with
# this file. If not, you can view it at
# http://www.gnu.org/copyleft/gpl.html
# or write to the Free Software Foundation, Inc., 59
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
#
# Standard support:
#
# This file currently produces valid HTML 4.01 Strict.
#
# If you change it, please save the generated page from your web browser
# and then upload it to http://validator.w3.org/ for checking.
#
#############################################################################
#
# Available variables include:
#
# filename
# ver
# section
# pattern
# oldval
# jumptarget - append to eal URL to jump to relevant section
#
#############################################################################
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
<title>Privoxy@@my-hostname@: Remove URL Pattern</title>
</head>
<body>
<table cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="title">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="box">
<h2>Remove URL Pattern</h2>
<p>Are you sure you want to delete this URL pattern? The pattern is:</p>
<p class="important">@u@</p>
<p>
<a class="cmd" href="edit-actions-remove-url?f=@f@&amp;v=@v@&amp;p=@p@">OK</a>
&nbsp;
<a class="cmd" href="edit-actions-list?f=@f@@jumptarget@">Cancel</a>
</p>
</td>
</tr>
<tr>
<td class="box">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,150 @@
##############################################################################
#
# File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-url-form,v $
#
# Purpose : Template used to edit a URL pattern in an actions file.
#
#
# Copyright : Written by and Copyright (C) 2001 members of the
# Privoxy team. https://www.privoxy.org/
#
# Original Author: Copyright (C) 2001 Jonathan Foster
# http://www.jon-foster.co.uk/
#
# This program is free software; you can redistribute it
# and/or modify it under the terms of the GNU General
# Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# The GNU General Public License should be included with
# this file. If not, you can view it at
# http://www.gnu.org/copyleft/gpl.html
# or write to the Free Software Foundation, Inc., 59
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
#
# Standard support:
#
# This file currently produces valid HTML 4.01 Strict.
#
# If you change it, please save the generated page from your web browser
# and then upload it to http://validator.w3.org/ for checking.
#
#############################################################################
#
# Available variables include:
#
# f - filename
# v - version
# s - section
# p - pattern
# u - old value of URL
# jumptarget - append to eal URL to jump to relevant section
#
#############################################################################
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@favicon.ico">
<title>Privoxy@@my-hostname@: Edit URL Pattern</title>
<script type="text/javascript">
<!--
function validate(text)
{
if (text=="")
{
alert("You need to type a pattern in order to continue!");
return false;
}
return true;
}
//-->
</script>
</head>
<body>
<table cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="title">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="box">
<h2>Edit URL or TAG Pattern</h2>
<form method="GET" action="edit-actions-url"
onSubmit="return validate(u.value);">
<p>
<input type="hidden" name="f" value="@f@">
<input type="hidden" name="v" value="@v@">
<input type="hidden" name="p" value="@p@">
<input type="text" name="u" value="@u@" size="78" class="pattern"><br>
<input type="submit" value="Submit"> &nbsp;
<input type="reset" value="Reset"> &nbsp;
<a class="cmd" href="edit-actions-list?f=@f@@jumptarget@">Cancel</a>
</p>
</form>
</td>
</tr>
<tr>
<td class="box">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,166 @@
##########################################################
#
# Forwarding-failed template for Privoxy.
#
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written in plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach this proxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the proxy administrator, as configured
# in the config file
# default-cgi:
# The URL for the "main menu" builtin CGI of this proxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The version number of the proxy software
# code-status:
# The development status of the proxy software: "alpha", "beta",
# or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
#
# gateway
# The IP or hostname of the forwarding server
# hostport:
# The host and port part of the request that lead to this problem
# path:
# The path part of the request that lead to this problem
# error-message:
# The failure reason.
# forwarding-type:
# The type of the forwarding request: "socks4-", "socks4a-"
# or (in the future) "" for direct connections to the forwarder.
#
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# this is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>503 - Forwarding failure (Privoxy@@my-hostname@)</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
<style type="text/css">
#include cgi-style.css
</style>
</head>
<body>
<table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="status">
503
</td>
<td class="title" style="width: 100%">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning" colspan="2">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="warning" colspan=2>
<h2>Forwarding failure</h2>
<p>Privoxy was unable to <b>@forwarding-type@forward</b> your request
<a title="Repeat the request"
href="@protocol@@hostport@@path@"><b>@protocol@@hostport@@path@</b></a>
through <b>@gateway@</b>:
<strong>@error-message@</strong></p>
</p>
<p>Just <a title="Repeat the request" href="@protocol@@hostport@@path@">try again</a> to
see if this is a temporary problem, or check your <a title="Privoxy's show-status page"
href="@default-cgi@show-status">forwarding settings</a>
and make sure that all forwarding servers are working correctly and
listening where they are supposed to be listening.
</p>
</td>
</tr>
<tr>
<td class="box" colspan="2">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info" colspan="2">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info" colspan="2">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,12 @@
<h2>Local Privoxy support:</h2>
<!-- @if-have-proxy-info-start -->
<p>You can consult the <a href="@proxy-info-url@">online documentation</a> for more information about this Privoxy installation.</p>
<!-- if-have-proxy-info-end@ -->
<!-- @if-have-adminaddr-info-start -->
<p>Address e-mail questions about this Privoxy installation to
<a href="mailto:@admin-address@"><code>@admin-address@</code></a>,
who will be glad to help you.
</p>
<!-- if-have-adminaddr-info-end@ -->

View File

@@ -0,0 +1,33 @@
##############################################################################
#
# File : $Source: /cvsroot/ijbswa/current/templates/mod-support-and-service,v $
#
# Purpose : Template that is included from most of Privoxy's CGI pages
# to show the user how to get help or report problems.
#
#
# Copyright : Written by and Copyright (C) 2002-2009 members of
# the Privoxy team. https://www.privoxy.org/
#
# This template is free software; you can redistribute it
# and/or modify it under the terms of the GNU General
# Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at
# your option) any later version.
#
##############################################################################
# This template should be kept in sync with the "blocked" template
# whose JavaScript version duplicates the content.
<h2>Support and Service:</h2>
<p>
The Privoxy Team values your feedback.
</p>
<p>
Please have a look at the User Manual to learn how to
<a title="Privoxy User Manual: Contacting the developers, Bug Reporting and Feature Requests"
href="@user-manual@contact.html">get support or report problems</a>.
<p>
If you want to support the Privoxy Team, you can
<a href="https://www.privoxy.org/participate">participate</a>
or <a href="https://www.privoxy.org/donate">donate</a>.
</p>

View File

@@ -0,0 +1,4 @@
<h1>
This is <a href="@homepage@">Privoxy</a> @version@ on @my-hostname@ (@my-ip-address@), port @my-port@<!-- @if-can-toggle-start -->,
@if-enabled-display-then@enabled@else-not-enabled-display@disabled@endif-enabled-display@<!-- if-can-toggle-end@ -->
</h1>

View File

@@ -0,0 +1,7 @@
<h2>Warning:</h2>
<p>
<strong>This Privoxy version is based on <em class="warning">@code-status@</em> code and
not intended for production systems!
<br>Use at your own risk. See the <a title="GNU General Public License version 2"
href="@user-manual@copyright.html">license</a> for details.</strong>
</p>

View File

@@ -0,0 +1,95 @@
##########################################################
#
# no-server-data Error Output template for Privoxy.
#
##########################################################
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>502 - No server or forwarder data received (Privoxy@@my-hostname@)</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
<style type="text/css">
#include cgi-style.css
</style>
</head>
<body>
<table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="status">
502
</td>
<td class="title" style="width: 100%">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning" colspan="2">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="warning" colspan=2>
<h2>No server or forwarder data received</h2>
<p>Your request for <a href="@protocol@@hostport@@path@"><b>@protocol@@hostport@@path@</b></a>
could not be fulfilled, because the connection to <b>@host@</b> (@host-ip@) has been closed
before Privoxy received any data for this request.
</p>
<p>This is often a temporary failure, so you might just
<a href="@protocol@@hostport@@path@">try again</a>.
</p>
<p>
If you get this message very often, consider disabling
<a href="@user-manual@config.html#CONNECTION-SHARING">connection-sharing</a>
(which should be off by default). If that doesn't help, you may have to additionally
disable support for connection keep-alive by setting
<a href="@user-manual@config.html#KEEP-ALIVE-TIMEOUT">keep-alive-timeout</a>
to 0.
</p>
</td>
</tr>
<tr>
<td class="box" colspan="2">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info" colspan="2">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info" colspan="2">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,157 @@
##########################################################
#
# No-Such-Domain Error Output template for Privoxy.
#
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written win plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach this proxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the proxy's administrator, as configured
# in the 'config' file
# default-cgi:
# The URL for the "main menu" builtin CGI of this proxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The version number of the proxy software
# code-status:
# The development status of the proxy software: "alpha", "beta",
# or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
#
# host:
# The host part of the request that lead to this problem
# hostport:
# The host and port part of the request that lead to this problem
# path:
# The path part of the request that lead to this problem
# proxy-info-url:
# The URL to local online Privoxy documentation, if define in the
# 'config' file
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# this is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>404 - No such Domain (Privoxy@@my-hostname@)</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
<style type="text/css">
#include cgi-style.css
</style>
</head>
<body>
<table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="status">
404
</td>
<td class="title" style="width: 100%">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning" colspan="2">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="warning" colspan="2">
<h2>No such domain</h2>
<p>Your request for <a href="@protocol@@hostport@@path@"><b>@protocol@@hostport@@path@</b></a>
could not be fulfilled, because the domain name <b>@host@</b> could not be resolved.
</p>
<p>This is often a temporary failure, so you might just
<a href="@protocol@@hostport@@path@">try again</a>.
</p>
</td>
</tr>
<tr>
<td class="box" colspan="2">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info" colspan="2">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info" colspan="2">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,153 @@
##########################################################
#
# Show-Request-CGI Output template for Privoxy.
#
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written win plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach this proxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the proxy administrator, as configured
# in the config file
# default-cgi:
# The URL for the "main menu" builtin CGI of this proxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The version number of the proxy software
# code-status:
# The development status of the proxy software: "alpha", "beta",
# or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
# client-request:
# The request and headers that the client sent.
# processed-request:
# What we would have rewritten this request to, if this had not
# been intercepted.
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# this is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Privoxy@@my-hostname@</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
</head>
<body>
<table cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="title">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="box">
<h2>Show-Request</h2>
<p>
Here you see the original headers that your client sent when requesting this page, along with
the headers that Privoxy would have sent to the remote server if this request hadn't been
intercepted.
</p>
<h3>Original Client Request:</h3>
<pre>@client-request@</pre>
<h3>Processed Request:</h3>
<pre>@processed-request@</pre>
</td>
</tr>
<tr>
<td class="box">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,436 @@
##########################################################
#
# Show-Status-CGI Output template for Privoxy.
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written win plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach Privoxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the Privoxy administrator, as configured
# in the config file
# default-cgi:
# The URL for the "main menu" builtin CGI of Privoxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The Privoxy version number
# code-status:
# The Privoxy development status: "alpha", "beta", or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
#
# invocation:
# The command line with which Privoxy was invoked
# options:
# The options read from the configfile, linked to their
# explanations, plus warnings if parsing acl or forward
# statements produced errors.
# defines:
# A HTML-formatted list of all conditional #defines used when
# Privoxy was compiled
#
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# This is an alpha or beta Privoxy release
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for Privoxy's online documentation has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
# statistics:
# Privoxy was compiled with statistics support
# have-stats:
# There have been previous requests and statistics have
# been collected. In this case, the following symbols
# are available:
# requests-received:
# The number of requests received so far
# requests-blocked:
# The number of request blocked so far
# percent-blocked:
# The percentage of blocked requests
# have-no-stats:
# There haven't any statistics been collected yet
# extended-statistics:
# Privoxy was compiled with extended statistiscs support.
# In this case the following symbols are available:
# block-reason-statistics:
# Table content of block reasons and how often they were used.
# filter-statistics:
# Table content of content filter statistics.
# trust-support:
# Privoxy was compiled with trust support
# actions-filenames:
# The path to the actions files.
# re-filter-filenames:
# The path to the re_filter files.
# trust-filename:
# The path to the trust file. Only available if
# trust-support is set
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Privoxy@@my-hostname@: Proxy Status</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
</head>
<body>
<table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="title">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="box">
<h2>The following files are in use:</h2>
<table summary="Action, filter and trust files in use." class="transparent">
<tr>
<th colspan="2"><a href="@user-manual@@actions-help-prefix@ACTIONS-FILE">Actions Files:</a></th>
</tr>
@actions-filenames@
<tr>
<th colspan="2"><a href="@user-manual@filter-file.html">Filter Files:</a></th>
</tr>
@re-filter-filenames@
<!-- @if-trust-support-start -->
<tr>
<th colspan="2"><a href="@user-manual@config.html#TRUSTFILE">Trust File:</a></th>
</tr>
<tr>
<td>
@trust-filename@
</td>
<td class="buttons">
<!-- @if-have-trustfile-start -->
<a href="show-status?file=trust">View</a>
<!-- if-have-trustfile-end@ -->
</td>
</tr>
<!-- if-trust-support-end@ -->
</table>
<!-- @if-cgi-editor-is-disabled-start -->
<p>
The CGI editor is currently disabled, thus no edit buttons are shown.<br>
Please have a look at the
<a href="@user-manual@config.html#ENABLE-EDIT-ACTIONS">enable-edit-actions documentation</a>
to learn how to enable it and what the risks are.
</p>
<!-- if-cgi-editor-is-disabled-end@ -->
</td>
</tr>
<tr>
<td class="box">
<h2>Privoxy was <a href="@user-manual@startup.html#CMDOPTIONS">invoked</a> as follows:</h2>
<p>@invocation@</p>
</td>
</tr>
<tr>
<td class="box">
<h2>The following options were given in the <a href="@user-manual@config.html">config file</a>:</h2>
<p>@options@</p>
</td>
</tr>
<!-- @if-statistics-start -->
<tr>
<td class="box">
<h2>Blocking Statistics:</h2>
<p>
<!-- @if-have-stats-start -->
@requests-blocked@ out of @requests-received@ requests have been blocked,
which equals a block rate of @percent-blocked@%.
</p>
<p>
<strong>Note that the statistics currently don't work properly for
reused connections where only the last request gets counted.
You may want to look into Privoxy-Log-Parser's --statistics option,
which doesn't have this limitation.</strong>
<!-- if-have-stats-end@ -->
<!-- @if-have-no-stats-start -->
There haven't been any requests so far.
<!-- if-have-no-stats-end@ -->
</p>
</td>
</tr>
<!-- if-statistics-end@ -->
<!-- @if-extended-statistics-start -->
<tr>
<td class="box">
<h2>Block Reason Statistics:</h2>
<table summary="Statistics for block reasons" border="1">
<tr><th>Block reason</th><th>Count</th></tr>
@block-reason-statistics@ </table>
</td>
</tr>
<tr>
<td class="box">
<h2>Content Filter Statistics:</h2>
<table summary="Statistics for content filters" border="1">
<tr><th>Filter name</th><th>Executions</th><th>Response bodies modified</th><th>Hits</th></tr>
@filter-statistics@ </table>
</td>
</tr>
<!-- if-extended-statistics-end@ -->
<tr>
<td class="box">
<h2>Conditional #defines:</h2>
<table summary="The state of some ./configure options and what they do." border="1" style="margin-left: 10px">
<tr>
<th>#define</th> <th>Enabled?</th> <th>Effects when enabled</th>
</tr>
<tr>
<td><code>FEATURE_64_BIT_TIME_T</code></td>
<td>@if-FEATURE_64_BIT_TIME_T-then@ Yes @else-not-FEATURE_64_BIT_TIME_T@ No @endif-FEATURE_64_BIT_TIME_T@</td>
<td>Dates before 1970 and after 2038 are (hopefully) supported.</td>
</tr>
<tr>
<td><code>FEATURE_ACCEPT_FILTER</code></td>
<td>@if-FEATURE_ACCEPT_FILTER-then@ Yes @else-not-FEATURE_ACCEPT_FILTER@ No @endif-FEATURE_ACCEPT_FILTER@</td>
<td>Support for FreeBSD's accf_http(9) which is also available on some other BSDs.</td>
</tr>
<tr>
<td><code>FEATURE_ACL</code></td>
<td>@if-FEATURE_ACL-then@ Yes @else-not-FEATURE_ACL@ No @endif-FEATURE_ACL@</td>
<td>Allows the use of an ACL to control access to Privoxy by IP address.</td>
</tr>
<tr>
<td><code>FEATURE_BROTLI</code></td>
<td>@if-FEATURE_BROTLI-then@ Yes @else-not-FEATURE_BROTLI@ No @endif-FEATURE_BROTLI@</td>
<td>Allows to decompress content with Brotli before filtering it. Requires external brotli library.</td>
</tr>
<tr>
<td><code>FEATURE_CGI_EDIT_ACTIONS</code></td>
<td>@if-FEATURE_CGI_EDIT_ACTIONS-then@ Yes @else-not-FEATURE_CGI_EDIT_ACTIONS@ No @endif-FEATURE_CGI_EDIT_ACTIONS@</td>
<td>Allows the use of the @if-FEATURE_CGI_EDIT_ACTIONS-then@<a
href="@default-cgi@edit-actions">@else-not-FEATURE_CGI_EDIT_ACTIONS@
@endif-FEATURE_CGI_EDIT_ACTIONS@web-based actions file
editor@if-FEATURE_CGI_EDIT_ACTIONS-then@</a>@else-not-FEATURE_CGI_EDIT_ACTIONS@@endif-FEATURE_CGI_EDIT_ACTIONS@.</td>
</tr>
<tr>
<td><code>FEATURE_CLIENT_TAGS</code></td>
<td>@if-FEATURE_CLIENT_TAGS-then@ Yes @else-not-FEATURE_CLIENT_TAGS@ No @endif-FEATURE_CLIENT_TAGS@</td>
<td>
Allows clients to request to be tagged.
</td>
</tr>
<tr>
<td><code>FEATURE_COMPRESSION</code></td>
<td>@if-FEATURE_COMPRESSION-then@ Yes @else-not-FEATURE_COMPRESSION@ No @endif-FEATURE_COMPRESSION@</td>
<td>
Allows to compress buffered content before sending it to the client, assuming the client supports it.
</td>
</tr>
<tr>
<td><code>FEATURE_CONNECTION_KEEP_ALIVE</code></td>
<td>@if-FEATURE_CONNECTION_KEEP_ALIVE-then@ Yes @else-not-FEATURE_CONNECTION_KEEP_ALIVE@ No @endif-FEATURE_CONNECTION_KEEP_ALIVE@</td>
<td>
Allows to send multiple request through the same connections if the server supports it.
Requires the keep-alive-timeout config directive to be set.
</td>
</tr>
<tr>
<td><code>FEATURE_CONNECTION_SHARING</code></td>
<td>@if-FEATURE_CONNECTION_SHARING-then@ Yes @else-not-FEATURE_CONNECTION_SHARING@ No @endif-FEATURE_CONNECTION_SHARING@</td>
<td>
Allows to share outgoing connections between incoming connections.
Requires the connection-sharing config directive to be set.
</td>
</tr>
<tr>
<td><code>FEATURE_DYNAMIC_PCRE</code></td>
<td>@if-FEATURE_DYNAMIC_PCRE-then@ Yes @else-not-FEATURE_DYNAMIC_PCRE@ No @endif-FEATURE_DYNAMIC_PCRE@</td>
<td>Dynamically link to the PCRE library. This is set automatically
by <code>./configure</code> if you do not have libpcre installed.
Dynamically linking to an external libpcre is recommended as the one that is distributed
with Privoxy itself is outdated and lacks various features and bug-fixes you may be interested in.</td>
</tr>
<tr>
<td><code>FEATURE_EXTENDED_STATISTICS</code></td>
<td>@if-FEATURE_EXTENDED_STATISTICS-then@ Yes @else-not-FEATURE_EXTENDED_STATISTICS@ No @endif-FEATURE_EXTENDED_STATISTICS@</td>
<td>Gather statistics for block reasons and filter executions.</td>
</tr>
<tr>
<td><code>FEATURE_EXTERNAL_FILTERS</code></td>
<td>@if-FEATURE_EXTERNAL_FILTERS-then@ Yes @else-not-FEATURE_EXTERNAL_FILTERS@ No @endif-FEATURE_EXTERNAL_FILTERS@</td>
<td>
Allows to <a href="@user-manual@actions-file.html#EXTERNAL-FILTER">filter content
with external scripts and programs</a> written in any language the system Privoxy
runs on supports.
</td>
</tr>
<tr>
<td><code>FEATURE_FAST_REDIRECTS</code></td>
<td>@if-FEATURE_FAST_REDIRECTS-then@ Yes @else-not-FEATURE_FAST_REDIRECTS@ No @endif-FEATURE_FAST_REDIRECTS@</td>
<td>Allows the +fast-redirects action, to bypass redirect and logging scripts.</td>
</tr>
<tr>
<td><code>FEATURE_FORCE_LOAD</code></td>
<td>@if-FEATURE_FORCE_LOAD-then@ Yes @else-not-FEATURE_FORCE_LOAD@ No @endif-FEATURE_FORCE_LOAD@</td>
<td>
Allows bypassing all blocking for a single page using the prefix
<q><code>@force-prefix@</code></q> provided blocks aren't enforced with the
<a href="@user-manual@config.html#ENFORCE-BLOCKS">enforce-blocks</a> directive.
</td>
</tr>
<tr>
<td><code>FEATURE_GRACEFUL_TERMINATION</code></td>
<td>@if-FEATURE_GRACEFUL_TERMINATION-then@ Yes @else-not-FEATURE_GRACEFUL_TERMINATION@ No @endif-FEATURE_GRACEFUL_TERMINATION@</td>
<td>Allows to shutdown Privoxy through the web interface.</td>
</tr>
<tr>
<td><code>FEATURE_HTTPS_INSPECTION</code></td>
<td>@if-FEATURE_HTTPS_INSPECTION-then@ Yes @else-not-FEATURE_HTTPS_INSPECTION@ No @endif-FEATURE_HTTPS_INSPECTION@</td>
<td>Allows to intercept and filter HTTPS traffic. Experimental.</td>
</tr>
<tr>
<td><code>FEATURE_IMAGE_BLOCKING</code></td>
<td>@if-FEATURE_IMAGE_BLOCKING-then@ Yes @else-not-FEATURE_IMAGE_BLOCKING@ No @endif-FEATURE_IMAGE_BLOCKING@</td>
<td>Allows the +handle-as-image action, to send <q>blocked</q> images instead of HTML.</td>
</tr>
<tr>
<td><code>FEATURE_IPV6_SUPPORT</code></td>
<td>@if-FEATURE_IPV6_SUPPORT-then@ Yes @else-not-FEATURE_IPV6_SUPPORT@ No @endif-FEATURE_IPV6_SUPPORT@</td>
<td>
Allows IPv6 addresses in incoming requests, when resolving domains to
IP addresses and in the configuration files.
</td>
</tr>
<tr>
<td><code>FEATURE_NO_GIFS</code></td>
<td>@if-FEATURE_NO_GIFS-then@ Yes @else-not-FEATURE_NO_GIFS@ No @endif-FEATURE_NO_GIFS@</td>
<td>Use PNG instead of GIF for the built-in images.</td>
</tr>
<tr>
<td><code>FEATURE_PCRE_HOST_PATTERNS</code></td>
<td>@if-FEATURE_PCRE_HOST_PATTERNS-then@ Yes @else-not-FEATURE_PCRE_HOST_PATTERNS@ No @endif-FEATURE_PCRE_HOST_PATTERNS@</td>
<td>Allow to use extended host patterns and vanilla host patterns
at the same time by prefixing extended host patterns with
"PCRE-HOST-PATTERN:".
</td>
</tr>
<tr>
<td><code>FEATURE_PTHREAD</code></td>
<td>@if-FEATURE_PTHREAD-then@ Yes @else-not-FEATURE_PTHREAD@ No @endif-FEATURE_PTHREAD@</td>
<td>Use POSIX threads rather than native threads</td>
</tr>
<tr>
<td><code>FEATURE_STATISTICS</code></td>
<td>@if-FEATURE_STATISTICS-then@ Yes @else-not-FEATURE_STATISTICS@ No @endif-FEATURE_STATISTICS@</td>
<td>Enables the statistics function.</td>
</tr>
<tr>
<td><code>FEATURE_STRPTIME_SANITY_CHECKS</code></td>
<td>@if-FEATURE_STRPTIME_SANITY_CHECKS-then@ Yes @else-not-FEATURE_STRPTIME_SANITY_CHECKS@ No @endif-FEATURE_STRPTIME_SANITY_CHECKS@</td>
<td>Try to work around broken strptime() implementations.</td>
</tr>
<tr>
<td><code>FEATURE_TOGGLE</code></td>
<td>@if-FEATURE_TOGGLE-then@ Yes @else-not-FEATURE_TOGGLE@ No @endif-FEATURE_TOGGLE@</td>
<td>Allow Privoxy to be <q>disabled</q> so it is just a normal non-blocking non-filtering proxy.</td>
</tr>
<tr>
<td><code>FEATURE_TRUST</code></td>
<td>@if-FEATURE_TRUST-then@ Yes @else-not-FEATURE_TRUST@ No @endif-FEATURE_TRUST@</td>
<td>Allows the use of trust files.</td>
</tr>
<tr>
<td><code>FEATURE_ZLIB</code></td>
<td>@if-FEATURE_ZLIB-then@ Yes @else-not-FEATURE_ZLIB@ No @endif-FEATURE_ZLIB@</td>
<td>Allows to decompress gzip and zlib compressed documents for filtering.
Requires external zlib library.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="box">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,145 @@
##########################################################
#
# Show-Status-CGI Output template for Privoxy.
# (Variant for the show-file mode)
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written win plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach this proxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the proxy administrator, as configured
# in the config file
# default-cgi:
# The URL for the "main menu" builtin CGI of this proxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The version number of the proxy software
# code-status:
# The development status of the proxy software: "alpha", "beta",
# or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
#
# file-description:
# A descriptive name for the file being shown
# contents:
# The contents of the file being shown
# filepath
# The complete filename of the file being shown
#
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# This is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Privoxy@@my-hostname@: Contents of @file-description@</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
</head>
<body>
<table cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="title">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="box">
<h2>Contents of @file-description@ @filepath@</h2>
<pre>@contents@</pre>
</td>
</tr>
<tr>
<td class="box">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,292 @@
########################################################################
#
# File : $Source: /cvsroot/ijbswa/current/templates/show-url-info,v $
#
# Purpose : Template for Privoxy's show-url-info CGI page.
#
# Copyright : Written by and Copyright (C) 2001-2007 members of the
# Privoxy team. https://www.privoxy.org/
#
# This program is free software; you can redistribute it
# and/or modify it under the terms of the GNU General
# Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# The GNU General Public License should be included with
# this file. If not, you can view it at
# http://www.gnu.org/copyleft/gpl.html
# or write to the Free Software Foundation, Inc., 59
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#########################################################################
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written win plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach Privoxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the Privoxy administrator, as configured
# in the config file
# default-cgi:
# The URL for Privoxy's "main menu" builtin CGI page
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# Privoxy's version number
# code-status:
# Privoxy's development status: "alpha", "beta", or "stable".
# homepage:
# The Privoxy web site.
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# this is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
# url-given:
# The CGI was called with a url parameter. In that case, the
# following symbols are available:
# url:
# The given URL
# default:
# The system default for actions
# matches:
# The list of all matches in the actions file that this URL
# produced, along with the actions that were triggered by
# these matches
# final:
# The actions that are associated with the URL at the end of
# the matching process
# no-forwarder: Requests to url will be made directly.
# http-forwarder:
# Requests to url will be made through a HTTP proxy
# forward-host:
# The IP address or its hostname
# forward-port.
# The proxy port
# socks-forwarder:
# Requests to url will be made through a socks proxy
# socks-type:
# The socks type: socks4 or socks4a
# gateway-host:
# The IP address or its hostname
# gateway-port:
# The proxy port.
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Privoxy@@my-hostname@ URL Info</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
<link rel="search" type="application/opensearchdescription+xml" title="Privoxy URL Info" href="/url-info-osd.xml">
</head>
<body>
<table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="title">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<!-- @if-url-given-start -->
<tr>
<td class="box">
<!-- @if-valid-url-start -->
<h2>Forwarding settings:</h2>
<p>
Requests for <a href="@url@">@url@</a> will be <!--
# "Interesting" formatting to prevent white space at the end of the sentence.
@if-no-forwarder-start -->
made <b>directly</b>, no forwarding settings apply<!--
if-no-forwarder-end@--><!--
@if-http-forwarder-start --><!-- @if-socks-forwarder-start -->
first <!--
if-socks-forwarder-end@ --><!-- if-http-forwarder-end@ --><!--
@if-socks-forwarder-start -->
forwarded through <b>@socks-type@-proxy @gateway-host@:@gateway-port@</b><!--
if-socks-forwarder-end@ --><!--
@if-http-forwarder-start --><!-- @if-socks-forwarder-start -->
and then <!--
if-socks-forwarder-end@ --><!-- if-http-forwarder-end@ --><!--
@if-http-forwarder-start -->
forwarded through <b>HTTP-proxy @forward-host@:@forward-port@</b><!--
if-http-forwarder-end@ -->.
</td>
</tr>
<tr>
<td class="box">
<!-- @if-https-and-no-https-inspection-start -->
<h2>NOTE:</h2>
<p>This is a HTTPS URL, so the part after the "/" is ignored
as Privoxy doesn't see the path for real HTTPS requests either.</p>
<!-- if-https-and-no-https-inspection-end@ -->
<!-- if-valid-url-end@ -->
<h2>Matches for <a href="@url@">@url@</a>:</h2>
@matches@
<!-- @if-valid-url-start -->
<!-- @if-cgi-editor-is-disabled-start -->
<p>
The CGI editor is currently disabled, thus no edit buttons are shown.<br>
Please have a look at the
<a href="@user-manual@config.html#ENABLE-EDIT-ACTIONS">enable-edit-actions documentation</a>
to learn how to enable it and what the risks are.
</p>
<!-- if-cgi-editor-is-disabled-end@ -->
<!-- @if-valid-url-end -->
</td>
</tr>
<!-- @if-valid-url-start -->
<!-- @if-filters-might-be-ineffective-start -->
<tr>
<td class="warning">
<h2>Warning:</h2>
<p>
This Privoxy version has been built without zlib support,
<strong>content filters will not work if the server sends compressed content.</strong>
Consider enabling the <a title="prevent-compression documentation"
href="@user-manual@actions-file.html#PREVENT-COMPRESSION">prevent-compression</a>
action for this URL or rebuild Privoxy with zlib support.
</p>
</td>
</tr>
<!-- if-filters-might-be-ineffective-end@ -->
<tr>
<td class="box">
<h2>Final results:</h2>
<b>@final@</b>
</td>
</tr>
<!-- if-valid-url-end@ -->
<!-- if-url-given-end@ -->
<!-- @if-privoxy-is-toggled-off-start -->
<tr>
<td class="warning">
<h2>Warning:</h2>
<p>
<strong>Privoxy is currently toggled off. Matching actions will not apply
unless you <a href="@default-cgi@toggle?set=enable">toggle Privoxy on</a> first.</strong>
</p>
</td>
</tr>
<!-- if-privoxy-is-toggled-off-end@ -->
<tr>
<td class="box">
<h2>Look up the actions for a
<!-- @if-url-given-start -->new<!-- if-url-given-end@ -->
URL:</h2>
<form method="GET" action="@default-cgi@show-url-info">
<p>
<input type="text" name="url" size="80" value="@url@" class="url">
<input type="submit" value="Go">
</p>
</form>
</td>
</tr>
<tr>
<td class="box">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

149
privoxy/templates/toggle Normal file
View File

@@ -0,0 +1,149 @@
##########################################################
#
# Toggle Output template for Privoxy.
#
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written win plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach this proxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the proxy administrator, as configured
# in the config file
# default-cgi:
# The URL for the "main menu" builtin CGI of this proxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The version number of the proxy software
# code-status:
# The development status of the proxy software: "alpha", "beta",
# or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# this is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
# @if-enabled-display-then@ on @else-not-enabled-display@ off @endif-enabled-display@
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>@if-enabled-display-then@Enabled@else-not-enabled-display@Disabled@endif-enabled-display@ - Privoxy@@my-hostname@</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
</head>
<body>
<table cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="title">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="box">
<h2>Privoxy is @if-enabled-display-then@Enabled@else-not-enabled-display@Disabled@endif-enabled-display@</h2>
<p>When enabled, Privoxy performs its magic - blocking
adverts, filtering cookies, regex-filtering, etc.</p>
<p>When disabled, Privoxy behaves as a normal HTTP proxy,
and will not affect your web browsing.</p>
<p><a href="@default-cgi@toggle?set=@if-enabled-display-then@disable@else-not-enabled-display@enable@endif-enabled-display@">Click
here</a> to @if-enabled-display-then@disable@else-not-enabled-display@enable@endif-enabled-display@ Privoxy.</p>
<p>
The toggle state affects all clients that are using Privoxy.
In multi-user setups <a href="@user-manual@config.html#CLIENT-SPECIFIC-TAG">
client-specific tags</a> can be used as a more powerful alternative.
</p>
</td>
</tr>
<tr>
<td class="box">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,90 @@
##########################################################
#
# Toggle Output template for Privoxy.
#
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written win plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach this proxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the proxy administrator, as configured
# in the config file
# default-cgi:
# The URL for the "main menu" builtin CGI of this proxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The version number of the proxy software
# code-status:
# The development status of the proxy software: "alpha", "beta",
# or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# this is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
# @if-enabled-display-then@ on @else-not-enabled-display@ off @endif-enabled-display@
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>@if-enabled-display-then@Enabled@else-not-enabled-display@Disabled@endif-enabled-display@ - Privoxy@@my-hostname@</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
</head>
<body>
<p class="whiteframed">
<a href="@default-cgi@">Privoxy</a> is
<b>@if-enabled-display-then@enabled@else-not-enabled-display@disabled@endif-enabled-display@</b>.
<br><a href="@default-cgi@toggle?mini=y&amp;set=@if-enabled-display-then@disable@else-not-enabled-display@enable@endif-enabled-display@"
>@if-enabled-display-then@[Disable]@else-not-enabled-display@[Enable]@endif-enabled-display@</a> |
<a href="javascript:window.close();">[Close]</a>
</p>
</body>
</html>

190
privoxy/templates/untrusted Normal file
View File

@@ -0,0 +1,190 @@
##########################################################
#
# "Untrusted" Error Output template for Privoxy.
#
#
# USING HTML TEMPLATES:
# ---------------------
#
# Template files are written win plain HTML, with a few
# additions:
#
# - Lines that start with a '#' character like this one
# are ignored
#
# - Each item in the below list of exported symbols will
# be replaced by dynamically generated text, if they
# are enclosed in '@'-characters. E.g. The string @version@
# will be replaced by the version number of Privoxy.
#
# - One special application of this is to make whole blocks
# of the HTML template disappear if the condition <name>
# is not given. Simply enclose the block between the two
# strings @if-<name>start and if-<name>-end@. The strings
# should be placed in HTML comments (<!-- -->), so the
# html structure won't be messed when the magic happens.
#
# USABLE SYMBOLS IN THIS TEMPLATE:
# --------------------------------
#
# my-ip-addr:
# The IP-address that the client used to reach this proxy
# my-hostname:
# The hostname associated with my-ip-addr
# admin-address:
# The email address of the proxy administrator, as configured
# in the config file
# default-cgi:
# The URL for the "main menu" builtin CGI of this proxy
# menu:
# List of <li> elements linking to the other available CGIs
# version:
# The version number of the proxy software
# code-status:
# The development status of the proxy software: "alpha", "beta",
# or "stable".
# homepage:
# The URL of the Privoxy project, which maintains this software.
#
# hostport:
# The host and port part of the request that lead to this problem
# path:
# The path part of the request that lead to this problem
# referrer:
# The referrer of the request that lead to this problem
# trusted-referrers:
# An HTML-formatted list of referrers that are marked as trusted in
# the trustfile
#
#
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
# ------------------------------------------------------------------
#
# unstable:
# This is an alpha or beta release of the proxy software
# have-adminaddr-info:
# An e-mail address for the local Privoxy administrator has
# been specified and is available through the "admin-address"
# symbol
# have-proxy-info:
# A URL for online documentation about this proxy has been
# specified and is available through the "proxy-info-url"
# symbol
# have-help-info:
# If either have-proxy-info is true or have-adminaddr-info is
# true, have-help-info is true. Used to conditionally include
# a grey box for any and all help info.
# force-support:
# Privoxy has been compiled with support for forced loading
# of blocked content. In that case, the symbol "force-prefix" is
# avaiable, which translates to the FORCE_PREFIX
# have-trust-info:
# There were URLs with info on the trust policy defined in the config
# file. In this case the list of URLs is available through the
# "trust-info" symbol.
#
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html>
<head>
<title>Untrusted request (Privoxy@@my-hostname@)</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
<style type="text/css">
#include cgi-style.css
</style>
</head>
<body>
<table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
<tr>
<td class="status">
UNTRUSTED
</td>
<td class="title" style="width: 100%">
#include mod-title
</td>
</tr>
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
<tr>
<td class="warning" colspan="2">
#include mod-unstable-warning
</td>
</tr>
<!-- if-unstable-end@ -->
<tr>
<td class="warning" colspan="2">
<h2>Request for untrusted URL</h2>
<p>Your request for <b>@protocol@@hostport@@path@</b> was blocked,
because neither the request URL itself, nor its referrer
(<b>@referrer@</b>) were trusted.
</p>
<!-- @if-force-support-start -->
<p>(You can <a href="@protocol@@hostport@@force-prefix@@path@">go there anyway</a>.)</p>
<!-- if-force-support-end@ -->
</td>
</tr>
<tr>
<td class="box" colspan="2">
<h2>The following referrers are trusted:</h2>
<ul>
@trusted-referrers@
</ul>
</td>
</tr>
<!-- @if-have-trust-info-start -->
<tr>
<td class="box" colspan="2">
<h2>More information on the trust policy:</h2>
<p>You can learn more about what this means and what you may be able to do about it by
reading the following documents:
</p>
<ol>
@trust-info@
</ol>
</td>
</tr>
<!-- if-have-trust-info-end@ -->
<tr>
<td class="box" colspan="2">
<h2>More Privoxy:</h2>
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
</td>
</tr>
<!-- @if-have-help-info-start -->
<tr>
<td class="info" colspan="2">
#include mod-local-help
</td>
</tr>
<!-- if-have-help-info-end@ -->
<tr>
<td class="info" colspan="2">
#include mod-support-and-service
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Privoxy URL Info</ShortName>
<Description>
Enter a URL to see which Privoxy actions apply.
Only works while the browser is configured to use Privoxy.
</Description>
<InputEncoding>UTF-8</InputEncoding>
<OutputEncoding>UTF-8</OutputEncoding>
<Developer>Privoxy Team</Developer>
<Contact>ijbswa-developers@lists.sourceforge.net</Contact>
<Image width="16" height="16" type="image/x-icon">@default-cgi@favicon.ico</Image>
<Url type="text/html" method="GET" template="@default-cgi@show-url-info?url={searchTerms}"/>
</OpenSearchDescription>

View File

@@ -0,0 +1,11 @@
function FindProxyForURL(url, host) {
var proxy = "PROXY @my-ip-address@:@my-port@; DIRECT";
var direct = "DIRECT";
if (isPlainHostName(host)) {
return direct;
}
if (url.substring(0, 4) == "ftp:" || url.substring(0, 6) == "rsync:") {
return direct;
}
return proxy;
}