home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 3
/
hamradioversion3.0examsandprograms1992.iso
/
packet
/
n17jsrc
/
files.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-04-29
|
2KB
|
48 lines
#ifndef _FILES_H
#define _FILES_H
#define FTP_READ 1 /* Read files */
#define FTP_CREATE 2 /* Create new files */
#define FTP_WRITE 4 /* Overwrite or delete existing files */
#define AX25_CMD 8 /* AX.25 gateway operation allowed */
#define TELNET_CMD 16 /* Telnet gateway operation allowed */
#define NETROM_CMD 32 /* NET/ROM gateway operation allowed */
#define SYSOP_CMD 64 /* Remote sysop access allowed */
#define EXCLUDED_CMD 128 /* This user is banned from the BBS */
#define PPP_ACCESS_PRIV 0x0100 /* Priv bit for PPP connection */
#define PPP_PWD_LOOKUP 0x0200 /* Priv bit for peerID/pass lookup */
/* External definitions for configuration-dependent file names set in
* files.c
*/
extern char *Startup; /* Initialization file */
extern char *Userfile; /* Authorized FTP users and passwords */
extern char *Hostfile; /* Remote FTP user and password */
extern char *Maillog; /* mail log */
extern char *Mailspool; /* Incoming mail */
extern char *Mailqdir; /* Outgoing mail spool */
extern char *Mailqueue; /* Outgoing mail work files */
extern char *Routeqdir; /* queue for router */
extern char *Alias; /* the alias file */
extern char *Dfile; /* Domain cache */
extern char *Fdir; /* Finger info directory */
extern char *Arealist; /* List of message areas */
extern char *Helpdir; /* Mailbox help file directory */
extern char *Rewritefile; /* Address rewrite file */
extern char *Signature; /* Mail signature file directory */
extern char *Popusers; /* POP user and password file */
extern char *Newsdir; /* News messages and NNTP data */
extern char *Forwardfile; /* Mail forwarding file */
extern char *Historyfile; /* Message ID history file */
extern char *Netromfile; /* Netrom node save file */
void initroot __ARGS((char *root));
int userlogin __ARGS((char *name,char *pass,char **path,int len,int *pwdignore));
char *rootdircat __ARGS((char *filename));
char *userlookup __ARGS((char *username,char **password,char **directory,
int *permission,int32 *ip_address));
int permcheck __ARGS((char *path,int perms,int op,char *file));
#endif /* _FILES_H */