]> git.ipfire.org Git - thirdparty/sarg.git/blob - include/conf.h
22820b37f9296376f24c2e3e24620cd97bc12370
[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
83 #if HAVE_FOPEN64
84 #define _FILE_OFFSET_BITS 64
85 #define MY_FOPEN fopen
86 #else
87 #define MY_FOPEN fopen
88 #endif
89
90
91 #define MAXLEN 20000
92 long long int my_atoll (const char *nptr);
93
94 FILE *fp_tt;
95
96 char outdir[MAXLEN];
97 char dirname[MAXLEN];
98 char buf[MAXLEN];
99 char url[MAXLEN];
100 char urly[MAXLEN];
101 char user[MAXLEN];
102 char period[MAXLEN];
103 char msg[1024];
104 char per_hour[128];
105 char code[MAXLEN];
106 char code2[MAXLEN];
107 char tmp[MAXLEN];
108 char tmp2[MAXLEN];
109 char tmp3[MAXLEN];
110 char tmp4[MAXLEN];
111 char tmp5[MAXLEN];
112 char tmp6[MAXLEN];
113 char tmp7[MAXLEN];
114 char parse_out[MAXLEN];
115 char arqtt[MAXLEN];
116 char html[MAXLEN];
117 char datestimes[MAXLEN];
118 char ConfigFile[MAXLEN];
119 char href[MAXLEN];
120 char href2[MAXLEN];
121 char href3[MAXLEN];
122 char df[20];
123 char day[3], month[4], year[5];
124 char nmonth[30];
125 char ltext110[50];
126 char cdfrom[30];
127 char cduntil[30];
128 char LastLog[5];
129 char RemoveTempFiles[4];
130 char ReplaceIndex[256];
131 char Index[20];
132 char OverwriteReport[4];
133 char u2[255];
134 char RecordsWithoutUser[20];
135 char UseComma[4];
136 char MailUtility[6];
137 char TopSitesNum[20];
138 char TopUsersNum[20];
139 char ExcludeCodes[256];
140 char TopsitesSortField[15];
141 char TopsitesSortType[20];
142 char ReportType[255];
143 char UserTabFile[255];
144 char warea[MAXLEN];
145 char name[MAXLEN];
146 char LongUrl[20];
147 char Ip2Name[20];
148 char language[255];
149 char bufy[MAXLEN];
150 char AccessLog[MAXLEN];
151 char Title[MAXLEN];
152 char BgColor[MAXLEN];
153 char BgImage[MAXLEN];
154 char TxColor[MAXLEN];
155 char TxBgColor[MAXLEN];
156 char TiColor[MAXLEN];
157 char LogoImage[MAXLEN];
158 char LogoText[MAXLEN];
159 char LogoTextColor[MAXLEN];
160 char Width[MAXLEN];
161 char Height[MAXLEN];
162 char FontFace[MAXLEN];
163 char HeaderColor[MAXLEN];
164 char HeaderBgColor[MAXLEN];
165 char FontSize[MAXLEN];
166 char PasswdFile[MAXLEN];
167 char TempDir[MAXLEN];
168 char OutputDir[MAXLEN];
169 char OutputEmail[MAXLEN];
170 char TopuserSortField[30];
171 char UserSortField[30];
172 char TopuserSortOrder[10];
173 char UserSortOrder[10];
174 char UserAgentLog[255];
175 char module[255];
176 char ExcludeHosts[255];
177 char ExcludeUsers[255];
178 char DateFormat[2];
179 char PerUserLimitFile[255];
180 char PerUserLimit[20];
181 char UserIp[5];
182 char MaxElapsed[255];
183 char datetimeby[10];
184 char csort[255];
185 char CharSet[255];
186 char UserInvalidChar[255];
187 char Graphs[5];
188 char GraphDaysBytesBarColor[255];
189 char Privacy[10];
190 char PrivacyString[255];
191 char PrivacyStringColor[30];
192 char IncludeUsers[MAXLEN];
193 char ExcludeString[MAXLEN];
194 char SuccessfulMsg[5];
195 char TopUserFields[255];
196 char UserReportFields[255];
197 char DataFile[MAXLEN];
198 char DataFileDelimiter[3];
199 char DataFileFields[MAXLEN];
200 char DataFileUrl[20];
201 char SiteUserTimeDateType[10];
202 char ShowReadStatistics[5];
203 char IndexSortOrder[5];
204 char DansGuardianConf[MAXLEN];
205 char DansguardianIgnoreDate[10];
206 char SquidGuardConf[MAXLEN];
207 char SquidGuarddbHome[255];
208 char SquidGuardLogFormat[MAXLEN];
209 char SquidGuardLogAlternate[MAXLEN];
210 char SquidguardIgnoreDate[10];
211 char ShowSargInfo[5];
212 char BytesInSitesUsersReport[10];
213 char ShowSargLogo[5];
214 char ParsedOutputLog[MAXLEN];
215 char ParsedOutputLogCompress[255];
216 char DisplayedValues[20];
217 char HeaderFontSize[4];
218 char TitleFontSize[5];
219 char wwwDocumentRoot[MAXLEN];
220 char ExternalCSSFile[MAXLEN];
221 char BlockIt[255];
222 char BlockImage[512];
223 char NtlmUserFormat[30];
224 char hbc1[30];
225 char hbc2[255];
226 char hbc3[30];
227 char hbc4[30];
228 char hbc5[30];
229 char hbc6[30];
230 char hbc7[30];
231 char hbc8[30];
232 char hbc9[30];
233 char hbc10[30];
234 char IndexTree[10];
235 char UserAuthentication[10];
236 char AuthUserFile[255];
237 char AuthName[512];
238 char AuthType[255];
239 char Require[512];
240 char DownloadSuffix[MAXLEN];
241 char *excludecode;
242 char *userfile;
243 char *str;
244 char *str2;
245 char text[200][255];
246 char val1[MAXLEN];
247 char val2[MAXLEN];
248 char val3[MAXLEN];
249 char val4[MAXLEN];
250 char val5[MAXLEN];
251 char val6[MAXLEN];
252 char val7[MAXLEN];
253 char val8[MAXLEN];
254 char val9[MAXLEN];
255 char val10[MAXLEN];
256 char val11[MAXLEN];
257 char wwork1[MAXLEN];
258 char wwork2[MAXLEN];
259 char wwork3[MAXLEN];
260 char ftime[128];
261 char mask[MAXLEN];
262 char httplink[MAXLEN];
263 char html_old[MAXLEN];
264 char siteind[MAXLEN];
265 char site[MAXLEN];
266 char us[50];
267 char email[MAXLEN];
268 char test[1];
269 char ouser2[255];
270 char user2[MAXLEN];
271 char wentp[512];
272 char addr[MAXLEN];
273 char suffix[10];
274 char download_url[MAXLEN];
275 char Ulimit[6];
276 char RealtimeTypes[1024];
277 char cmd[255];
278 char ImageFile[255];
279 char tbuf[128];
280 char ip[25];
281 char RealtimeUnauthRec[15];
282
283 int excode;
284 int idate;
285 int smartfilter;
286 int denied_count;
287 int download_count;
288 int authfail_count;
289 int dansguardian_count;
290 int squidguard_count;
291 int limit_flag;
292 int color1;
293 int color2;
294 int color3;
295 int z1, z2, z3;
296 int ttopen;
297 int ind2;
298 int sarglog;
299 int isalog;
300 int dfrom;
301 int duntil;
302 int dataonly;
303 int indexonly;
304 int iprel;
305 int userip;
306 int langcode;
307 int debug;
308 int debugz;
309 int debugm;
310 int AuthfailReportLimit;
311 int DeniedReportLimit;
312 int DownloadReportLimit;
313 int SiteUsersReportLimit;
314 int DansGuardianReportLimit;
315 int SquidGuardReportLimit;
316 int UserReportLimit;
317 int download_flag;
318 int dotinuser;
319 int realtime_refresh;
320 int realtime_access_log_lines;
321 int realt;
322 int x, y;
323 int rc;
324 int ntopsites;
325 int nsitesusers;
326 int nrepday;
327 int ndownload;
328 int ntopuser;
329 int squid24;
330 long l1, l2;
331 float perc;
332
333 long long int twork;
334 long long int twork2;
335 long long int nocost;
336 float cost;
337
338 typedef struct
339 { int list[ 24 ];
340 int len;
341 } numlist;
342
343 DIR *dirp;
344 struct dirent *direntp;