home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Spezial / SPEZIAL2_97.zip / SPEZIAL2_97.iso / ANWEND / ONLINE / SREFV12J / COUNTER.SHT < prev    next >
Text File  |  1997-07-12  |  2KB  |  62 lines

  1. <!--  This demonstrates a few of SRE-Filter's built in hit counters.
  2.  
  3. Notes:
  4.   1) you may need to create an empty foo.cnt file; either in the directory you
  5.     installed this file to, or in your goserve working directory (it depends on
  6.      how you've configured counter.rxx -- by default, you should put 
  7.      foo.cnt in this file's directory).
  8.      If you neglect to do this, the counter.rxx examples may not work
  9.      (it depends on the counter.rxx create_file option).
  10.   2) Note that hit_owner_suppress and hit_cache_len may make this demo
  11.      rather static.
  12.  
  13. -->
  14.  
  15. <HTML>
  16. <HEAD>
  17. <TITLE>Demo of SRE-Filter counters</TITLE>
  18. </HEAD>
  19.  
  20. <BODY> 
  21. <h1> This demonstrates the use of various SRE-Filter counters.</h1>
  22.  
  23. <!-- interpret code
  24.    tmp1=extract('clientaddr');
  25.    foo=wordpos(tmp1,get_value('OWNERS'));
  26.    foo2=0;
  27.    if get_value("hit_cache_len")<>0 then foo2=1;
  28.    if foo>0  & get_value("HIT_OWNER_SUPPRESS")=1 then do ;
  29.         queue " Warning: You are an OWNER, and HIT_OWNER_SUPPRESS is on: several of these counts will not be augmented.";
  30.    end;
  31.    if foo2>0 then queue " <br> Warning: HIT_CACHE_LEN < >0, several of these counts will not be augmented. ";
  32. -->
  33.  
  34. <!-- cache no -->
  35. <ol> 
  36. <li> The <!-- Replace hits --> server side include
  37. counter:  <TT><!-- Replace Hits -->   </TT>
  38.  
  39.  
  40. <li> The <!-- Replace count --> server side include
  41. counter:  <TT><!-- Replace count --></TT>
  42.  
  43. <li> The XCOUNT CGI-Bin counter, called with < img src="/cgi-bin/xcount?count1">:
  44. <TT> <img src="/cgi-bin/xcount?count1">       </TT>
  45. <li> The JCOUNT SSI counter, called with <!-- #exec cmd="/jcount?count1" -->:
  46. <TT> <!-- #exec cmd="jcount?count1" -->       </TT>
  47.  
  48. <li> The Counter.rxx counter, called with <!-- INTERPRET FILE
  49. COUNTER.RXX file=foo.cnt --> : <code> <!-- interpret file counter.rxx  file=foo --> </code>
  50.  
  51.  
  52. <li> The Counter.rxx counter, called with
  53. <br> < IMG SRC="/counter.rxx?file=foo&graphic=normal&increment=0&width=4" >:
  54.  <img SRC="/counter.rxx?file=foo&graphic=normal&increment=0&width=4">
  55.  
  56.  
  57.  
  58. </ol>
  59.  
  60. </BODY>
  61. </HTML>
  62.