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