19 #ifdef HAVE_SYS_TIME_H
25 #ifdef HAVE_SYS_RESOURCE_H
26 #include <sys/resource.h>
31 #if defined(HAVE_SYS_DIRENT_H) && !defined(HAVE_DIRENT_H)
32 #include <sys/dirent.h>
37 #ifdef HAVE_SYS_SOCKET_H
38 #include <sys/socket.h>
46 #ifdef HAVE_NETINET_IN_H
47 #include <netinet/in.h>
49 #ifdef HAVE_ARPA_INET_H
50 #include <arpa/inet.h>
52 #ifdef HAVE_SYS_STAT_H
61 #ifdef HAVE_SYS_WAIT_H
79 #ifdef HAVE_GDFONTMB_H
88 #ifdef HAVE_INTTYPES_H
100 #ifdef HAVE_EXECINFO_H
101 #include <execinfo.h>
104 #if defined(HAVE_FOPEN64)
105 #define _FILE_OFFSET_BITS 64
106 #define MY_FOPEN fopen64
108 #define MY_FOPEN fopen
111 #if !defined(HAVE_BZERO)
112 #define bzero(mem,size) memset(mem,0,size)
115 #if defined(IBERTY_LIB) && !defined(HAVE_MKSTEMP)
116 int mkstemps(char *template, int suffixlen
);
117 #define mkstemp(template) mkstemps(template,0)
120 #if defined(__MINGW32__)
121 #define mkdir(p,m) _mkdir(p)
124 #define WIFEXITED(S) 1
128 #define WEXITSTATUS(S) (S)
131 #endif /*__MINGW32__*/
139 char dirname
[MAXLEN
];
156 char parse_out
[MAXLEN
];
159 char datestimes
[MAXLEN
];
160 char ConfigFile
[MAXLEN
];
165 char day
[3], month
[4], year
[5];
172 char ReplaceIndex
[256];
176 char RecordsWithoutUser
[20];
178 char MailUtility
[PATH_MAX
];
179 char TopSitesNum
[20];
181 char ExcludeCodes
[256];
182 char TopsitesSortField
[15];
183 char TopsitesSortType
[20];
184 char ReportType
[255];
185 char UserTabFile
[255];
193 char AccessLog
[MAXLOGS
][MAXLEN
];
194 int AccessLogFromCmdLine
;
196 char BgColor
[MAXLEN
];
197 char BgImage
[MAXLEN
];
198 char TxColor
[MAXLEN
];
199 char TxBgColor
[MAXLEN
];
200 char TiColor
[MAXLEN
];
201 char LogoImage
[MAXLEN
];
202 char LogoText
[MAXLEN
];
203 char LogoTextColor
[MAXLEN
];
206 char FontFace
[MAXLEN
];
207 char HeaderColor
[MAXLEN
];
208 char HeaderBgColor
[MAXLEN
];
209 char FontSize
[MAXLEN
];
210 char PasswdFile
[MAXLEN
];
211 char TempDir
[MAXLEN
];
212 char OutputDir
[MAXLEN
];
213 char OutputEmail
[MAXLEN
];
214 char TopuserSortField
[30];
215 char UserSortField
[30];
216 char TopuserSortOrder
[10];
217 char UserSortOrder
[10];
218 char UserAgentLog
[255];
220 char ExcludeHosts
[255];
221 char ExcludeUsers
[255];
223 char PerUserLimitFile
[255];
226 char MaxElapsed
[255];
230 char UserInvalidChar
[255];
232 char GraphDaysBytesBarColor
[255];
234 char PrivacyString
[255];
235 char PrivacyStringColor
[30];
236 char IncludeUsers
[MAXLEN
];
237 char ExcludeString
[MAXLEN
];
239 char TopUserFields
[255];
240 char UserReportFields
[255];
241 char DataFile
[MAXLEN
];
242 char DataFileDelimiter
[3];
243 char DataFileFields
[MAXLEN
];
244 char DataFileUrl
[20];
245 char SiteUserTimeDateType
[10];
246 int ShowReadStatistics
;
247 char IndexSortOrder
[5];
248 char DansGuardianConf
[MAXLEN
];
249 int DansguardianIgnoreDate
;
250 char SquidGuardConf
[MAXLEN
];
251 char SquidGuarddbHome
[255];
252 char SquidGuardLogFormat
[MAXLEN
];
253 char SquidGuardLogAlternate
[MAXLEN
];
254 int SquidguardIgnoreDate
;
256 int BytesInSitesUsersReport
;
258 char ParsedOutputLog
[MAXLEN
];
259 char ParsedOutputLogCompress
[255];
260 char DisplayedValues
[20];
261 char HeaderFontSize
[5];
262 char TitleFontSize
[5];
263 char wwwDocumentRoot
[MAXLEN
];
264 char ExternalCSSFile
[MAXLEN
];
266 char BlockImage
[512];
267 char NtlmUserFormat
[30];
279 int UserAuthentication
;
280 char AuthUserFile
[255];
303 char httplink
[MAXLEN
];
304 char html_old
[MAXLEN
];
314 char RealtimeTypes
[1024];
319 char RealtimeUnauthRec
[15];
326 int dansguardian_count
;
327 int squidguard_count
;
347 int AuthfailReportLimit
;
348 int DeniedReportLimit
;
349 int DownloadReportLimit
;
350 int SiteUsersReportLimit
;
351 int DansGuardianReportLimit
;
352 int SquidGuardReportLimit
;
355 int realtime_refresh
;
356 int realtime_access_log_lines
;
367 long long int nocost
;
376 struct dirent
*direntp
;