home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / nn.tar / nn-6.5.1 / account.h < prev    next >
Text File  |  1996-08-13  |  1KB  |  48 lines

  1. /*
  2.  *      Accumulated accounting information is saved in the file $LIB/acct.
  3.  *      If ACCTLOG is defined, a sequential log is maintained in $LIB/acctlog.
  4.  *
  5.  *      You can define a COST_PER_MINUTE and a COST_UNIT to make
  6.  *      the user get a cost calculation (maybe just for the fun of it -
  7.  *      you can't imagine how expensive it is to read news here :-).
  8.  *
  9.  *      The COST_PER_MINUTE should be the price per minute multiplied
  10.  *      by 100 (to allow prices like $0.03/minute).
  11.  *      The definitions below corresponds to 1 dollar per minute.
  12.  *
  13.  *      If COST_PER_MINUTE is not defined, a "Time used" rather than a
  14.  *      "Cost" report is produced.
  15.  */
  16.  
  17. /* #define ACCTLOG    /* */
  18.  
  19. /* #define COST_PER_MINUTE    100    /* price(in UNITs)/min * 100 */
  20. /* #define COST_UNIT        "dollars"    /* Currency */
  21.  
  22. /*
  23.  *      DEFAULT POLICY AND QUOTA FOR NEW USERS
  24.  *
  25.  *      Notice that QUOTA is measued in hours.
  26.  *      Both ACCOUNTING and AUTHORIZE must be defined for
  27.  *      the quota mechanism to work.
  28.  *      (See config.h)
  29.  */
  30.  
  31. /*
  32.  *    Don't change these.
  33.  */
  34.  
  35. #define DENY_ACCESS     0
  36. #define FREE_ACCOUNT    1
  37. #define ALL_HOURS       2
  38. #define OFF_HOURS       3
  39. #define NO_POST         40    /* add if cannot post */
  40.  
  41. /*
  42.  *    Edit these to local needs.
  43.  */
  44.  
  45. #define DEFAULT_POLICY  ALL_HOURS    /* all time w/accounting */
  46. #define DEFAULT_QUOTA   0        /* unlimited use */
  47.  
  48.