home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
srev13g.zip
/
COUNTER.RX0
< prev
next >
Wrap
Text File
|
1999-03-26
|
4KB
|
113 lines
/* This is a server-side-include "counter display" for SRE-Http.
See COUNTER.DOC for details on installation and use.
Examples:
<!-- INTERPRET FILE COUNTER.RXX file=afile opt1=val1 opt2=.. , 0 -->
ctval=counter.rxx(optlist,noaugment,usedfile,sel,isent,ilen)
i.e; <!-- INTERPRET FILE COUNTER.RXX FILE=afile IMGTYPE=MBC --> */
/* Start USER configurable parameters **************/
/*BEGIN --- (this line is used by the EDITSREF.CMD SRE-Http utility)*/
/* record using the common-log format
1=use common log format, 0 = use the save_xxx parameters below */
common_log_format=0
/* where to store .cnt files.
0 means "use documents own directory"
Use ' ' Around The Name: counter_dir='D:\GOSERVE'
Note: If you specify a non-0 value,
and a host-specific COUNTER_RXX directory was specified,
then the host-specific directory will be used
(and NOT this "default" directory) */
counter_dir=0
/* Set directory (relative to the GoServe data directory)
that contains the "digit images". Counter_image_dir
is a selector pointing to root of image directories.
i.e; counter_image_dir='/DIGITS'*/
counter_image_dir ='/digits'
/* 1=create a .cnt file if none exists, 0=do not */
create_file=1
/* 2 = use a 1 cell <TABLE>
1 = use <NOBR> around strings of "graphical digits".
0 = do not use <NOBR>
Note that FORCE_BREAK>0 overrides DIGITS_NOBR */
digits_nobr=1
/* 0 = Normal, don't force <BR> before/after digits.
1 = Place a <BR> in front of each digit.
2 = Place a <BR> after each digit. */
force_break=0
/* 1 = Suppress the "log users" option, 0=do not (a logusers option will override write_users)*/
suppress_logusers=0
/* suppress incrementing if request is from a same client within
a suppress_recent timespan (by default, in minutes).
If 0, do NOT suppress.
Note that: 15 = 15m = 900s = .25h
Note: For suppress recent to work, you MUST set
either use_queue=1 or write_users=1 */
suppress_recent=0
/* suppress incrementing OWNER requests: 1=yes, 0=no */
suppress_owners=0
/* SAVE_ parameters used if common_log_format=0
1=save ip name, 0=do not save ip name */
save_ipname=1
/* 1=save username (if available),0=do not */
save_username=1
/* 1= save time (10:01:33), 0= do not */
save_time=1
/* 1=Save date (10 Feb 1996), 0=do not */
save_date=1
/* 1=save "request selector",0=do not */
save_docname=1
/* 1=save "referer", 0=do not */
save_referer=1
/* 1= save the "user-agent", 0=do not */
save_browser=1
/* 1 = save # of bytes sent & file size (or approximations thereof */
save_bytes = 1
/* 1=Use sref_http queues to cache recent hits. 0=use file */
use_queue=1
/* store info on each request. 0=no, 1=yes. Can be overridden
by a LOGUSERS option */
write_users=0
/*END --- (this line is used by the EDITSREF.CMD utility)*/
/* END OF USER CONFIGURABLE PARAMETERS -------------- */
if counter_dir<>0 then do
env=value('SREF_PREFIX',,'os2environment')
ahos=sref_value('HOST_NICKNAME',,'REQ')
if ahos<>'' then do
cdir=value(env||'COUNTER_RXX_DIR.'||ahos,,'os2environment')
if cdir<>'' then counter_dir=cdir
end
end
cparams=common_log_Format' 'counter_dir' 'counter_image_dir' 'create_file' 'digits_nobr
cparams=cparams' 'suppress_logusers' 'suppress_recent' 'suppress_owners' 'write_users
cparams=cparams' 'save_ipname' 'save_username' 'save_time' 'save_date' 'save_docname' 'save_referer' 'save_browser' 'save_bytes
cparams=cparams' 'use_queue' 'force_break
parse arg v1,v2,v3,v4,v5,v6,v7
yow=sref_counter(cparams,v1,usedfile,docname,verbose,v1,v2,v3,v4,v5,v6,v7)
return yow
/* updated on 11:17:28 23 Mar 1999 */