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__*/
131 long long int my_atoll (const char *nptr
);
136 char dirname
[MAXLEN
];
153 char parse_out
[MAXLEN
];
156 char datestimes
[MAXLEN
];
157 char ConfigFile
[MAXLEN
];
162 char day
[3], month
[4], year
[5];
168 char RemoveTempFiles
[4];
169 char ReplaceIndex
[256];
171 char OverwriteReport
[4];
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];
189 char AccessLog
[MAXLEN
];
191 char BgColor
[MAXLEN
];
192 char BgImage
[MAXLEN
];
193 char TxColor
[MAXLEN
];
194 char TxBgColor
[MAXLEN
];
195 char TiColor
[MAXLEN
];
196 char LogoImage
[MAXLEN
];
197 char LogoText
[MAXLEN
];
198 char LogoTextColor
[MAXLEN
];
201 char FontFace
[MAXLEN
];
202 char HeaderColor
[MAXLEN
];
203 char HeaderBgColor
[MAXLEN
];
204 char FontSize
[MAXLEN
];
205 char PasswdFile
[MAXLEN
];
206 char TempDir
[MAXLEN
];
207 char OutputDir
[MAXLEN
];
208 char OutputEmail
[MAXLEN
];
209 char TopuserSortField
[30];
210 char UserSortField
[30];
211 char TopuserSortOrder
[10];
212 char UserSortOrder
[10];
213 char UserAgentLog
[255];
215 char ExcludeHosts
[255];
216 char ExcludeUsers
[255];
218 char PerUserLimitFile
[255];
219 char PerUserLimit
[20];
221 char MaxElapsed
[255];
225 char UserInvalidChar
[255];
227 char GraphDaysBytesBarColor
[255];
229 char PrivacyString
[255];
230 char PrivacyStringColor
[30];
231 char IncludeUsers
[MAXLEN
];
232 char ExcludeString
[MAXLEN
];
233 char SuccessfulMsg
[5];
234 char TopUserFields
[255];
235 char UserReportFields
[255];
236 char DataFile
[MAXLEN
];
237 char DataFileDelimiter
[3];
238 char DataFileFields
[MAXLEN
];
239 char DataFileUrl
[20];
240 char SiteUserTimeDateType
[10];
241 char ShowReadStatistics
[5];
242 char IndexSortOrder
[5];
243 char DansGuardianConf
[MAXLEN
];
244 char DansguardianIgnoreDate
[10];
245 char SquidGuardConf
[MAXLEN
];
246 char SquidGuarddbHome
[255];
247 char SquidGuardLogFormat
[MAXLEN
];
248 char SquidGuardLogAlternate
[MAXLEN
];
249 char SquidguardIgnoreDate
[10];
250 char ShowSargInfo
[5];
251 char BytesInSitesUsersReport
[10];
252 char ShowSargLogo
[5];
253 char ParsedOutputLog
[MAXLEN
];
254 char ParsedOutputLogCompress
[255];
255 char DisplayedValues
[20];
256 char HeaderFontSize
[5];
257 char TitleFontSize
[5];
258 char wwwDocumentRoot
[MAXLEN
];
259 char ExternalCSSFile
[MAXLEN
];
261 char BlockImage
[512];
262 char NtlmUserFormat
[30];
274 char UserAuthentication
[10];
275 char AuthUserFile
[255];
279 char DownloadSuffix
[MAXLEN
];
299 char httplink
[MAXLEN
];
300 char html_old
[MAXLEN
];
310 char RealtimeTypes
[1024];
315 char RealtimeUnauthRec
[15];
322 int dansguardian_count
;
323 int squidguard_count
;
343 int AuthfailReportLimit
;
344 int DeniedReportLimit
;
345 int DownloadReportLimit
;
346 int SiteUsersReportLimit
;
347 int DansGuardianReportLimit
;
348 int SquidGuardReportLimit
;
351 int realtime_refresh
;
352 int realtime_access_log_lines
;
363 long long int nocost
;
372 struct dirent
*direntp
;