]> git.ipfire.org Git - thirdparty/sarg.git/blob - include/conf.h
Use the correct format for off_t on amd64.
[thirdparty/sarg.git] / include / conf.h
1
2 #include "info.h"
3
4 #if HAVE_STDIO_H
5 #include <stdio.h>
6 #endif
7 #if HAVE_STDLIB_H
8 #include <stdlib.h>
9 #endif
10 #if HAVE_STRING_H
11 #include <string.h>
12 #endif
13 #if HAVE_STRINGS_H
14 #include <strings.h>
15 #endif
16 #if HAVE_SYS_TIME_H
17 #include <sys/time.h>
18 #endif
19 #if HAVE_TIME_H
20 #include <time.h>
21 #endif
22 #if HAVE_SYS_RESOURCE_H
23 #include <sys/resource.h>
24 #endif
25 #if HAVE_UNISTD_H
26 #include <unistd.h>
27 #endif
28 #if HAVE_SYS_DIRENT_H && !HAVE_DIRENT_H
29 #include <sys/dirent.h>
30 #endif
31 #if HAVE_DIRENT_H
32 #include <dirent.h>
33 #endif
34 #if HAVE_SYS_SOCKET_H
35 #include <sys/socket.h>
36 #endif
37 #if HAVE_NETDB_H
38 #include <netdb.h>
39 #endif
40 #if HAVE_TYPES_H
41 #include <types.h>
42 #endif
43 #if HAVE_NETINET_IN_H
44 #include <netinet/in.h>
45 #endif
46 #if HAVE_ARPA_INET_H
47 #include <arpa/inet.h>
48 #endif
49 #if HAVE_SYS_STAT_H
50 #include <sys/stat.h>
51 #endif
52 #if HAVE_CTYPE_H
53 #include <ctype.h>
54 #endif
55 #if HAVE_ERRNO_H
56 #include <errno.h>
57 #endif
58 #if HAVE_SYS_WAIT_H
59 #include <sys/wait.h>
60 #endif
61 #if HAVE_GD_H
62 #include <gd.h>
63 #define HAVE_GD
64 gdImagePtr im;
65 gdPoint points[4];
66 #endif
67 #if HAVE_GDFONTL_H
68 #include <gdfontl.h>
69 #endif
70 #if HAVE_GDFONTT_H
71 #include <gdfontt.h>
72 #endif
73 #if HAVE_GDFONTS_H
74 #include <gdfonts.h>
75 #endif
76 #if HAVE_GDFONTMB_H
77 #include <gdfontmb.h>
78 #endif
79 #if HAVE_GDFONTG_H
80 #include <gdfontg.h>
81 #endif
82 #if HAVE_STDARG_H
83 #include <stdarg.h>
84 #endif
85 #if HAVE_INTTYPES_H
86 #include <inttypes.h>
87 #endif
88
89 #if HAVE_FOPEN64
90 #define _FILE_OFFSET_BITS 64
91 #define MY_FOPEN fopen64
92 #else
93 #define MY_FOPEN fopen
94 #endif
95
96
97 #define MAXLEN 20000
98 long long int my_atoll (const char *nptr);
99
100 FILE *fp_tt;
101
102 char outdir[MAXLEN];
103 char dirname[MAXLEN];
104 char buf[MAXLEN];
105 char url[MAXLEN];
106 char urly[MAXLEN];
107 char user[MAXLEN];
108 char period[MAXLEN];
109 char msg[1024];
110 char per_hour[128];
111 char code[MAXLEN];
112 char code2[MAXLEN];
113 char tmp[MAXLEN];
114 char tmp2[MAXLEN];
115 char tmp3[MAXLEN];
116 char tmp4[MAXLEN];
117 char tmp5[MAXLEN];
118 char tmp6[MAXLEN];
119 char tmp7[MAXLEN];
120 char parse_out[MAXLEN];
121 char arqtt[MAXLEN];
122 char html[MAXLEN];
123 char datestimes[MAXLEN];
124 char ConfigFile[MAXLEN];
125 char href[MAXLEN];
126 char href2[MAXLEN];
127 char href3[MAXLEN];
128 char df[20];
129 char day[3], month[4], year[5];
130 char nmonth[30];
131 char ltext110[50];
132 char cdfrom[30];
133 char cduntil[30];
134 char LastLog[5];
135 char RemoveTempFiles[4];
136 char ReplaceIndex[256];
137 char Index[20];
138 char OverwriteReport[4];
139 char u2[255];
140 char RecordsWithoutUser[20];
141 char UseComma[4];
142 char MailUtility[6];
143 char TopSitesNum[20];
144 char TopUsersNum[20];
145 char ExcludeCodes[256];
146 char TopsitesSortField[15];
147 char TopsitesSortType[20];
148 char ReportType[255];
149 char UserTabFile[255];
150 char warea[MAXLEN];
151 char name[MAXLEN];
152 char LongUrl[20];
153 char Ip2Name[20];
154 char language[255];
155 char bufy[MAXLEN];
156 char AccessLog[MAXLEN];
157 char Title[MAXLEN];
158 char BgColor[MAXLEN];
159 char BgImage[MAXLEN];
160 char TxColor[MAXLEN];
161 char TxBgColor[MAXLEN];
162 char TiColor[MAXLEN];
163 char LogoImage[MAXLEN];
164 char LogoText[MAXLEN];
165 char LogoTextColor[MAXLEN];
166 char Width[MAXLEN];
167 char Height[MAXLEN];
168 char FontFace[MAXLEN];
169 char HeaderColor[MAXLEN];
170 char HeaderBgColor[MAXLEN];
171 char FontSize[MAXLEN];
172 char PasswdFile[MAXLEN];
173 char TempDir[MAXLEN];
174 char OutputDir[MAXLEN];
175 char OutputEmail[MAXLEN];
176 char TopuserSortField[30];
177 char UserSortField[30];
178 char TopuserSortOrder[10];
179 char UserSortOrder[10];
180 char UserAgentLog[255];
181 char module[255];
182 char ExcludeHosts[255];
183 char ExcludeUsers[255];
184 char DateFormat[2];
185 char PerUserLimitFile[255];
186 char PerUserLimit[20];
187 char UserIp[5];
188 char MaxElapsed[255];
189 char datetimeby[10];
190 char csort[255];
191 char CharSet[255];
192 char UserInvalidChar[255];
193 char Graphs[5];
194 char GraphDaysBytesBarColor[255];
195 char Privacy[10];
196 char PrivacyString[255];
197 char PrivacyStringColor[30];
198 char IncludeUsers[MAXLEN];
199 char ExcludeString[MAXLEN];
200 char SuccessfulMsg[5];
201 char TopUserFields[255];
202 char UserReportFields[255];
203 char DataFile[MAXLEN];
204 char DataFileDelimiter[3];
205 char DataFileFields[MAXLEN];
206 char DataFileUrl[20];
207 char SiteUserTimeDateType[10];
208 char ShowReadStatistics[5];
209 char IndexSortOrder[5];
210 char DansGuardianConf[MAXLEN];
211 char DansguardianIgnoreDate[10];
212 char SquidGuardConf[MAXLEN];
213 char SquidGuarddbHome[255];
214 char SquidGuardLogFormat[MAXLEN];
215 char SquidGuardLogAlternate[MAXLEN];
216 char SquidguardIgnoreDate[10];
217 char ShowSargInfo[5];
218 char BytesInSitesUsersReport[10];
219 char ShowSargLogo[5];
220 char ParsedOutputLog[MAXLEN];
221 char ParsedOutputLogCompress[255];
222 char DisplayedValues[20];
223 char HeaderFontSize[5];
224 char TitleFontSize[5];
225 char wwwDocumentRoot[MAXLEN];
226 char ExternalCSSFile[MAXLEN];
227 char BlockIt[255];
228 char BlockImage[512];
229 char NtlmUserFormat[30];
230 char hbc1[30];
231 char hbc2[255];
232 char hbc3[30];
233 char hbc4[30];
234 char hbc5[30];
235 char hbc6[30];
236 char hbc7[30];
237 char hbc8[30];
238 char hbc9[30];
239 char hbc10[30];
240 char IndexTree[10];
241 char UserAuthentication[10];
242 char AuthUserFile[255];
243 char AuthName[512];
244 char AuthType[255];
245 char Require[512];
246 char DownloadSuffix[MAXLEN];
247 char *userfile;
248 char *str;
249 char *str2;
250 char text[200][255];
251 char val1[MAXLEN];
252 char val2[MAXLEN];
253 char val3[MAXLEN];
254 char val4[MAXLEN];
255 char val5[MAXLEN];
256 char val6[MAXLEN];
257 char val7[MAXLEN];
258 char val8[MAXLEN];
259 char val9[MAXLEN];
260 char val10[MAXLEN];
261 char val11[MAXLEN];
262 char wwork1[MAXLEN];
263 char wwork2[MAXLEN];
264 char wwork3[MAXLEN];
265 char ftime[128];
266 char mask[MAXLEN];
267 char httplink[MAXLEN];
268 char html_old[MAXLEN];
269 char siteind[MAXLEN];
270 char site[MAXLEN];
271 char us[50];
272 char email[MAXLEN];
273 char test[1];
274 char ouser2[255];
275 char user2[MAXLEN];
276 char wentp[512];
277 char addr[MAXLEN];
278 char Ulimit[6];
279 char RealtimeTypes[1024];
280 char cmd[255];
281 char ImageFile[255];
282 char tbuf[128];
283 char ip[25];
284 char RealtimeUnauthRec[15];
285
286 int idate;
287 int smartfilter;
288 int denied_count;
289 int download_count;
290 int authfail_count;
291 int dansguardian_count;
292 int squidguard_count;
293 int limit_flag;
294 int color1;
295 int color2;
296 int color3;
297 int z1, z2, z3;
298 int ttopen;
299 int ind2;
300 int sarglog;
301 int isalog;
302 int dfrom;
303 int duntil;
304 int dataonly;
305 int indexonly;
306 int iprel;
307 int userip;
308 int langcode;
309 int debug;
310 int debugz;
311 int debugm;
312 int AuthfailReportLimit;
313 int DeniedReportLimit;
314 int DownloadReportLimit;
315 int SiteUsersReportLimit;
316 int DansGuardianReportLimit;
317 int SquidGuardReportLimit;
318 int UserReportLimit;
319 int dotinuser;
320 int realtime_refresh;
321 int realtime_access_log_lines;
322 int realt;
323 int rc;
324 int ntopsites;
325 int nsitesusers;
326 int nrepday;
327 int ndownload;
328 int ntopuser;
329 int squid24;
330 float perc;
331
332 long long int nocost;
333 float cost;
334
335 typedef struct
336 { int list[ 24 ];
337 int len;
338 } numlist;
339
340 DIR *dirp;
341 struct dirent *direntp;