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
101 #if defined(HAVE_FOPEN64)
102 #define _FILE_OFFSET_BITS 64
103 #define MY_FOPEN fopen64
105 #define MY_FOPEN fopen
108 #if !defined(HAVE_BZERO)
109 #define bzero(mem,size) memset(mem,0,size)
112 #if defined(IBERTY_LIB) && !defined(HAVE_MKSTEMP)
113 int mkstemps(char *template, int suffixlen
);
114 #define mkstemp(template) mkstemps(template,0)
117 #if defined(__MINGW32__)
118 #define mkdir(p,m) _mkdir(p)
121 #define WIFEXITED(S) 1
125 #define WEXITSTATUS(S) (S)
128 #endif /*__MINGW32__*/
133 long long int my_atoll (const char *nptr
);
138 char dirname
[MAXLEN
];
155 char parse_out
[MAXLEN
];
158 char datestimes
[MAXLEN
];
159 char ConfigFile
[MAXLEN
];
164 char day
[3], month
[4], year
[5];
170 char RemoveTempFiles
[4];
171 char ReplaceIndex
[256];
173 char OverwriteReport
[4];
175 char RecordsWithoutUser
[20];
177 char MailUtility
[PATH_MAX
];
178 char TopSitesNum
[20];
180 char ExcludeCodes
[256];
181 char TopsitesSortField
[15];
182 char TopsitesSortType
[20];
183 char ReportType
[255];
184 char UserTabFile
[255];
192 char AccessLog
[MAXLOGS
][MAXLEN
];
193 int AccessLogFromCmdLine
;
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];
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
;