00001 #ifndef CGIEDIT_H_INCLUDED 00002 #define CGIEDIT_H_INCLUDED 00003 #define CGIEDIT_H_VERSION "$Id: cgiedit.h,v 2.0 2002/06/04 14:34:21 jongfoster Exp $" 00004 /* ****************************************************************** 00005 * $Source: /cvsroot/ijbswa/current/src/cgiedit.h,v $ 00006 * ****************************************************************** 00007 * 00008 * Written by and Copyright (C) 2001 the SourceForge 00009 * Privoxy team. http://www.privoxy.org/ 00010 * 00011 * Based on the Internet Junkbuster originally written 00012 * by and Copyright (C) 1997 Anonymous Coders and 00013 * Junkbusters Corporation. http://www.junkbusters.com 00014 * 00015 * This program is free software; you can redistribute it 00016 * and/or modify it under the terms of the GNU General 00017 * Public License as published by the Free Software 00018 * Foundation; either version 2 of the License, or (at 00019 * your option) any later version. 00020 * 00021 * This program is distributed in the hope that it will 00022 * be useful, but WITHOUT ANY WARRANTY; without even the 00023 * implied warranty of MERCHANTABILITY or FITNESS FOR A 00024 * PARTICULAR PURPOSE. See the GNU General Public 00025 * License for more details. 00026 * 00027 * The GNU General Public License should be included with 00028 * this file. If not, you can view it at 00029 * http://www.gnu.org/copyleft/gpl.html 00030 * or write to the Free Software Foundation, Inc., 59 00031 * Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00032 * 00033 * *****************************************************************/ 00034 /** 00035 * @file 00036 * 00037 * CGI-based actionsfile editor. 00038 * 00039 * Functions declared include: 00040 * 00041 * 00042 * 00043 * $Log: cgiedit.h,v $ 00044 * Revision 2.0 2002/06/04 14:34:21 jongfoster 00045 * Moving source files to src/ 00046 * 00047 * Revision 1.7 2002/03/26 22:29:54 swa 00048 * we have a new homepage! 00049 * 00050 * Revision 1.6 2002/03/24 13:25:43 swa 00051 * name change related issues 00052 * 00053 * Revision 1.5 2002/01/22 23:24:48 jongfoster 00054 * Adding edit-actions-section-swap 00055 * 00056 * Revision 1.4 2001/11/13 00:28:51 jongfoster 00057 * Adding new CGIs for use by non-JavaScript browsers: 00058 * edit-actions-url-form 00059 * edit-actions-add-url-form 00060 * edit-actions-remove-url-form 00061 * 00062 * Revision 1.3 2001/10/23 21:48:19 jongfoster 00063 * Cleaning up error handling in CGI functions - they now send back 00064 * a HTML error page and should never cause a FATAL error. (Fixes one 00065 * potential source of "denial of service" attacks). 00066 * 00067 * CGI actions file editor that works and is actually useful. 00068 * 00069 * Ability to toggle JunkBuster remotely using a CGI call. 00070 * 00071 * You can turn off both the above features in the main configuration 00072 * file, e.g. if you are running a multi-user proxy. 00073 * 00074 * Revision 1.2 2001/10/14 22:12:49 jongfoster 00075 * New version of CGI-based actionsfile editor. 00076 * Major changes, including: 00077 * - Completely new file parser and file output routines 00078 * - edit-actions CGI renamed edit-actions-for-url 00079 * - All CGIs now need a filename parameter, except for... 00080 * - New CGI edit-actions which doesn't need a filename, 00081 * to allow you to start the editor up. 00082 * - edit-actions-submit now works, and now automatically 00083 * redirects you back to the main edit-actions-list handler. 00084 * 00085 * Revision 1.1 2001/09/16 15:47:37 jongfoster 00086 * First version of CGI-based edit interface. This is very much a 00087 * work-in-progress, and you can't actually use it to edit anything 00088 * yet. You must #define FEATURE_CGI_EDIT_ACTIONS for these changes 00089 * to have any effect. 00090 * 00091 * 00092 */ 00093 /* *****************************************************************/ 00094 00095 00096 #include "project.h" 00097 00098 #ifdef __cplusplus 00099 extern "C" { 00100 #endif 00101 00102 /* 00103 * CGI functions 00104 */ 00105 #ifdef FEATURE_CGI_EDIT_ACTIONS 00106 extern jb_err cgi_edit_actions (struct client_state *csp, 00107 struct http_response *rsp, 00108 const struct map *parameters); 00109 extern jb_err cgi_edit_actions_for_url(struct client_state *csp, 00110 struct http_response *rsp, 00111 const struct map *parameters); 00112 extern jb_err cgi_edit_actions_list (struct client_state *csp, 00113 struct http_response *rsp, 00114 const struct map *parameters); 00115 extern jb_err cgi_edit_actions_submit (struct client_state *csp, 00116 struct http_response *rsp, 00117 const struct map *parameters); 00118 extern jb_err cgi_edit_actions_url (struct client_state *csp, 00119 struct http_response *rsp, 00120 const struct map *parameters); 00121 extern jb_err cgi_edit_actions_url_form(struct client_state *csp, 00122 struct http_response *rsp, 00123 const struct map *parameters); 00124 extern jb_err cgi_edit_actions_add_url(struct client_state *csp, 00125 struct http_response *rsp, 00126 const struct map *parameters); 00127 extern jb_err cgi_edit_actions_add_url_form(struct client_state *csp, 00128 struct http_response *rsp, 00129 const struct map *parameters); 00130 extern jb_err cgi_edit_actions_remove_url (struct client_state *csp, 00131 struct http_response *rsp, 00132 const struct map *parameters); 00133 extern jb_err cgi_edit_actions_remove_url_form(struct client_state *csp, 00134 struct http_response *rsp, 00135 const struct map *parameters); 00136 extern jb_err cgi_edit_actions_section_remove(struct client_state *csp, 00137 struct http_response *rsp, 00138 const struct map *parameters); 00139 extern jb_err cgi_edit_actions_section_add (struct client_state *csp, 00140 struct http_response *rsp, 00141 const struct map *parameters); 00142 extern jb_err cgi_edit_actions_section_swap (struct client_state *csp, 00143 struct http_response *rsp, 00144 const struct map *parameters); 00145 extern jb_err cgi_toggle(struct client_state *csp, 00146 struct http_response *rsp, 00147 const struct map *parameters); 00148 #endif /* def FEATURE_CGI_EDIT_ACTIONS */ 00149 00150 00151 /* Revision control strings from this header and associated .c file */ 00152 00153 /** Version information about cgiedit.c. */ 00154 extern const char cgiedit_rcs[]; 00155 00156 /** Version information about cgiedit.h. */ 00157 extern const char cgiedit_h_rcs[]; 00158 00159 #ifdef __cplusplus 00160 } /* extern "C" */ 00161 #endif 00162 00163 #endif /* ndef CGI_H_INCLUDED */ 00164 00165 /* 00166 Local Variables: 00167 tab-width: 3 00168 end: 00169 */
1.2.15