swa for oes
authorswa <swa@users.sourceforge.net>
Sun, 3 Jun 2001 17:10:04 +0000 (17:10 +0000)
committerswa <swa@users.sourceforge.net>
Sun, 3 Jun 2001 17:10:04 +0000 (17:10 +0000)
config
default [new file with mode: 0644]
show-status [new file with mode: 0644]
show-status-file [new file with mode: 0644]

diff --git a/config b/config
index 69cbbf0..082f930 100644 (file)
--- a/config
+++ b/config
@@ -1,7 +1,7 @@
 #  Sample Configuration file for the Internet Junkbuster 2.0
 
 #
-# $Id: config,v 1.8 2001/05/31 21:52:16 jongfoster Exp $
+# $Id: config,v 1.9 2001/06/01 20:17:10 jongfoster Exp $
 #
 
 #  Table of Contents
 #  files in the current working directory.  In either case, an
 #  absolute path name can be used to avoid problems.
 
+# While we go modular and multiuser, the blocker, filter, and 
+# per-user config will be stored in subdirectories of confdir.
+# Now, only confdir/templates is used for storing HTML templates
+# for CGI results.
+#
+confdir /home/oes/projekte/pcrs/ijb/confdir
+
 #
 #  The permissions file contains patterns to specify the
 #  filtering rules to apply to each site.
diff --git a/default b/default
new file mode 100644 (file)
index 0000000..7245ce2
--- /dev/null
+++ b/default
@@ -0,0 +1,38 @@
+##########################################################
+#
+# CGI-Output template for the junkbuster.
+#
+# Lines *starting* with '#' are ignored.
+# Symbols are enclosed in @ characters.
+#
+# Usable Symbols in this file: 
+#
+#   other-cgis: List of <li> elements linking to the other
+#     available CGIs
+# 
+#   cgi-parameters: If parameters were present (this CGI needs
+#     none, they are dumped in a HTML table.
+#
+<html>
+
+<head>
+  <title>Internet Junkbuster Configuration</title>
+</head>
+
+<body bgcolor="#ffffff">
+
+  <h1>Internet J<small>UNK<i><font color="red">BUSTER</font></i></small></h1>
+
+  <p>Thank you for using the internet Junkbuster.</p>
+
+  <p>The following CGI functions are currently implemented:</p>
+
+  @other-cgis@
+
+  @cgi-parameters@
+
+  <p>Please feel free to mail <a href=mailto:ijbswa-developers@lists.sourceforge.net>the developers</a>
+     with any problems you might have</p>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/show-status b/show-status
new file mode 100644 (file)
index 0000000..ee4d778
--- /dev/null
@@ -0,0 +1,73 @@
+##########################################################
+#
+# CGI-Output template for the junkbuster.
+#
+# Lines *starting* with '#' are ignored.
+# Symbols are enclosed in @ characters.
+#
+# Usable symbols in this file: 
+# redirect-url, version, home-page,
+# invocation-args, options, gateway-protocols
+# statistics,
+#
+<html>
+
+<head>
+  <title>Internet Junkbuster Status</title>
+</head>
+
+<body bgcolor="#ffffff">
+
+  <h1>Internet J<small>UNK<i><font color="red">BUSTER</font></i></small>
+      version @version@ <a href="@redirect-url@faq#show">Proxy Status</a></h1>
+
+  <p>Homepage: <a href="@home-page@">@home-page@</a></p>
+
+  <h2>The program was invoked as follows</h2>
+  @invocation-args@<br>
+
+  <h2>And the following options were givem in the config file:</h2>
+  <BLINK>FIXME: Which?</BLINK>
+
+  <h2>It supports the following gateway protocols:</h2>
+  @gateway-protocols@
+
+  @statistics@
+
+  <h2>The following files are in use:</h2>
+
+  <!-- The block following this comment will magically disappear, #ifndef SPLIT_PROXY_ARGS -->
+  <!-- @magic-eliminator-start -->
+
+  <p>(Click filenames to view)</p>
+  <ul>
+  <li>Actions List: <a href="show-status?file=permit">@actions-filename@</a></li>
+  <li>Forward List: <a href="show-status?file=forward">@forward-filename@</a></li>
+
+  <!-- @acl-killer-start -->
+  <li>Access Control List: <a href="show-status?file=acl">@acl-filename@</a></li>
+  <!-- acl-killer-end@ -->
+
+  <!-- @re-filter-killer-start -->
+  <li>Regex Filter List: <a href="show-status?file=re">@re-filter-filename@</a></li>
+  <!-- re-filter-killer-end@ -->
+
+  <!-- @trust-killer-start -->
+  <li>Access Control List: <a href="show-status?file=trust">@trust-filename@</a></li>
+  <!-- trust-killer-end@ -->
+
+  </ul>
+  <!-- magic-eliminator-end@ -->
+  <!-- The block above this comment will magically disappear, #ifndef SPLIT_PROXY_ARGS -->
+
+  @clist@ @flist@ @alist@ @rlist@ @tlist@
+
+  @rcs-and-defines@
+
+  <p>Please feel free to mail <a href=mailto:ijbswa-developers@lists.sourceforge.net>the developers</a>
+     with any problems you might have</p>
+
+
+  
+</body>
+</html>
\ No newline at end of file
diff --git a/show-status-file b/show-status-file
new file mode 100644 (file)
index 0000000..2d2e18d
--- /dev/null
@@ -0,0 +1,35 @@
+##########################################################
+#
+# CGI-Output template for the junkbuster.
+#
+# Lines *starting* with '#' are ignored.
+# Symbols are enclosed in @ characters.
+#
+# Usable symbols in this file: filename, contents, 
+# filepath
+<html>
+
+<head>
+  <title>Internet Junkbuster Status - @filename@</title>
+</head>
+
+<body bgcolor="#ffffff">
+
+  <h1>Internet J<small>UNK<i><font color="red">BUSTER</font></i></small>:
+      Contents of @filename@</h1>
+
+  
+
+  <h2>Contents of @filepath@</h2>
+
+  <pre>
+@contents@
+  </pre>
+
+  <p><a href="/config/show-status">Back to the general status page</a></p>
+
+  <p>Please feel free to mail <a href=mailto:ijbswa-developers@lists.sourceforge.net>the developers</a>
+     with any problems you might have</p>
+
+</body>
+</html>
\ No newline at end of file