~ubuntu-branches/ubuntu/natty/sarg/natty

« back to all changes in this revision

Viewing changes to include/defs.h

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2010-01-11 15:07:10 UTC
  • mfrom: (1.1.8 upstream) (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100111150710-mgvjhyjs13mrg0tb
Tags: 2.2.6-1
* New upstream release
  - Fixes issues in getword loop detection (Closes: #522284)
  - Removed patches integrated upstream
  - Fixes usertab parsing for IPv6 address (Closes: #504749)
  - Fixes typo in dansguardian_log.c (Closes: #540438)
  - Fixes error parsing squidGuard logs (Closes: #486895)

* debian/sarg-reports.conf
  - Fixed typo (Closes: #517356)

* debian/control
  - Added Build-Dep options on libgd2-xpm-dev (Closes: #540121)
  - Added Dependency on ${misc:Depends}
  - Added dependency on dpatch
  - Bumped Standard-Version to 3.8.3

* debian/compat
  - Upgraded debhelper compatibility to level 6

* debian/rules
  - Removed unnecessary upgrade of autoconf files
  - Added dpatch rules
  - Fixed configuration options and paths

* debian/patches/01_makefile-install-path
  - Fixed build-time installation paths

* debian/patches/02_config-file-references
  - Fixed references to configuration files

* debian/squid.conf
  - Sinced with upstream changes

* debian/{postrm,preinst,sarg.conf,sarg-reports,rules,dirs,sarg-reports.conf}
  - Moved configuration files to /etc/sarg and data directory to /var/lib/sarg
    (Closes: #553554, #502273)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
void maketmp(char *user, char *dirname, int debug, int indexonly);
2
 
void maketmp_hour(char *user, char *dirname, int indexonly);
3
 
void gravatmp(char *oldaccuser, char *dirname, char *oldurl, long long int nacc, long long int nbytes, char *oldmsg, long long int nelap, int indexonly, long long int incache, long long int oucache);
4
 
void gravatmp_hora(char *dirname, char *user, char *data, char *hora, char *elap, char *accbytes, int indexonly);
5
 
void gravatmpf(char *oldaccuser, char *dirname, char *oldurl, long long int nacc, long long int nbytes, char *oldmsg, long long int nelap, int indexonly, long long int incache, long long int oucache);
6
 
void gravaporuser(char *user, char *dirname, char *url, char *ip, char *data, char *hora, char *tam, char *elap, int indexonly);
7
 
void gravager(char *dirname, char *user, long long int nacc, char *url, long long int nbytes, char *ip, char *hora, char *dia, long long int nelap, long long int incache, long long int oucache);
8
 
void grava_SmartFilter(char *dirname, char *user, char *ip, char *data, char *hora, char *url, char *smart);
 
1
// auth.c
 
2
void htaccess(const char *name);
 
3
 
 
4
// authfail.c
 
5
void authfail_report(void);
 
6
 
 
7
// charset.c
 
8
void ccharset(char *CharSet);
 
9
 
 
10
// convlog.c
 
11
void convlog(const char *arq, char *df, int dfrom, int duntil);
 
12
 
 
13
// css.c
 
14
void css(FILE *fp_css);
 
15
 
 
16
// dansguardian_log.c
 
17
void dansguardian_log(void);
 
18
 
 
19
// dansguardian_report.c
 
20
void dansguardian_report(void);
 
21
 
 
22
// datafile.c
 
23
void data_file(char *tmp);
 
24
 
 
25
// decomp.c
 
26
void decomp(char *arq, char *zip, const char *tmp);
 
27
void recomp(const char *arq, const char *zip) ;
 
28
 
 
29
// denied.c
 
30
void gen_denied_report(void);
 
31
 
 
32
// download.c
 
33
void download_report(void);
 
34
 
 
35
// email.c
 
36
int geramail(const char *dirname, int debug, const char *outdir, int userip, const char *email, const char *TempDir);
 
37
 
 
38
// exclude.c
 
39
int vhexclude(const char *excludefile, const char *url);
 
40
int vuexclude(const char *excludeuser, const char *user);
 
41
 
 
42
// getconf.c
 
43
void getconf(void);
 
44
 
 
45
// grepday.c
 
46
void greport_day(const char *user);
 
47
void greport_cleanup(void);
 
48
 
 
49
// html.c
 
50
void htmlrel(void);
 
51
 
 
52
// indexonly.c
 
53
void index_only(const char *dirname,int debug);
 
54
 
 
55
// ip2name.c
 
56
void ip2name(char *ip,int ip_len);
 
57
void name2ip(char *name);
 
58
 
 
59
// language.c
 
60
void language_load(const char *language);
 
61
 
 
62
// lastlog.c
 
63
void mklastlog(const char *outdir);
 
64
 
 
65
// index.c
 
66
void make_index(void);
 
67
 
 
68
// realtime.c
 
69
void realtime(void);
 
70
 
 
71
// repday.c
 
72
void report_day(const char *user);
 
73
 
 
74
// report.c
 
75
void gravatmp(const char *oldaccuser, const char *dirname, const char *oldurl, long long int nacc, long long int nbytes, const char *oldmsg, long long int nelap, int indexonly, long long int incache, long long int oucache);
 
76
void gerarel(void);
 
77
 
 
78
// siteuser.c
 
79
void siteuser(void);
 
80
 
 
81
// smartfilter.c
 
82
void smartfilter_report(void);
 
83
 
 
84
// sort.c
 
85
void sort_users_log(const char *tmp, int debug);
 
86
void tmpsort(void);
 
87
 
 
88
// splitlog.c
 
89
void splitlog(const char *arq, char *df, int dfrom, int duntil, char *convert);
 
90
 
 
91
// squidguard_log.c
 
92
void squidguard_log(void);
 
93
 
 
94
// squidguard_report.c
 
95
void squidguard_report(void);
 
96
 
 
97
// topsites.c
 
98
void topsites(void);
 
99
 
 
100
// topuser.c
 
101
void topuser(void);
 
102
 
 
103
// totday.c
 
104
void day_totalize(const char *tmp, const char *user, int indexonly);
 
105
 
 
106
// totger.c
 
107
int totalger(const char *dirname, int debug, const char *outdir);
 
108
 
 
109
// usage.c
 
110
void usage(const char *prog);
 
111
 
 
112
// useragent.c
 
113
void useragent(void);
 
114
 
 
115
// util.c
 
116
int getword(char *word, int limit, char *line, int stop);
 
117
int getword_multisep(char *word, int limit, char *line, int stop);
 
118
int getword3(char *word, int limit, char *line, int stop);
 
119
void name_month(char *month,int month_len);
 
120
void conv_month_name(char *month);
 
121
void buildymd(const char *dia, const char *mes, const char *ano, char *wdata);
 
122
void date_from(char *date, char *dfrom, char *duntil);
 
123
int getnumlist( char *, numlist *, const int, const int );
 
124
void fixip(char *ip);
 
125
char *fixnum(long long int value, int n);
 
126
char *fixnum2(long long int value, int n);
 
127
void fixnone(char *str);
 
128
void fixper(char *tbuf, char *period, const char *duntil);
 
129
char *fixtime(long int elap);
 
130
void fixendofline(char *str);
 
131
void show_info(FILE *fp_ou);
 
132
void show_sarg(FILE *fp_ou, const char *ind);
 
133
void write_logo_image(FILE *fp_ou);
 
134
void write_html_header(FILE *fp_ou, const char * ind);
 
135
void write_html_trailer(FILE *fp_ou);
 
136
void output_html_string(FILE *fp_ou,const char *str);
 
137
void subs(char *str, int size, char *from, char *to);
 
138
void conv_month(char *month);
 
139
void debuga(const char *msg,...);
 
140
void debugaz(const char *head, const char *msg);
 
141
void my_lltoa(unsigned long long int n, char s[], int len);
 
142
char *get_size(const char *path, const char *file);
 
143
void url_module(const char *url, char *w2);
 
144
void strip_latin(char *line);
 
145
char *buildtime(long long int elap);
 
146
void obtdate(const char *dirname, const char *name, char *data);
 
147
void obtuser(const char *dirname, const char *name, char *tuser);
 
148
void obttotal(const char *dirname, const char *name, char *tbytes, char *tuser, char *media);
 
149
void version(void);
 
150
int vercode(const char *code);
 
151
void load_excludecodes(const char *ExcludeCodes);
 
152
void free_excludecodes(void);
 
153
void my_mkdir(const char *name);
 
154
int testvaliduserchar(const char *user);
 
155
char *strlow(char *string);
 
156
char *strup(char *string);
 
157
void builddia(char *dia, const char *mes, const char *ano, const char *df, char *wdata);
 
158
void vrfydir(const char *dir, const char *per1, const char *addr, const char *site, const char *us, const char *form);
 
159
void gperiod(const char *dirname, const char *period);
 
160
void removetmp(const char *outdir);
 
161
void zdate(char *ftime, const char *DateFormat);
 
162
void baddata(void);
 
163
char *get_param_value(const char *param,char *line);
 
164
void read_usertab(const char *UserTabFile);
 
165
void get_usertab_name(const char *user,char *name,int namelen);
 
166
int compar( const void *, const void * );
 
167
int is_download_suffix(const char *url);