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
105 #if defined(HAVE_FOPEN64)
106 #define _FILE_OFFSET_BITS 64
107 #define MY_FOPEN fopen64
109 #define MY_FOPEN fopen
112 #if !defined(HAVE_BZERO)
113 #define bzero(mem,size) memset(mem,0,size)
116 #if defined(IBERTY_LIB) && !defined(HAVE_MKSTEMP)
117 int mkstemps(char *template, int suffixlen
);
118 #define mkstemp(template) mkstemps(template,0)
121 #if defined(__MINGW32__)
122 #define mkdir(p,m) _mkdir(p)
125 #define WIFEXITED(S) 1
129 #define WEXITSTATUS(S) (S)
132 #endif /*__MINGW32__*/
135 long long int my_atoll (const char *nptr
);
140 char dirname
[MAXLEN
];
157 char parse_out
[MAXLEN
];
160 char datestimes
[MAXLEN
];
161 char ConfigFile
[MAXLEN
];
166 char day
[3], month
[4], year
[5];
172 char RemoveTempFiles
[4];
173 char ReplaceIndex
[256];
175 char OverwriteReport
[4];
177 char RecordsWithoutUser
[20];
179 char MailUtility
[PATH_MAX
];
180 char TopSitesNum
[20];
182 char ExcludeCodes
[256];
183 char TopsitesSortField
[15];
184 char TopsitesSortType
[20];
185 char ReportType
[255];
186 char UserTabFile
[255];
193 char AccessLog
[MAXLEN
];
195 char BgColor
[MAXLEN
];
196 char BgImage
[MAXLEN
];
197 char TxColor
[MAXLEN
];
198 char TxBgColor
[MAXLEN
];
199 char TiColor
[MAXLEN
];
200 char LogoImage
[MAXLEN
];
201 char LogoText
[MAXLEN
];
202 char LogoTextColor
[MAXLEN
];
205 char FontFace
[MAXLEN
];
206 char HeaderColor
[MAXLEN
];
207 char HeaderBgColor
[MAXLEN
];
208 char FontSize
[MAXLEN
];
209 char PasswdFile
[MAXLEN
];
210 char TempDir
[MAXLEN
];
211 char OutputDir
[MAXLEN
];
212 char OutputEmail
[MAXLEN
];
213 char TopuserSortField
[30];
214 char UserSortField
[30];
215 char TopuserSortOrder
[10];
216 char UserSortOrder
[10];
217 char UserAgentLog
[255];
219 char ExcludeHosts
[255];
220 char ExcludeUsers
[255];
222 char PerUserLimitFile
[255];
223 char PerUserLimit
[20];
225 char MaxElapsed
[255];
229 char UserInvalidChar
[255];
231 char GraphDaysBytesBarColor
[255];
233 char PrivacyString
[255];
234 char PrivacyStringColor
[30];
235 char IncludeUsers
[MAXLEN
];
236 char ExcludeString
[MAXLEN
];
237 char SuccessfulMsg
[5];
238 char TopUserFields
[255];
239 char UserReportFields
[255];
240 char DataFile
[MAXLEN
];
241 char DataFileDelimiter
[3];
242 char DataFileFields
[MAXLEN
];
243 char DataFileUrl
[20];
244 char SiteUserTimeDateType
[10];
245 char ShowReadStatistics
[5];
246 char IndexSortOrder
[5];
247 char DansGuardianConf
[MAXLEN
];
248 char DansguardianIgnoreDate
[10];
249 char SquidGuardConf
[MAXLEN
];
250 char SquidGuarddbHome
[255];
251 char SquidGuardLogFormat
[MAXLEN
];
252 char SquidGuardLogAlternate
[MAXLEN
];
253 char SquidguardIgnoreDate
[10];
254 char ShowSargInfo
[5];
255 char BytesInSitesUsersReport
[10];
256 char ShowSargLogo
[5];
257 char ParsedOutputLog
[MAXLEN
];
258 char ParsedOutputLogCompress
[255];
259 char DisplayedValues
[20];
260 char HeaderFontSize
[5];
261 char TitleFontSize
[5];
262 char wwwDocumentRoot
[MAXLEN
];
263 char ExternalCSSFile
[MAXLEN
];
265 char BlockImage
[512];
266 char NtlmUserFormat
[30];
278 char UserAuthentication
[10];
279 char AuthUserFile
[255];
283 char DownloadSuffix
[MAXLEN
];
303 char httplink
[MAXLEN
];
304 char html_old
[MAXLEN
];
314 char RealtimeTypes
[1024];
319 char RealtimeUnauthRec
[15];
321 char LDAPBindDN
[512];
322 char LDAPBindPW
[255];
324 char LDAPProtocolVersion
[3];
325 char LDAPBaseSearch
[255];
326 char LDAPFilterSearch
[512];
327 char LDAPTargetAttr
[64];
334 int dansguardian_count
;
335 int squidguard_count
;
355 int AuthfailReportLimit
;
356 int DeniedReportLimit
;
357 int DownloadReportLimit
;
358 int SiteUsersReportLimit
;
359 int DansGuardianReportLimit
;
360 int SquidGuardReportLimit
;
363 int realtime_refresh
;
364 int realtime_access_log_lines
;
375 long long int nocost
;
384 struct dirent
*direntp
;