Click a picture to see a larger view.
This page has been accessed
#!/usr/bin/perl
# Multicount Version 3.0
# Copyright 1998-2002 by Matt Riffle All Rights Reserved.
# Initial Full Release: 7/4/98 This Release: 6/16/02
# pingPackets http://www.pingpackets.com/
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. It is included in
# this distribution in the file "license.txt".
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# a standard pragma & module
use strict;
use Fcntl qw(:DEFAULT :flock);
# This is the directory in which the script will keep its data files.
# It should be chmod 777, or what is needed to ensure the server can write
# to it.
my $DATA_DIR = '/usr/local/etc/httpd/htdocs/walkersvillefire/hitcounts';
# If this is set to 1, the last IP address to access the counter will be
# cached to prevent one person from repeatedly updating the counter. If
# it is set to 0, one person can increment the counter multiple times in
# succession.
my $IP_CACHING = 1;
# The counts can be reported in various styles. To use normal numbers,
# specify 'numeric' or do not set this variable. To use numbers with
# commas inserted at the correct points, specify 'commas'. To use
# Roman numerals, specify 'roman'. For hexadecimal numbers, specify
# 'hex'. For binary, use 'binary'. For octal, use 'octal'.
my $STYLE = 'commas';
# This is the format in which the output will be result. Put
# OVERALL where you want the total count, DAILY where you want the
# daily count, and WEEKLY where the weekly count should go, MONTHLY
# for monthly count, and YEARLY for yearly count. If you
# don't want a certain count, just omit its keyword.
#my $FORMAT = 'OVERALL visits (DAILY today, WEEKLY this week, MONTHLY this
# month, YEARLY this year)';
my $FORMAT = 'OVERALL';
#### DO NOT EDIT BELOW THIS LINE ####
inc_and_display();
exit;
sub inc_and_display {
my $fbase = filename_base($ENV{DOCUMENT_URI} || $ENV{REQUEST_URI})
or error("Error determining file");
lock_file($fbase) or error("Error locking file");
sysopen(F1,"$fbase.cnt",O_RDWR|O_CREAT) or error("Error opening count");
chomp(my $counts =
Last modified Wednesday July 12 2006