home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Web / Utilities / wwwcount-2.3 / testcount-sh < prev    next >
Encoding:
Text File  |  1996-05-02  |  2.0 KB  |  63 lines

  1. #!/bin/sh
  2. ########
  3. # a program to test Count.cgi 1.5
  4. # by muquit@semcor.com
  5. # 09/17/95
  6. ##
  7. # if sh=0, then a 1x1 transparent GIF will be written, it will give a
  8. # illusion. so you can count access to a page but will not display any
  9. # counter, otherwise it should always be 1
  10. # parameters can be separated by & or | or both
  11. #
  12. #QUERY_STRING="ft=6&rotate=1&frgb=#fec035&pad=Y&sh=T|incr=1&dd=E&df=counx.dat"
  13. #QUERY_STRING="df=sample.dat|pad=T|comma=T"
  14. #QUERY_STRING="ft=0&display=clock|dd=D"
  15. #QUERY_STRING="display=clock&tformat=12"
  16. #QUERY_STRING="display=clock&tformat=24"
  17. #QUERY_STRING="df=sample.dat|dd=B"
  18. #QUERY_STRING="Ft=0|DF=sample.dat|NEGATE=t|dd=A|srgb=ffffff|prgb=00ff00"
  19. #QUERY_STRING="ft=2|DF=sample.dat|frgb=gold"
  20. #QUERY_STRING="dd=F|lit=014567891|istrip=T|comma=T"
  21. #QUERY_STRING="lit=123456789|dd=A|comma=T"
  22. #QUERY_STRING="display=clock|dd=E"
  23. #QUERY_STRING="lit=14567891"
  24. #QUERY_STRING="df=RanDom|comma=T|chcolor=T|dd=D"
  25. #QUERY_STRING="display=clock|istrip=T|timezone=GMT+0000"
  26. #QUERY_STRING="timezone=GMT+0600|dd=E|comma=T"
  27. #QUERY_STRING="ft=0|display=clock|timezone=GMT+0000"
  28. #QUERY_STRING="display=clock|chcolor=1|timezone=GMT+0500"
  29. #QUERY_STRING="dd=A|display=clock|istrip=T"
  30. #QUERY_STRING="df=c:/file.dat"
  31. #QUERY_STRING="chcolor=T|display=date|dformat=ddmmyy|dd=B"
  32. QUERY_STRING="dd=D|image=lenna.gif|ft=20|frgb=powderblue"
  33. #QUERY_STRING="lit=04-13-95|ft=2|srgb=green|prgb=ff0000|dd=D"
  34. #QUERY_STRING="lit=0123456"
  35. QUERY_STRING="lit=A1,456-:P"
  36.  
  37. export QUERY_STRING
  38.  
  39. # play with authentication 
  40. # replace test.counter.com
  41. HTTP_REFERER="http://test.counter.com/cgi-bin/Count.cgi?aaaa"
  42. export HTTP_REFERER
  43.  
  44. # play with ignore host
  45. #
  46. REMOTE_ADDR='192.160.166.1'
  47. export REMOTE_ADDR
  48.  
  49. ###
  50. # if you have diplay from ImageMagick, try this
  51. # if you have xv, use xv instead of display
  52. ###
  53. ./Count.cgi -debug | display -
  54. #./Count.cgi -debug | xv -
  55.  
  56. ##
  57. # or you can write the image to file and display with any image viewer
  58. # here digit image will be written to a file count.gif
  59. ##
  60. ##
  61. #./Count.cgi -debug > litall.gif
  62.  
  63.