From: jongfoster <jongfoster@users.sourceforge.net>
Date: Fri, 30 Nov 2001 23:09:15 +0000 (+0000)
Subject: Now reports on FEATURE_CGI_EDIT_ACTIONS
X-Git-Tag: v_2_9_10~9
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/static/diff?a=commitdiff_plain;h=c6ac2d65e4a22c21112c37fe408963a474fe8c47;p=privoxy.git

Now reports on FEATURE_CGI_EDIT_ACTIONS
Removing FEATURE_DENY_GZIP from template
---

diff --git a/cgisimple.c b/cgisimple.c
index 851e0fc9..fb1562fe 100644
--- a/cgisimple.c
+++ b/cgisimple.c
@@ -1,4 +1,4 @@
-const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.7 2001/10/23 21:48:19 jongfoster Exp $";
+const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.8 2001/11/13 00:14:07 jongfoster Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/cgisimple.c,v $
@@ -36,6 +36,10 @@ const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.7 2001/10/23 21:48:19 jongfos
  *
  * Revisions   :
  *    $Log: cgisimple.c,v $
+ *    Revision 1.8  2001/11/13 00:14:07  jongfoster
+ *    Fixing stupid bug now I've figured out what || means.
+ *    (It always returns 0 or 1, not one of it's paramaters.)
+ *
  *    Revision 1.7  2001/10/23 21:48:19  jongfoster
  *    Cleaning up error handling in CGI functions - they now send back
  *    a HTML error page and should never cause a FATAL error.  (Fixes one
@@ -916,6 +920,12 @@ static jb_err show_defines(struct map *exports)
    if (!err) err = map_conditional(exports, "FEATURE_ACL", 0);
 #endif /* ndef FEATURE_ACL */
 
+#ifdef FEATURE_CGI_EDIT_ACTIONS
+   if (!err) err = map_conditional(exports, "FEATURE_CGI_EDIT_ACTIONS", 1);
+#else /* ifndef FEATURE_COOKIE_JAR */
+   if (!err) err = map_conditional(exports, "FEATURE_CGI_EDIT_ACTIONS", 0);
+#endif /* ndef FEATURE_COOKIE_JAR */
+
 #ifdef FEATURE_COOKIE_JAR
    if (!err) err = map_conditional(exports, "FEATURE_COOKIE_JAR", 1);
 #else /* ifndef FEATURE_COOKIE_JAR */
diff --git a/templates/show-status b/templates/show-status
index 1aea2b03..00edc58a 100644
--- a/templates/show-status
+++ b/templates/show-status
@@ -198,18 +198,17 @@
              <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 the proxy by IP address.</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 web-based actions file 
+               editor@if-FEATURE_CGI_EDIT_ACTIONS-then@, which is <a href="http://i.j.b/edit-actions">here</a>@else-not-FEATURE_CGI_EDIT_ACTIONS@@endif-FEATURE_CGI_EDIT_ACTIONS@.</td>
+          </tr>
           <tr>
              <td><code>FEATURE_COOKIE_JAR</code></td>
              <td>@if-FEATURE_COOKIE_JAR-then@ Yes @else-not-FEATURE_COOKIE_JAR@ No @endif-FEATURE_COOKIE_JAR@</td>
              <td>Allows the use of a "cookie jar" file to capture cookies.</td>
           </tr>
-          <tr>
-             <td><code>FEATURE_DENY_GZIP</code></td>
-             <td>@if-FEATURE_DENY_GZIP-then@ Yes @else-not-FEATURE_DENY_GZIP@ No @endif-FEATURE_DENY_GZIP@</td>
-             <td>Prevents requests from being compressed.  This means that all 
-                 sites can be filtered through +filter and +no-popups, but it
-                 wastes bandwidth.</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>