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