home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 May / PCO_5_97.ISO / FilesBBS / OS2 / WWWCNT15.ARJ / WWWCNT15 / WWWCNT15.ZIP / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-13  |  2.8 KB  |  85 lines

  1. #ifndef _COUNT_CONFIG_H
  2. #define _COUNT_CONFIG_H
  3.  
  4. /***************---READ---READ---READ---READ---*********************
  5. ** Note: ConfigDir, DigitDir, DataDir and LogDir MUST differ
  6. **       I suggest, create a base directory say Counter, then create
  7. **       4 separate directories inside like:
  8. **
  9. **       mkdir /usr/local/etc/Counter
  10. **       cd /usr/local/etc/Counter
  11. **       mkdir conf
  12. **       mkdir digits
  13. **       mkdir data
  14. **       mkdir logs
  15. **       
  16. **       you can use anydirectory instead of /usr/local/etc/Counter, this
  17. **       just to give you an example.
  18. **       now,
  19. **       for ConfiDir, use "/usr/local/etc/Counter/conf"
  20. **       for DigitDir, use "/usr/local/etc/Counter/digits"
  21. **       for DataDir, use "/usr/local/etc/Counter/data"
  22. **       for LogDir, use "/usr/local/etc/Counter/logs"
  23. **
  24. ** a script will be provided to automate the whole process in the next release
  25. *********************************************************************/
  26.  
  27.  
  28. /*
  29. ** base directory of the configuration file.
  30. ** do not end the string with /
  31. */
  32. /* #define ConfigDir   "/usr/local/etc/Counter/conf" */
  33. /*
  34. ** name of the configuration file
  35. ** look at the example file "count.conf" for the format of this file
  36. */
  37. /* #define ConfigFile "count.conf" */
  38.  
  39. /*------------------------------------*/
  40.  
  41. /*
  42. ** Base directory where the sub-directories of the digits are located.
  43. ** PLEASE NOTE CAREFULLY: this directory does not contain the digit GIF
  44. ** images, it contains the sub-directories which contain the GIF images.
  45. ** For example, I keep the directories A, B, C,
  46. ** inside directory /usr/local/etc/Counter/digits
  47. ** These sub-directories has digits with different styles. The name of the
  48. ** sub-directory is supplied when the program is called from the web page.
  49. ** Please read the instructions on the Counter page for details.
  50. **
  51. ** DO NOT end the string with a /, it will be added later
  52. */
  53. /* #define DigitDir "/usr/local/etc/Counter/digits" */
  54.  
  55. /*------------------------------------*/
  56.  
  57. /*
  58. ** name of the base directory where the counter data files will reside
  59. ** this is done to force the location of the datafile
  60. ** thanks to carsten@group.com (07/27/95)
  61. ** DO NOT end the string with a /, it will be added later
  62. ** no need to define datafile name, it will be given while calling
  63. */
  64. /* #define DataDir "/usr/local/etc/Counter/data" */
  65.  
  66. /*------------------------------------*/
  67.  
  68. /*
  69. ** base directory of the log file
  70. */
  71. /* #define LogDir "/usr/local/etc/Counter/logs" */
  72. /*
  73. ** name of log file. Error and log messages will be written to this
  74. */
  75. /* #define LogFile "Count15.log" */
  76.  
  77. #endif /* _COUNT_CONFIG_H*/
  78.  
  79. extern char ConfigDir[];
  80. extern char ConfigFile[];
  81. extern char DigitDir[];
  82. extern char DataDir[];
  83. extern char LogDir[];
  84. extern char LogFile[];
  85.