3 #define LOADCFG_H_VERSION "$Id: loadcfg.h,v 1.1 2001/05/13 21:57:06 administrator Exp $"
4 /*********************************************************************
6 * File : $Source: /home/administrator/cvs/ijb/loadcfg.h,v $
8 * Purpose : Loads settings from the configuration file into
9 * global variables. This file contains both the
10 * routine to load the configuration and the global
11 * variables it writes to.
13 * Copyright : Written by and Copyright (C) 2001 the SourceForge
14 * IJBSWA team. http://ijbswa.sourceforge.net
16 * Based on the Internet Junkbuster originally written
17 * by and Copyright (C) 1997 Anonymous Coders and
18 * Junkbusters Corporation. http://www.junkbusters.com
20 * This program is free software; you can redistribute it
21 * and/or modify it under the terms of the GNU General
22 * Public License as published by the Free Software
23 * Foundation; either version 2 of the License, or (at
24 * your option) any later version.
26 * This program is distributed in the hope that it will
27 * be useful, but WITHOUT ANY WARRANTY; without even the
28 * implied warranty of MERCHANTABILITY or FITNESS FOR A
29 * PARTICULAR PURPOSE. See the GNU General Public
30 * License for more details.
32 * The GNU General Public License should be included with
33 * this file. If not, you can view it at
34 * http://www.gnu.org/copyleft/gpl.html
35 * or write to the Free Software Foundation, Inc., 59
36 * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
41 *********************************************************************/
44 /* Declare struct FILE for vars and funcs. */
47 /* All of our project's data types. */
54 /* Global variables */
57 /* indicates if ijb is enabled */
58 extern int g_bToggleIJB;
62 extern int multi_threaded;
64 #if defined(DETECT_MSIE_IMAGES) || defined(USE_IMAGE_LIST)
66 extern const char *tinygifurl;
\r
67 #endif /* defined(DETECT_MSIE_IMAGES) || defined(USE_IMAGE_LIST) */
69 extern const char *logfile;
71 extern const char *configfile;
74 extern const char *aclfile;
75 #endif /* def ACL_FILES */
77 extern const char *blockfile;
78 extern const char *cookiefile;
79 extern const char *forwardfile;
82 extern const char *imagefile;
83 #endif /* def USE_IMAGE_LIST */
86 extern const char *popupfile;
87 #endif /* def KILLPOPUPS */
90 extern const char *trustfile;
91 #endif /* def TRUST_FILES */
94 extern const char *re_filterfile;
98 extern int re_filter_all;
102 extern int kill_all_popups; /* Not recommended really .. */
103 #endif /* def KILLPOPUPS */
106 extern const char *jarfile;
108 #endif /* def JAR_FILES */
110 extern const char *referrer;
111 extern const char *uagent;
112 extern const char *from;
114 #ifndef SPLIT_PROXY_ARGS
115 extern const char *suppress_message;
116 #endif /* ndef SPLIT_PROXY_ARGS */
118 extern int suppress_vanilla_wafer;
119 extern int add_forwarded;
121 extern struct list wafer_list[];
122 extern struct list xtra_list[];
125 extern struct list trust_info[];
126 extern struct url_spec *trust_list[];
127 #endif /* def TRUST_FILES */
129 extern const char *haddr;
132 #ifndef SPLIT_PROXY_ARGS
133 extern int suppress_blocklists; /* suppress listing sblock and simage */
134 #endif /* ndef SPLIT_PROXY_ARGS */
136 extern struct proxy_args proxy_args[1];
138 extern int configret;
139 extern int config_changed;
142 /* The load_config function is now going to call:
143 * init_proxy_args, so it will need argc and argv.
144 * Since load_config will also be a signal handler,
145 * we need to have these globally available.
148 extern const char **Argv;
151 extern void load_config( int );
154 /* Revision control strings from this header and associated .c file */
155 extern const char loadcfg_rcs[];
156 extern const char loadcfg_h_rcs[];
162 #endif /* ndef _JCC_H */