]>
git.ipfire.org Git - thirdparty/sarg.git/blob - include/defs.h
9 void htaccess ( const char * name
);
12 void authfail_report ( void );
15 void ccharset ( char * CharSet
);
18 void convlog ( const char * arq
, char * df
, int dfrom
, int duntil
);
21 void css ( FILE * fp_css
);
24 void dansguardian_log ( void );
26 // dansguardian_report.c
27 void dansguardian_report ( void );
30 void data_file ( char * tmp
);
33 void decomp ( char * arq
, char * zip
, const char * tmp
);
34 void recomp ( const char * arq
, const char * zip
) ;
37 void gen_denied_report ( void );
40 void download_report ( void );
41 void free_download ( void );
42 void set_download_suffix ( const char * list
);
43 int is_download_suffix ( const char * url
);
46 int geramail ( const char * dirname
, int debug
, const char * outdir
, int userip
, const char * email
, const char * TempDir
);
49 int vhexclude ( const char * excludefile
, const char * url
);
50 int vuexclude ( const char * excludeuser
, const char * user
);
56 void greport_day ( const char * user
);
57 void greport_cleanup ( void );
63 void index_only ( const char * dirname
, int debug
);
66 void ip2name ( char * ip
, int ip_len
);
67 void name2ip ( char * name
);
70 void language_load ( const char * language
);
73 void mklastlog ( const char * outdir
);
76 void make_index ( void );
82 void report_day ( const char * user
);
85 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
);
92 void smartfilter_report ( void );
95 void sort_users_log ( const char * tmp
, int debug
);
99 void splitlog ( const char * arq
, char * df
, int dfrom
, int duntil
, char * convert
);
102 void squidguard_log ( void );
104 // squidguard_report.c
105 void squidguard_report ( void );
114 void day_totalize ( const char * tmp
, const char * user
, int indexonly
);
117 int totalger ( const char * dirname
, int debug
, const char * outdir
);
120 void usage ( const char * prog
);
123 void useragent ( void );
126 void getword_start ( struct getwordstruct
* gwarea
, const char * line
);
127 void getword_restart ( struct getwordstruct
* gwarea
);
128 int getword ( char * word
, int limit
, struct getwordstruct
* gwarea
, int stop
);
129 int getword_multisep ( char * word
, int limit
, struct getwordstruct
* gwarea
, int stop
);
130 int getword_skip ( int limit
, struct getwordstruct
* gwarea
, int stop
);
131 int getword_atoll ( long long int * number
, struct getwordstruct
* gwarea
, int stop
);
132 long long int my_atoll ( const char * nptr
);
133 int is_absolute ( const char * path
);
134 void name_month ( char * month
, int month_len
);
135 void conv_month_name ( char * month
);
136 void buildymd ( const char * dia
, const char * mes
, const char * ano
, char * wdata
);
137 void date_from ( char * date
, char * dfrom
, char * duntil
);
138 int getnumlist ( char *, numlist
*, const int , const int );
139 void fixip ( char * ip
);
140 char * fixnum ( long long int value
, int n
);
141 char * fixnum2 ( long long int value
, int n
);
142 void fixnone ( char * str
);
143 void fixper ( char * tbuf
, char * period
, const char * duntil
);
144 char * fixtime ( long int elap
);
145 void fixendofline ( char * str
);
146 void show_info ( FILE * fp_ou
);
147 void show_sarg ( FILE * fp_ou
, const char * ind
);
148 void write_logo_image ( FILE * fp_ou
);
149 void write_html_header ( FILE * fp_ou
, const char * ind
);
150 void write_html_trailer ( FILE * fp_ou
);
151 void output_html_string ( FILE * fp_ou
, const char * str
);
152 void subs ( char * str
, int size
, char * from
, char * to
);
153 void conv_month ( char * month
);
154 void debuga ( const char * msg
,...);
155 void debugaz ( const char * head
, const char * msg
);
156 void my_lltoa ( unsigned long long int n
, char s
[], int len
);
157 char * get_size ( const char * path
, const char * file
);
158 void url_module ( const char * url
, char * w2
);
159 void strip_latin ( char * line
);
160 char * buildtime ( long long int elap
);
161 void obtdate ( const char * dirname
, const char * name
, char * data
);
162 void formatdate ( char * date
, int date_size
, int year
, int month
, int day
, int hour
, int minute
, int second
, int dst
);
163 void obtuser ( const char * dirname
, const char * name
, char * tuser
);
164 void obttotal ( const char * dirname
, const char * name
, char * tbytes
, const char * tuser
, char * media
);
166 int vercode ( const char * code
);
167 void load_excludecodes ( const char * ExcludeCodes
);
168 void free_excludecodes ( void );
169 void my_mkdir ( const char * name
);
170 int testvaliduserchar ( const char * user
);
171 char * strlow ( char * string
);
172 char * strup ( char * string
);
173 void builddia ( char * dia
, const char * mes
, const char * ano
, const char * df
, char * wdata
);
174 void vrfydir ( const char * per1
, const char * addr
, const char * site
, const char * us
, const char * form
);
175 void gperiod ( const char * dirname
, const char * period
);
176 void removetmp ( const char * outdir
);
177 void zdate ( char * ftime
, int ftimesize
, const char * DateFormat
);
179 char * get_param_value ( const char * param
, char * line
);
180 void read_usertab ( const char * UserTabFile
);
181 void get_usertab_name ( const char * user
, char * name
, int namelen
);
182 int compar ( const void *, const void * );