home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Spezial
/
SPEZIAL2_97.zip
/
SPEZIAL2_97.iso
/
ANWEND
/
ONLINE
/
SREFV12J
/
COUNTER.SHT
< prev
next >
Wrap
Text File
|
1997-07-12
|
2KB
|
62 lines
<!-- This demonstrates a few of SRE-Filter's built in hit counters.
Notes:
1) you may need to create an empty foo.cnt file; either in the directory you
installed this file to, or in your goserve working directory (it depends on
how you've configured counter.rxx -- by default, you should put
foo.cnt in this file's directory).
If you neglect to do this, the counter.rxx examples may not work
(it depends on the counter.rxx create_file option).
2) Note that hit_owner_suppress and hit_cache_len may make this demo
rather static.
-->
<HTML>
<HEAD>
<TITLE>Demo of SRE-Filter counters</TITLE>
</HEAD>
<BODY>
<h1> This demonstrates the use of various SRE-Filter counters.</h1>
<!-- interpret code
tmp1=extract('clientaddr');
foo=wordpos(tmp1,get_value('OWNERS'));
foo2=0;
if get_value("hit_cache_len")<>0 then foo2=1;
if foo>0 & get_value("HIT_OWNER_SUPPRESS")=1 then do ;
queue " Warning: You are an OWNER, and HIT_OWNER_SUPPRESS is on: several of these counts will not be augmented.";
end;
if foo2>0 then queue " <br> Warning: HIT_CACHE_LEN < >0, several of these counts will not be augmented. ";
-->
<!-- cache no -->
<ol>
<li> The <!-- Replace hits --> server side include
counter: <TT><!-- Replace Hits --> </TT>
<li> The <!-- Replace count --> server side include
counter: <TT><!-- Replace count --></TT>
<li> The XCOUNT CGI-Bin counter, called with < img src="/cgi-bin/xcount?count1">:
<TT> <img src="/cgi-bin/xcount?count1"> </TT>
<li> The JCOUNT SSI counter, called with <!-- #exec cmd="/jcount?count1" -->:
<TT> <!-- #exec cmd="jcount?count1" --> </TT>
<li> The Counter.rxx counter, called with <!-- INTERPRET FILE
COUNTER.RXX file=foo.cnt --> : <code> <!-- interpret file counter.rxx file=foo --> </code>
<li> The Counter.rxx counter, called with
<br> < IMG SRC="/counter.rxx?file=foo&graphic=normal&increment=0&width=4" >:
<img SRC="/counter.rxx?file=foo&graphic=normal&increment=0&width=4">
</ol>
</BODY>
</HTML>