From b5333459b914e848f1830d2e9b6a831a5ff2cb72 Mon Sep 17 00:00:00 2001 From: oes Date: Fri, 29 Jun 2001 08:52:55 +0000 Subject: [PATCH] Updated to new exports list and look --- templates/default | 115 +++++++++++++--- templates/show-status | 272 ++++++++++++++++++++++++++++++++----- templates/show-status-file | 125 ++++++++++++++--- templates/show-url-info | 168 ++++++++++++++++++++--- 4 files changed, 593 insertions(+), 87 deletions(-) diff --git a/templates/default b/templates/default index 7245ce28..b4e4b7bc 100644 --- a/templates/default +++ b/templates/default @@ -1,38 +1,119 @@ ########################################################## # -# CGI-Output template for the junkbuster. +# Default-CGI Output template for junkbuster 2.9.x. # -# Lines *starting* with '#' are ignored. -# Symbols are enclosed in @ characters. # -# Usable Symbols in this file: +# USING HTML TEMPLATES: +# --------------------- # -# other-cgis: List of
  • elements linking to the other -# available CGIs +# Template files are written win plain HTML, with a few +# additions: # -# cgi-parameters: If parameters were present (this CGI needs -# none, they are dumped in a HTML table. +# - 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. +# +# 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 # - Internet Junkbuster Configuration + Junkbuster@@my-hostname@ + -

    Internet JUNKBUSTER

    + + + + + + +# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in + + + + -

    The following CGI functions are currently implemented:

    + + + - @other-cgis@ + + + +
    +

    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.
    +

    -

    Thank you for using the internet Junkbuster.

    +

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

    +
    +

    Thank you for using the SourceForge edition of Internet Junkbuster!

    +

    Please choose from the following options:

    +
      @menu@
    +
    +

    If you have any questions about this service, - @cgi-parameters@ + + consult the online documentation or + -

    Please feel free to mail the developers - with any problems you might have

    + send mail to @admin-address@ + who will be glad to help you. +

    +
    - \ No newline at end of file + diff --git a/templates/show-status b/templates/show-status index bfeaca9a..e3f8e258 100644 --- a/templates/show-status +++ b/templates/show-status @@ -1,65 +1,263 @@ ########################################################## # -# CGI-Output template for the junkbuster. +# Show-Status-CGI Output template for junkbuster 2.9.x # -# Lines *starting* with '#' are ignored. -# Symbols are enclosed in @ characters. +# USING HTML TEMPLATES: +# --------------------- # -# Usable symbols in this file: -# redirect-url, version, home-page, -# invocation-args, options, gateway-protocols -# statistics, +# 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. +# +# redirect-url: +# The URL to a script that will redirect to the junkbuster +# documentation for a given item +# invocation: +# The command line with whitch junkbuster was invoked +# options: +# The options read from the configfile, linked to their +# explanations, plus warnings if parsing acl or forward +# statements produced errors. +# sourceversions: +# A HTML-formatted list of the individual source file cvs versions +# defines: +# A HTML-formatted list of all conditional #defines used when +# junkbuster was compiled +# +# +# 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 +# statistics: +# Junkbuster 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 +# pcrs-support: +# Junkbuster was compiled with pcrs support +# trust-support: +# Junkbuster was compiled with trust support +# split-args: +# Junkbuster was compiled with #define SPLIT_PROXY_ARGS +# In this case, the following symbols are available: +# actions-filename: +# The path to the actions file. +# re-filter-filename: +# The path to the re_filter file. Only available if +# pcrs-support is set +# trust-filename: +# The path to the trust file.Only available if +# trust-support is set +# no-split-args: +# Junkbuster was not compiled with #define SPLIT_PROXY_ARGS +# In this case, the following symbols are available: +# alist: +# The contents of the actionsfile +# rlist: +# The contents of the re_filterfile. Only available if +# pcrs-support is set +# tlist: +# The contents of the trustfile. Only available if +# trust-support is set # - Internet Junkbuster Status + Junkbuster@@my-hostname@: Proxy Status + -

    Internet JUNKBUSTER - version @version@ Proxy Status

    + + + + + + +# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in + + + + -

    Homepage: @home-page@

    + + + -

    The program was invoked as follows

    - @invocation-args@
    + + + -

    And the following options were givem in the config file:

    - FIXME: Which? + + + + + - @statistics@ + + + + + -

    The following files are in use:

    + + + + - - + + + + + -

    (Click filenames to view)

    - + + + + - -
  • Regex Filter List: @re-filter-filename@
  • - + + + - -
  • Access Control List: @trust-filename@
  • - + + + - - - + + + - @clist@ @flist@ @alist@ @rlist@ @tlist@ + + + +
    +

    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 +

    +
    +

    The program was invoked as follows

    +

    @invocation@

    +
    +

    The following options were given in the config file:

    +

    @options@

    +
    +

    Blocking Statistics:

    +
    + + @requests-blocked@ out of @requests-received@ requests have been blocked, + which equals a block rate of @percent-blocked@. + + + There haven't been any requests so far. + +
    +

    The following files are in use:

    +

    Click a filename to browse

    + +
    +

    Actions List:

    +
    @alist@
    +
    +

    Regex Filter List:

    +
    @rlist@
    +
    +

    Trust List:

    +
    @tlist@
    +
    +

    Source code versions:

    +
    @sourceversions@
    +
    +

    Conditional #defines:

    +
      @defines@
    +
    +

    More Junkbuster:

    +
      @menu@
    +
    +

    If you have any questions about this service, - @rcs-and-defines@ + + consult the online documentation or + -

    Please feel free to mail the developers - with any problems you might have

    + send mail to @admin-address@ + who will be glad to help you. +

    +
    - - + \ No newline at end of file diff --git a/templates/show-status-file b/templates/show-status-file index 2d2e18db..659cf0d3 100644 --- a/templates/show-status-file +++ b/templates/show-status-file @@ -1,35 +1,128 @@ ########################################################## # -# CGI-Output template for the junkbuster. +# Show-Status-CGI Output template for junkbuster 2.9.x +# (Variant for the show-file mode) # -# Lines *starting* with '#' are ignored. -# Symbols are enclosed in @ characters. +# 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. +# +# 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-proxy-info: +# A URL for online documentation about this proxy has been +# specified and is available through the "proxy-info-url" +# symbol # -# Usable symbols in this file: filename, contents, -# filepath - Internet Junkbuster Status - @filename@ + Junkbuster@@my-hostname@: Contents of @file-description@ + -

    Internet JUNKBUSTER: - Contents of @filename@

    + + + + + + +# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in + + + + -

    Contents of @filepath@

    + + + + + + + -

    Please feel free to mail the developers - with any problems you might have

    +
    +

    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 +

    +
    +

    Contents of @file-description@ (@filepath@)

    +
    @contents@
    +
    +

    If you have any questions about this service, -

    -@contents@
    -  
    + + consult the online documentation or + -

    Back to the general status page

    + send mail to @admin-address@ + who will be glad to help you. +

    +

    Back to the main page.

    +
    \ No newline at end of file diff --git a/templates/show-url-info b/templates/show-url-info index 1c96a96e..56c3373c 100644 --- a/templates/show-url-info +++ b/templates/show-url-info @@ -1,35 +1,169 @@ +########################################################## +# +# Show-Url-Info-CGI 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. +# +# 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 +# url-given: +# The CGI was called with a url parameter. In that case, the +# following symbols are available: +# url: +# The given URL +# url-html: +# The given URL, HTML-encoded +# 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 +# - Internet Junkbuster: URL Info + Junkbuster@@my-hostname@ URL Info + -

    Internet JUNKBUSTER

    + + + + -

    Information for: http://@url@

    + +# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in + + + + -

    Matches:

    -

    @matches@

    + + + + -

    Final settings:

    -

    {@final@}

    + + + -

     

    + + + + -

    Back to JunkBuster front page

    + + + -

    Or look up another URL, (don't enter the leading "http://"):
    -
    - - - -

    + + + + + + +
    +

    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.
    +

    -

    Default settings:

    -

    {@default@}

    +

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

    +
    +

    System default actions:

    +

    {@default@}

    +
    +

    Matches for http://@url-html@:

    +

    @matches@

    +
    +

    Final results:

    +

    @final@

    +
    +

    Look up the actions for a +new + URL:

    +
    + + +
    +
    +

    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