current cgi.c, 1.163, 1.164 cgisimple.c, 1.137, 1.138

Fabian Keil <[email protected]>
Newsgroups gmane.comp.web.privoxy.cvs
Message-ID <[email protected]>
Update of /cvsroot/ijbswa/current
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv16495

Modified Files:
	cgi.c cgisimple.c 
Log Message:
Rename show-client-tags template to client-tags

The page doesn't merely show the tags but also allows to
enable or disable them. While at it, make the page title
more descriptive.


Index: cgi.c
===================================================================
RCS file: /cvsroot/ijbswa/current/cgi.c,v
retrieving revision 1.163
retrieving revision 1.164
diff -C2 -d -r1.163 -r1.164
*** cgi.c	30 Mar 2016 11:14:05 -0000	1.163
--- cgi.c	4 Apr 2016 10:55:47 -0000	1.164
***************
*** 102,106 ****
            TRUE },
  #ifdef FEATURE_CLIENT_TAGS
!    { "show-client-tags",
           cgi_show_client_tags,
           "View or toggle the tags that can be set based on the clients address",
--- 102,106 ----
            TRUE },
  #ifdef FEATURE_CLIENT_TAGS
!    { "client-tags",
           cgi_show_client_tags,
           "View or toggle the tags that can be set based on the clients address",

Index: cgisimple.c
===================================================================
RCS file: /cvsroot/ijbswa/current/cgisimple.c,v
retrieving revision 1.137
retrieving revision 1.138
diff -C2 -d -r1.137 -r1.138
*** cgisimple.c	4 Apr 2016 10:51:45 -0000	1.137
--- cgisimple.c	4 Apr 2016 10:55:47 -0000	1.138
***************
*** 311,315 ****
  
     snprintf(form, size,
!       "<form method=\"GET\" action=\"show-client-tags\" style=\"display: inline\">\n"
        " <input type=\"hidden\" name=\"tag\" value=\"%s\">\n"
        " <input type=\"hidden\" name=\"toggle-state\" value=\"%u\">\n"
--- 311,315 ----
  
     snprintf(form, size,
!       "<form method=\"GET\" action=\"client-tags\" style=\"display: inline\">\n"
        " <input type=\"hidden\" name=\"tag\" value=\"%s\">\n"
        " <input type=\"hidden\" name=\"toggle-state\" value=\"%u\">\n"
***************
*** 355,359 ****
     assert(parameters);
  
!    if (NULL == (exports = default_exports(csp, "show-client-tags")))
     {
        return JB_ERR_MEMORY;
--- 355,359 ----
     assert(parameters);
  
!    if (NULL == (exports = default_exports(csp, "client-tags")))
     {
        return JB_ERR_MEMORY;
***************
*** 440,444 ****
     }
  
!    return template_fill_for_cgi(csp, "show-client-tags", exports, rsp);
  }
  #endif /* def FEATURE_CLIENT_TAGS */
--- 440,444 ----
     }
  
!    return template_fill_for_cgi(csp, "client-tags", exports, rsp);
  }
  #endif /* def FEATURE_CLIENT_TAGS */


------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.