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
];
154 char parse_out
[MAXLEN
];
157 char datestimes
[MAXLEN
];
158 char ConfigFile
[MAXLEN
];
163 char day
[3], month
[4], year
[5];
169 char ReplaceIndex
[256];
173 char RecordsWithoutUser
[20];
175 char MailUtility
[PATH_MAX
];
176 char TopSitesNum
[20];
178 char ExcludeCodes
[256];
179 char TopsitesSortField
[15];
180 char TopsitesSortType
[20];
181 char ReportType
[255];
182 char UserTabFile
[255];
190 char AccessLog
[MAXLOGS
][MAXLEN
];
191 int AccessLogFromCmdLine
;
193 char BgColor
[MAXLEN
];
194 char BgImage
[MAXLEN
];
195 char TxColor
[MAXLEN
];
196 char TxBgColor
[MAXLEN
];
197 char TiColor
[MAXLEN
];
198 char LogoImage
[MAXLEN
];
199 char LogoText
[MAXLEN
];
200 char LogoTextColor
[MAXLEN
];
203 char FontFace
[MAXLEN
];
204 char HeaderColor
[MAXLEN
];
205 char HeaderBgColor
[MAXLEN
];
206 char FontSize
[MAXLEN
];
207 char PasswdFile
[MAXLEN
];
208 char TempDir
[MAXLEN
];
209 char OutputDir
[MAXLEN
];
210 char OutputEmail
[MAXLEN
];
211 char TopuserSortField
[30];
212 char UserSortField
[30];
213 char TopuserSortOrder
[10];
214 char UserSortOrder
[10];
215 char UserAgentLog
[255];
217 char ExcludeHosts
[255];
218 char ExcludeUsers
[255];
220 char PerUserLimitFile
[255];
223 char MaxElapsed
[255];
227 char UserInvalidChar
[255];
229 char GraphDaysBytesBarColor
[255];
231 char PrivacyString
[255];
232 char PrivacyStringColor
[30];
233 char IncludeUsers
[MAXLEN
];
234 char ExcludeString
[MAXLEN
];
236 char TopUserFields
[255];
237 char UserReportFields
[255];
238 char DataFile
[MAXLEN
];
239 char DataFileDelimiter
[3];
240 char DataFileFields
[MAXLEN
];
241 char DataFileUrl
[20];
242 char SiteUserTimeDateType
[10];
243 int ShowReadStatistics
;
244 char IndexSortOrder
[5];
245 char DansGuardianConf
[MAXLEN
];
246 int DansguardianIgnoreDate
;
247 char SquidGuardConf
[MAXLEN
];
248 char SquidGuarddbHome
[255];
249 char SquidGuardLogFormat
[MAXLEN
];
250 char SquidGuardLogAlternate
[MAXLEN
];
251 int SquidguardIgnoreDate
;
253 int BytesInSitesUsersReport
;
255 char ParsedOutputLog
[MAXLEN
];
256 char ParsedOutputLogCompress
[512];
257 char DisplayedValues
[20];
258 char HeaderFontSize
[5];
259 char TitleFontSize
[5];
260 char wwwDocumentRoot
[MAXLEN
];
261 char ExternalCSSFile
[MAXLEN
];
263 char BlockImage
[512];
264 char NtlmUserFormat
[30];
276 int UserAuthentication
;
277 char AuthUserFile
[255];
300 char httplink
[MAXLEN
];
301 char html_old
[MAXLEN
];
311 char RealtimeTypes
[1024];
316 char RealtimeUnauthRec
[15];
323 int dansguardian_count
;
324 int squidguard_count
;
344 int AuthfailReportLimit
;
345 int DeniedReportLimit
;
346 int DownloadReportLimit
;
347 int SiteUsersReportLimit
;
348 int DansGuardianReportLimit
;
349 int SquidGuardReportLimit
;
352 int realtime_refresh
;
353 int realtime_access_log_lines
;
364 long long int nocost
;
373 struct dirent
*direntp
;