3 #include "btree_cache.h"
20 #ifdef HAVE_SYS_TIME_H
26 #ifdef HAVE_SYS_RESOURCE_H
27 #include <sys/resource.h>
32 #if defined(HAVE_SYS_DIRENT_H) && !defined(HAVE_DIRENT_H)
33 #include <sys/dirent.h>
38 #ifdef HAVE_SYS_SOCKET_H
39 #include <sys/socket.h>
47 #ifdef HAVE_NETINET_IN_H
48 #include <netinet/in.h>
50 #ifdef HAVE_ARPA_INET_H
51 #include <arpa/inet.h>
53 #ifdef HAVE_SYS_STAT_H
62 #ifdef HAVE_SYS_WAIT_H
80 #ifdef HAVE_GDFONTMB_H
89 #ifdef HAVE_INTTYPES_H
107 #ifdef HAVE_EXECINFO_H
108 #include <execinfo.h>
111 #if defined(HAVE_FOPEN64)
112 #define _FILE_OFFSET_BITS 64
113 #define MY_FOPEN fopen64
115 #define MY_FOPEN fopen
118 #if !defined(HAVE_BZERO)
119 #define bzero(mem,size) memset(mem,0,size)
122 #if defined(IBERTY_LIB) && !defined(HAVE_MKSTEMP)
123 int mkstemps(char *template, int suffixlen
);
124 #define mkstemp(template) mkstemps(template,0)
127 #if defined(__MINGW32__)
128 #define mkdir(p,m) _mkdir(p)
131 #define WIFEXITED(S) 1
135 #define WEXITSTATUS(S) (S)
138 #endif /*__MINGW32__*/
146 char dirname
[MAXLEN
];
161 char parse_out
[MAXLEN
];
164 char datestimes
[MAXLEN
];
165 char ConfigFile
[MAXLEN
];
170 char day
[3], month
[4], year
[5];
176 char ReplaceIndex
[256];
180 char RecordsWithoutUser
[20];
182 char MailUtility
[PATH_MAX
];
183 char TopSitesNum
[20];
185 char ExcludeCodes
[256];
186 char TopsitesSortField
[15];
187 char TopsitesSortType
[20];
188 char ReportType
[255];
189 char UserTabFile
[255];
197 char AccessLog
[MAXLOGS
][MAXLEN
];
198 int AccessLogFromCmdLine
;
200 char BgColor
[MAXLEN
];
201 char BgImage
[MAXLEN
];
202 char TxColor
[MAXLEN
];
203 char TxBgColor
[MAXLEN
];
204 char TiColor
[MAXLEN
];
205 char LogoImage
[MAXLEN
];
206 char LogoText
[MAXLEN
];
207 char LogoTextColor
[MAXLEN
];
210 char FontFace
[MAXLEN
];
211 char HeaderColor
[MAXLEN
];
212 char HeaderBgColor
[MAXLEN
];
213 char FontSize
[MAXLEN
];
214 char PasswdFile
[MAXLEN
];
215 char TempDir
[MAXLEN
];
216 char OutputDir
[MAXLEN
];
217 char OutputEmail
[MAXLEN
];
218 char TopuserSortField
[30];
219 char UserSortField
[30];
220 char TopuserSortOrder
[10];
221 char UserSortOrder
[10];
222 char UserAgentLog
[255];
224 char ExcludeHosts
[255];
225 char ExcludeUsers
[255];
227 char PerUserLimitFile
[255];
230 char MaxElapsed
[255];
234 char UserInvalidChar
[255];
236 char GraphDaysBytesBarColor
[255];
238 char PrivacyString
[255];
239 char PrivacyStringColor
[30];
240 char IncludeUsers
[MAXLEN
];
241 char ExcludeString
[MAXLEN
];
243 char TopUserFields
[255];
244 char UserReportFields
[255];
245 char DataFile
[MAXLEN
];
246 char DataFileDelimiter
[3];
247 char DataFileFields
[MAXLEN
];
248 char DataFileUrl
[20];
249 char SiteUserTimeDateType
[10];
250 int ShowReadStatistics
;
251 char IndexSortOrder
[5];
252 char DansGuardianConf
[MAXLEN
];
253 int DansguardianIgnoreDate
;
254 char SquidGuardConf
[MAXLEN
];
255 char SquidGuarddbHome
[255];
256 char SquidGuardLogFormat
[MAXLEN
];
257 char SquidGuardLogAlternate
[MAXLEN
];
258 int SquidguardIgnoreDate
;
260 int BytesInSitesUsersReport
;
262 char ParsedOutputLog
[MAXLEN
];
263 char ParsedOutputLogCompress
[512];
264 char DisplayedValues
[20];
265 char HeaderFontSize
[5];
266 char TitleFontSize
[5];
267 char wwwDocumentRoot
[MAXLEN
];
268 char ExternalCSSFile
[MAXLEN
];
270 char BlockImage
[512];
271 char NtlmUserFormat
[30];
283 int UserAuthentication
;
284 char AuthUserFile
[255];
307 char httplink
[MAXLEN
];
308 char html_old
[MAXLEN
];
318 char RealtimeTypes
[1024];
323 char RealtimeUnauthRec
[15];
325 char LDAPBindDN
[512];
326 char LDAPBindPW
[255];
328 char LDAPProtocolVersion
[3];
329 char LDAPBaseSearch
[255];
330 char LDAPFilterSearch
[512];
331 char LDAPTargetAttr
[64];
338 int dansguardian_count
;
339 int squidguard_count
;
359 int AuthfailReportLimit
;
360 int DeniedReportLimit
;
361 int DownloadReportLimit
;
362 int SiteUsersReportLimit
;
363 int DansGuardianReportLimit
;
364 int SquidGuardReportLimit
;
367 int realtime_refresh
;
368 int realtime_access_log_lines
;
379 long long int nocost
;
388 struct dirent
*direntp
;