ban.h

Crimson/src/ban.h · 387 B

From the archive crimson.tgz

Download the archive   « Back to the archive contents

#define BAN_FILE "badsites"
#define BAN_NOT 0
#define BAN_NEW 1
#define BAN_SELECT 2
#define BAN_ALL 3
#define BANNED_SITE_LENGTH 50
#define XNAME_FILE "badnames"

struct ban_list_element {
  char site[BANNED_SITE_LENGTH+1];
  int type;
  long date;
  char name[MAX_NAME_LENGTH+1];
  struct ban_list_element *next;
};

extern int isbanned(char *hostname);
extern void load_banned(void);

Site Stats

Snippets: 1791
Codebases: 571