forked from qmail/qmailadmin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
util.h
32 lines (27 loc) · 1003 Bytes
/
util.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* $Id: util.h,v 1.1.2.4 2007-09-21 23:27:40 tomcollins Exp $
*/
int check_local_user( char *user );
int fixup_local_name( char *addr );
int check_email_addr( char *addr );
int open_lang( char *lang);
int open_colortable();
char *strstart( char *sstr, char *tstr);
char *safe_getenv(char *var);
char *get_html_text( char *index );
char *get_color_text( char *index );
void upperit( char *instr );
void ack( char *msg, char *extra );
void show_counts();
/* prototypes for sorting functions in util.c */
int sort_init();
int sort_add_entry (char *, char);
char *sort_get_entry (int);
void sort_cleanup();
void sort_dosort();
void str_replace (char *, char, char);
void qmail_button(char *modu, char *command, char *user, char *dom, time_t mytime, char *png);
int quota_to_bytes(char[], char*); //jhopper prototype
int quota_to_megabytes(char[], char*); //jhopper prototype
void print_user_index (char *action, int colspan, char *user, char *dom, time_t mytime);
char *cgiurl (char *action);