]>
Commit | Line | Data |
---|---|---|
9c7c6346 FM |
1 | |
2 | struct getwordstruct | |
3 | { | |
4 | const char *current; | |
5 | const char *beginning; | |
6 | }; | |
7 | ||
ac422f9b FM |
8 | struct longlinestruct |
9 | { | |
10 | //! The buffer to store the data read from the log file. | |
11 | char *buffer; | |
12 | //! The size of the buffer. | |
13 | size_t size; | |
14 | //! The number of bytes stored in the buffer. | |
15 | size_t length; | |
16 | //! The position of the beginning of the current string. | |
17 | size_t start; | |
18 | //! The position of the end of the current string. | |
19 | size_t end; | |
20 | }; | |
21 | ||
5f3cfd1d FM |
22 | // auth.c |
23 | void htaccess(const char *name); | |
24 | ||
25 | // authfail.c | |
26 | void authfail_report(void); | |
27 | ||
28 | // charset.c | |
29 | void ccharset(char *CharSet); | |
30 | ||
31 | // convlog.c | |
32 | void convlog(const char *arq, char *df, int dfrom, int duntil); | |
33 | ||
34 | // css.c | |
35 | void css(FILE *fp_css); | |
36 | ||
37 | // dansguardian_log.c | |
38 | void dansguardian_log(void); | |
39 | ||
40 | // dansguardian_report.c | |
41 | void dansguardian_report(void); | |
42 | ||
43 | // datafile.c | |
44 | void data_file(char *tmp); | |
45 | ||
46 | // decomp.c | |
47 | void decomp(char *arq, char *zip, const char *tmp); | |
48 | void recomp(const char *arq, const char *zip) ; | |
49 | ||
50 | // denied.c | |
51 | void gen_denied_report(void); | |
52 | ||
53 | // download.c | |
54 | void download_report(void); | |
6e792ade FM |
55 | void free_download(void); |
56 | void set_download_suffix(const char *list); | |
57 | int is_download_suffix(const char *url); | |
5f3cfd1d FM |
58 | |
59 | // email.c | |
60 | int geramail(const char *dirname, int debug, const char *outdir, int userip, const char *email, const char *TempDir); | |
61 | ||
62 | // exclude.c | |
43f18f45 FM |
63 | void gethexclude(const char *hexfile, int debug); |
64 | void getuexclude(const char *uexfile, int debug); | |
65 | int vhexclude(const char *url); | |
66 | int vuexclude(const char *user); | |
67 | int is_indexonly(void); | |
68 | void free_exclude(void); | |
5f3cfd1d FM |
69 | |
70 | // getconf.c | |
71 | void getconf(void); | |
72 | ||
73 | // grepday.c | |
74 | void greport_day(const char *user); | |
c274f011 | 75 | void greport_cleanup(void); |
5f3cfd1d FM |
76 | |
77 | // html.c | |
78 | void htmlrel(void); | |
79 | ||
80 | // indexonly.c | |
81 | void index_only(const char *dirname,int debug); | |
82 | ||
83 | // ip2name.c | |
84 | void ip2name(char *ip,int ip_len); | |
85 | void name2ip(char *name); | |
86 | ||
87 | // language.c | |
88 | void language_load(const char *language); | |
89 | ||
90 | // lastlog.c | |
91 | void mklastlog(const char *outdir); | |
92 | ||
93 | // index.c | |
94 | void make_index(void); | |
95 | ||
96 | // realtime.c | |
97 | void realtime(void); | |
98 | ||
99 | // repday.c | |
100 | void report_day(const char *user); | |
101 | ||
102 | // report.c | |
0a4e18e1 | 103 | void gravatmp(const char *oldaccuser, 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); |
5f3cfd1d FM |
104 | void gerarel(void); |
105 | ||
106 | // siteuser.c | |
107 | void siteuser(void); | |
108 | ||
109 | // smartfilter.c | |
110 | void smartfilter_report(void); | |
111 | ||
112 | // sort.c | |
113 | void sort_users_log(const char *tmp, int debug); | |
114 | void tmpsort(void); | |
115 | ||
116 | // splitlog.c | |
117 | void splitlog(const char *arq, char *df, int dfrom, int duntil, char *convert); | |
118 | ||
119 | // squidguard_log.c | |
120 | void squidguard_log(void); | |
121 | ||
122 | // squidguard_report.c | |
123 | void squidguard_report(void); | |
124 | ||
125 | // topsites.c | |
126 | void topsites(void); | |
127 | ||
128 | // topuser.c | |
129 | void topuser(void); | |
130 | ||
131 | // totday.c | |
132 | void day_totalize(const char *tmp, const char *user, int indexonly); | |
133 | ||
134 | // totger.c | |
135 | int totalger(const char *dirname, int debug, const char *outdir); | |
136 | ||
137 | // usage.c | |
138 | void usage(const char *prog); | |
139 | ||
140 | // useragent.c | |
141 | void useragent(void); | |
142 | ||
965c4a6f FM |
143 | // usertab.c |
144 | void init_usertab(const char *UserTabFile); | |
145 | void user_find(char *mappedname, int namelen, const char *userlogin); | |
146 | void close_usertab(void); | |
147 | ||
5f3cfd1d | 148 | // util.c |
9c7c6346 FM |
149 | void getword_start(struct getwordstruct *gwarea, const char *line); |
150 | void getword_restart(struct getwordstruct *gwarea); | |
151 | int getword(char *word, int limit, struct getwordstruct *gwarea, int stop); | |
152 | int getword_multisep(char *word, int limit, struct getwordstruct *gwarea, int stop); | |
153 | int getword_skip(int limit, struct getwordstruct *gwarea, int stop); | |
0a4e18e1 | 154 | int getword_atoll(long long int *number, struct getwordstruct *gwarea, int stop); |
e6414a9d FM |
155 | long long int my_atoll (const char *nptr); |
156 | int is_absolute(const char *path); | |
e3af0ae9 | 157 | int getnumlist(char *, numlist *, const int, const int); |
5f3cfd1d FM |
158 | void name_month(char *month,int month_len); |
159 | void conv_month_name(char *month); | |
160 | void buildymd(const char *dia, const char *mes, const char *ano, char *wdata); | |
161 | void date_from(char *date, char *dfrom, char *duntil); | |
5f3cfd1d FM |
162 | void fixip(char *ip); |
163 | char *fixnum(long long int value, int n); | |
164 | char *fixnum2(long long int value, int n); | |
165 | void fixnone(char *str); | |
166 | void fixper(char *tbuf, char *period, const char *duntil); | |
167 | char *fixtime(long int elap); | |
2357ef77 | 168 | void fixendofline(char *str); |
5f3cfd1d | 169 | void show_info(FILE *fp_ou); |
c0ec9cc7 | 170 | void show_sarg(FILE *fp_ou, int depth); |
dfb337be | 171 | void write_logo_image(FILE *fp_ou); |
c0ec9cc7 FM |
172 | void write_html_header(FILE *fp_ou, int depth, const char *title); |
173 | void close_html_header(FILE *fp_ou); | |
5f3cfd1d | 174 | void write_html_trailer(FILE *fp_ou); |
ac422f9b FM |
175 | void output_html_string(FILE *fp_ou,const char *str,int maxlen); |
176 | void output_html_url(FILE *fp_ou,const char *url); | |
48864d28 | 177 | void subs(char *str, int size, char *from, char *to); |
5f3cfd1d | 178 | void conv_month(char *month); |
d2fe0c32 | 179 | void debuga(const char *msg,...); |
5f3cfd1d FM |
180 | void debugaz(const char *head, const char *msg); |
181 | void my_lltoa(unsigned long long int n, char s[], int len); | |
182 | char *get_size(const char *path, const char *file); | |
48864d28 | 183 | void url_module(const char *url, char *w2); |
5f3cfd1d FM |
184 | void strip_latin(char *line); |
185 | char *buildtime(long long int elap); | |
186 | void obtdate(const char *dirname, const char *name, char *data); | |
a1de61fe | 187 | void formatdate(char *date,int date_size,int year,int month,int day,int hour,int minute,int second,int dst); |
5f3cfd1d | 188 | void obtuser(const char *dirname, const char *name, char *tuser); |
6e792ade | 189 | void obttotal(const char *dirname, const char *name, char *tbytes, const char *tuser, char *media); |
5f3cfd1d FM |
190 | void version(void); |
191 | int vercode(const char *code); | |
48864d28 FM |
192 | void load_excludecodes(const char *ExcludeCodes); |
193 | void free_excludecodes(void); | |
5f3cfd1d FM |
194 | void my_mkdir(const char *name); |
195 | int testvaliduserchar(const char *user); | |
196 | char *strlow(char *string); | |
197 | char *strup(char *string); | |
198 | void builddia(char *dia, const char *mes, const char *ano, const char *df, char *wdata); | |
e6414a9d | 199 | void vrfydir(const char *per1, const char *addr, const char *site, const char *us, const char *form); |
48864d28 | 200 | void gperiod(const char *dirname, const char *period); |
5f3cfd1d | 201 | void removetmp(const char *outdir); |
120d768c | 202 | void zdate(char *ftime,int ftimesize, const char *DateFormat); |
5f3cfd1d FM |
203 | void baddata(void); |
204 | char *get_param_value(const char *param,char *line); | |
48864d28 | 205 | int compar( const void *, const void * ); |
51465d08 | 206 | void unlinkdir(const char *dir,int contentonly); |
ac422f9b FM |
207 | int longline_prepare(struct longlinestruct *line); |
208 | char *longline_read(FILE *fp_in,struct longlinestruct *line); | |
209 | void longline_free(struct longlinestruct *line); |