]>
git.ipfire.org Git - thirdparty/sarg.git/blob - include/defs.h
2 void htaccess ( const char * name
);
5 void authfail_report ( void );
8 void ccharset ( char * CharSet
);
11 void convlog ( const char * arq
, char * df
, int dfrom
, int duntil
);
14 void css ( FILE * fp_css
);
17 void dansguardian_log ( void );
19 // dansguardian_report.c
20 void dansguardian_report ( void );
23 void data_file ( char * tmp
);
26 void decomp ( char * arq
, char * zip
, const char * tmp
);
27 void recomp ( const char * arq
, const char * zip
) ;
30 void gen_denied_report ( void );
33 void download_report ( void );
36 int geramail ( const char * dirname
, int debug
, const char * outdir
, int userip
, const char * email
, const char * TempDir
);
39 int vhexclude ( const char * excludefile
, const char * url
);
40 int vuexclude ( const char * excludeuser
, const char * user
);
46 void greport_day ( const char * user
);
47 void greport_cleanup ( void );
53 void index_only ( const char * dirname
, int debug
);
56 void ip2name ( char * ip
, int ip_len
);
57 void name2ip ( char * name
);
60 void language_load ( const char * language
);
63 void mklastlog ( const char * outdir
);
66 void make_index ( void );
72 void report_day ( const char * user
);
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
);
82 void smartfilter_report ( void );
85 void sort_users_log ( const char * tmp
, int debug
);
89 void splitlog ( const char * arq
, char * df
, int dfrom
, int duntil
, char * convert
);
92 void squidguard_log ( void );
94 // squidguard_report.c
95 void squidguard_report ( void );
104 void day_totalize ( const char * tmp
, const char * user
, int indexonly
);
107 int totalger ( const char * dirname
, int debug
, const char * outdir
);
110 void usage ( const char * prog
);
113 void useragent ( void );
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 int getnumlist ( char *, numlist
*, const int , const int );
120 void name_month ( char * month
, int month_len
);
121 void conv_month_name ( char * month
);
122 void buildymd ( const char * dia
, const char * mes
, const char * ano
, char * wdata
);
123 void date_from ( char * date
, char * dfrom
, char * duntil
);
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
);
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
);
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
);
173 int ldap_simple_bind ();
174 int ldap_simple_bind_s ();
175 char * ldap_get_values ();
176 void init_ldap_usertab ();
177 void user_find ( char * mappedname
, char * userlogin
);
178 void close_usertab ();