Now reports on FEATURE_CGI_EDIT_ACTIONS
authorjongfoster <jongfoster@users.sourceforge.net>
Fri, 30 Nov 2001 23:09:15 +0000 (23:09 +0000)
committerjongfoster <jongfoster@users.sourceforge.net>
Fri, 30 Nov 2001 23:09:15 +0000 (23:09 +0000)
Removing FEATURE_DENY_GZIP from template

cgisimple.c
templates/show-status

index 851e0fc..fb1562f 100644 (file)
@@ -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 */
index 1aea2b0..00edc58 100644 (file)
              <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>