home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / network / src_1218.zip / FILES.H < prev    next >
C/C++ Source or Header  |  1991-05-13  |  2KB  |  46 lines

  1. #ifndef    _FILES_H
  2. #define    _FILES_H
  3.  
  4. /* Permission bits in FTPUSERS file */
  5. #define    FTP_READ    1    /* Read files */
  6. #define    FTP_CREATE    2    /* Create new files */
  7. #define    FTP_WRITE    4    /* Overwrite or delete existing files */
  8. #define AX25_CMD    8    /* AX.25 gateway operation allowed */
  9. #define TELNET_CMD    16    /* Telnet gateway operation allowed */
  10. #define NETROM_CMD    32    /* NET/ROM gateway operation allowed */
  11. #define SYSOP_CMD    64    /* Remote sysop access allowed */
  12. #define EXCLUDED_CMD    128    /* This user is banned from the BBS */
  13. #define PPP_ACCESS_PRIV    0x0100    /* Priv bit for PPP connection */
  14. #define PPP_PWD_LOOKUP    0x0200    /* Priv bit for peerID/pass lookup */
  15.  
  16.  
  17. /* External definitions for configuration-dependent file names set in
  18.  * files.c
  19.  */
  20. extern char *Startup;    /* Initialization file */
  21. extern char *Userfile;    /* Authorized FTP users and passwords */
  22. extern char *Maillog;    /* mail log */
  23. extern char *Mailspool;    /* Incoming mail */
  24. extern char *Mailqdir;    /* Outgoing mail spool */
  25. extern char *Mailqueue;    /* Outgoing mail work files */
  26. extern char *Routeqdir;    /* queue for router */
  27. extern char *Alias;    /* the alias file */
  28. extern char *Dfile;    /* Domain cache */
  29. extern char *Fdir;    /* Finger info directory */
  30. extern char *Arealist;        /* List of message areas */
  31. extern char *Helpdir;        /* Mailbox help file directory */
  32. extern char *Rewritefile;    /* Address rewrite file */
  33. extern char *Newsdir;        /* News messages and NNTP data */
  34. extern char *Popusers;        /* POP2 user and passwd file */
  35. extern char *Signature;        /* Mail signature file directory */
  36. extern char *Forwardfile;    /* Mail forwarding file */
  37. extern char *Historyfile;    /* Message ID history file */
  38.  
  39. void initroot __ARGS((char *root));
  40. char *rootdircat __ARGS((char *filename));
  41. int userlogin __ARGS((char *name,char *pass,char **path,int len,int *pwdignore));
  42. char *userlookup __ARGS((char *username, char **password, char **directory,
  43.             int *permission, int32 *ip_address));
  44.  
  45. #endif    /* _FILES_H */
  46.