current cgiedit.c,1.88,1.89 w32log.c,1.49,1.50

Lee <[email protected]> Sat, 23 Jul 2016 17:23:45 +0000
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-serv29648/current

Modified Files:
	cgiedit.c w32log.c 
Log Message:
Log when privoxy is toggled on or off via cgi interface.
Highlight the "Info: Now toggled " on/off log message in the windows log viewer.



Index: cgiedit.c
===================================================================
RCS file: /cvsroot/ijbswa/current/cgiedit.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -C2 -d -r1.88 -r1.89
*** cgiedit.c	26 Feb 2016 12:29:38 -0000	1.88
--- cgiedit.c	23 Jul 2016 17:23:43 -0000	1.89
***************
*** 4408,4411 ****
--- 4408,4413 ----
     }
  
+    log_error(LOG_LEVEL_INFO, "Now toggled %s.", global_toggle_state ? "ON" : "OFF");
+ 
     if (NULL == (exports = default_exports(csp, "toggle")))
     {

Index: w32log.c
===================================================================
RCS file: /cvsroot/ijbswa/current/w32log.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** w32log.c	27 Dec 2015 12:53:54 -0000	1.49
--- w32log.c	23 Jul 2016 17:23:43 -0000	1.50
***************
*** 42,45 ****
--- 42,46 ----
  #define STRICT
  #endif
+ #include <winsock2.h>    /* i686-w64-mingw32-gcc compiler warning if winsock2.h is included after windows.h */
  #include <windows.h>
  #include <richedit.h>
***************
*** 57,65 ****
  const char w32res_h_rcs[] = W32RES_H_VERSION;
  
- #ifdef __MINGW32__
- #include "cygwin.h"
- const char cygwin_h_rcs[] = CYGWIN_H_VERSION;
- #endif
- 
  const char w32log_h_rcs[] = W32LOG_H_VERSION;
  
--- 58,61 ----
***************
*** 173,176 ****
--- 169,173 ----
     { "Connect: Created new connection to", STYLE_HIGHLIGHT },
     { "hung up on us",               STYLE_HIGHLIGHT },
+    { "Info: Now toggled ",          STYLE_HIGHLIGHT },
     { "Crunching Referer:",          STYLE_HIGHLIGHT },
     /* what are all the possible error strings?? */


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev