]> git.ipfire.org Git - thirdparty/sarg.git/blob - include/defs.h
4ce1f9bbae43619a0da99b3a9f4a89fe3d6efaec
[thirdparty/sarg.git] / include / defs.h
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 getword_skip(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,int ftimesize, 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);