Added (very!) compact version of "blocked" page
authoroes <oes@users.sourceforge.net>
Fri, 13 Jul 2001 13:47:39 +0000 (13:47 +0000)
committeroes <oes@users.sourceforge.net>
Fri, 13 Jul 2001 13:47:39 +0000 (13:47 +0000)
templates/blocked-compact [new file with mode: 0644]

diff --git a/templates/blocked-compact b/templates/blocked-compact
new file mode 100644 (file)
index 0000000..6b9871d
--- /dev/null
@@ -0,0 +1,94 @@
+##########################################################
+#
+# "Blocked" Error Output template for junkbuster 2.9.x.
+# Compact variant.
+#
+# 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 Junkbuster.
+#
+# - 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 pxoxy'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 SourceForge ijbswa project, who maintains this
+#    software.
+#
+#  hostport:
+#    The host and port part of the request that lead to this problem
+#  hostport-html:
+#    The host and port part of the request that lead to this problem, HTML-encoded
+#  path:
+#    The path part of the request that lead to this problem
+#  path-html:
+#    The path part of the request that lead to this problem, HTML-encoded
+#
+#
+# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
+# ------------------------------------------------------------------
+#
+#  unstable:
+#    This is an alpha or beta release of the proxy software
+#  have-proxy-info:
+#    A URL for online documentation about this proxy has been
+#    specified and is available through the "proxy-info-url"
+#    symbol
+#  force-support:
+#    Junkbuster 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  
+#
+<html>
+
+  <head>
+    <title>Request blocked (Junkbuster@@my-hostname@)</title>
+    <style type="text/css">
+      BODY, P { font-family: Helvetica, Helv, Arial, Sans-Serif, sans-serif }
+    </style>
+  </head>
+
+  <body bgcolor="#ffffff">
+
+    <p align=center>Your request for <b>@hostport-html@@path-html@</b> was blocked.
+      <br><a href="@default-cgi@/show-url-info?url=@hostport@@path@">See why</a>
+      <!-- @if-force-support-start -->
+      or <a href="http://@hostport@@force-prefix@@path@">go there anyway</a>.
+      <!-- if-force-support-end@ -->
+      <br><a href="@default-cgi@">More info</a>.
+    </p>
+
+  </body>
+</html>