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