#!/usr/local/bin/perl
#
# program name : indexwog.cgi (send INDEX file WithOut Gacf.cgi call)
#
# function : send index.html(or index.htm(change $html_file)) to
# browser except line, in order to
# prevent double count of access counter.
#
# note : this indexwog is made for gacf.cgi (graphic access
# counter for first page), where CGI is available.
#
# programmer : makoto takenaka : takesoft@mxs.meshnet.or.jp
#
# copyright : (C) 1996 by Takesoft
#
# version(date): version 1. 0(August 3, 1996)
#
#(1) set constant.
#
# if you use index.htm file for first Web page, change
# "./index.html" to "./index.htm" in the next line.
#
$html_file = "./index.html"; # html file with gacf.cgi call
#
#(2) Send $html_file except line.
#
#
print "Content-type: text/html\n\n";
#
open(HTML_FILE, "$html_file")
||die "indexwog: Unable to open $html_file.";
#
while()
{
#
# If this line $_ contains "gacf.cgi", do not send this line.
#
unless(/\"gacf.cgi\"/)
{
print $_;
}
}
#
close(HTML_FILE);
#