From 9493ba17e97a2c5c57c271de8e910beb5cfe47b6 Mon Sep 17 00:00:00 2001 From: oes Date: Fri, 29 Jun 2001 08:50:07 +0000 Subject: [PATCH] Ported error output to CGI platform --- templates/connect-failed | 145 +++++++++++++++++++++++++++++++++++++++ templates/no-such-domain | 145 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 290 insertions(+) create mode 100644 templates/connect-failed create mode 100644 templates/no-such-domain diff --git a/templates/connect-failed b/templates/connect-failed new file mode 100644 index 00000000..160c5631 --- /dev/null +++ b/templates/connect-failed @@ -0,0 +1,145 @@ +########################################################## +# +# No-Such-Domain Error Output template for junkbuster 2.9.x. +# +# +# 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 +# is not given. Simply enclose the block between the two +# strings @if-start and if--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
  • 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. +# +# 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 +# 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 +# + + + + 503 - Connect failed (Junkbuster@@my-hostname@) + + + + + + + + + + + + +# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in + + + + + + + + + + + + + + + + +
    +

    503

    +
    +

    This is the Internet JUNKBUSTER + @version@ on @my-hostname@ (@my-ip-address@), port @my-port@

    +
    +

    Please note that this is a @code-status@ release, + of the proxy software, not intended for production systems! +
    Use at your own risk. See the license for details.
    +

    + +

    Feel free to mail the developers + with any problems you might have +

    +
    +

    Connect failed

    +
    +

    Your request for http://@hostport-html@@path-html@ could not be fulfilled, because the connection + to @host-html@ (@host-ip@) could not be established.

    +

    This is often a temporary failiure, so you might just + try again.

    +
    +
    +

    More Junkbuster:

    +
      @menu@
    +
    +

    If you have any questions about this service, + + + consult the online documentation or + + + send mail to @admin-address@ + who will be glad to help you. +

    +
    + + + diff --git a/templates/no-such-domain b/templates/no-such-domain new file mode 100644 index 00000000..d13b9f2a --- /dev/null +++ b/templates/no-such-domain @@ -0,0 +1,145 @@ +########################################################## +# +# No-Such-Domain Error Output template for junkbuster 2.9.x. +# +# +# 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 +# is not given. Simply enclose the block between the two +# strings @if-start and if--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
  • 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. +# +# host-html: +# The host part of the request that lead to this problem, HTML-encoded +# 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 +# + + + + 404 - No such Domain (Junkbuster@@my-hostname@) + + + + + + + + + + + + +# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in + + + + + + + + + + + + + + + + +
    +

    404

    +
    +

    This is the Internet JUNKBUSTER + @version@ on @my-hostname@ (@my-ip-address@), port @my-port@

    +
    +

    Please note that this is a @code-status@ release, + of the proxy software, not intended for production systems! +
    Use at your own risk. See the license for details.
    +

    + +

    Feel free to mail the developers + with any problems you might have +

    +
    +

    No such domain

    +
    +

    Your request for http://@hostport-html@@path-html@ could not be fulfilled, because + the domain name @host-html@ could not be resolved.

    +

    This is often a temporary failiure, so you might just + try again.

    +
    +
    +

    More Junkbuster:

    +
      @menu@
    +
    +

    If you have any questions about this service, + + + consult the online documentation or + + + send mail to @admin-address@ + who will be glad to help you. +

    +
    + + + -- 2.39.2