#!/usr/bin/perl

############################################
##                                        ##
##                 WebLog                 ##
##           by Darryl Burgdorf           ##
##                                        ##
##           Configuration File           ##
##                                        ##
############################################

require "/vs5/vs5/walking/www/cgi-bin/weblog/weblog.pl";


#change these for the domain this file is for
$SystemName = "chuckandgerry.com";
$LogFile = "/vs5/vs5/walking/www/logs/chuckandgerry.com-access_log";
$FileDir = "/vs5/vs5/walking/www/htdocs/chuckandgerry/logs";


#$IPLog = "/usr/foo/logs/ips";
$ReportFile = "log.html";
$DetailsFile = "log.details.html";
$RefsFile = "log.refs.html";
$KeywordsFile = "log.keys.html";
$AgentsFile = "log.agents.html";

$EOMFile = "";
$OrgName = "Planetmind";
$OrgDomain = '(planetmind.net)';

$GraphURL = "http://planetmind.org/images";
$GraphBase = "visits";

# $IncludeOnlyRefsTo = '(includethis|andthis)';
# $ExcludeRefsTo = '(excludethis|andthis)';

# $IncludeOnlyDomain = '';
# $ExcludeDomain = '';

$IncludeQuery = 0;

$PrintFiles = 1;
$Print404 = 1;
$PrintDomains = 0;
$PrintUserIDs = 0;
$PrintTopNFiles = 20;
$TopFileListFilter = '(\.gif|\.jpg|\.jpeg|Code)';
$PrintTopNDomains = 0;

$LogOnlyNew = 1;

$NoSessions = 0;
$NoResolve = 0;

$HourOffset = 0;

$DetailsFilter = '(\.gif|\.jpg|\.jpeg)';
$DetailsDays = 7;

$refsexcludefrom = '(file:)';
$refsexcludeto = '(\.gif|\.jpg|\.jpeg)';

$RefsStripWWW = 1;
$RefsMinHits = 1;
$TopNRefDoms = 10;

$AgentsIgnore = '(\.gif|\.jpg|\.jpeg)';

$Verbose = 0;

$bodyspec = "BGCOLOR=\"#ffffff\" TEXT=\"#000000\"";

$headerfile = "/www/cgi-bin/weblog/header.txt";
$footerfile = "/www/cgi-bin/weblog/footer.txt";

&MainProg;

print "Content-type: text/html\n\n";
print "<HTML><HEAD><TITLE>Planetmind Log Report - Main Menu</title></head><Body>\n\n";
print "<H2>The Report for $SystemName has been completed!</H2>\n\n";
print "Follow the links below to view your report. You might want to save the reports periodically for your records. We do not archive them.\n\n";
print "<P>";
print qq!

<UL>
<LI><A HREF="http://$SystemName/logs/log.html">Primary Access Summary Report</A> (<A HREF="#primary">more info</A>)
<LI><A HREF="http://$SystemName/logs/log.details.html">Detailed Report</A> (<A HREF="#detailed">more info</A>)
<LI><A HREF="http://$SystemName/logs/log.agents.html">Agent Report</A> (<A HREF="#agent">more info</A>)
<LI><A HREF="http://$SystemName/logs/log.refs.html">Referrer Report</A> (<A HREF="#referrer">more info</A>)
<LI><A HREF="http://$SystemName/logs/log.refs.html">Keyword Report</A>(<A HREF="#keyword">more info</A>)

</ul>
<BR><BR><HR><BR>
<H2>Statistics Info</H2>
<PRE>

<a name="primary">
Primary Access Summary Report

The primary WebLog access report provides the following information:

    A.  Long-Term Statistics

        1.  Monthly Statistics:  An overview of site activity (number
            of hits, number of bytes transferred, and approximate number
            of visitors) per month for each month since you started
            running WebLog.
        2.  Daily Statistics (Past Five Weeks):  An overview of site
            activity per day for the past five weeks.
        3.  Day of Week Statistics:  An overview of site activity by
            weekday, maintained as a running total since you started
            running WebLog.
        4.  Hourly Statistics:  An overview of site activity by hour of
            the day, maintained as a running total.
        5.  "Record Book":  A simple listing of the days on which your
            site had the most hits, transferred the most data and saw
            the most visitors.

        Each of the "Long-Term Statistics" reports (except the "record
        book," of course) lists four pieces of information:  Hits,
        Bytes, Visits and PViews.  The number of "hits" is the total
        number of files requested from the server.  For example, if a
        visitor loads a page which includes four inline graphics, a
        total of six hits will be recorded in the access log.  The
        number of bytes represents the total amount of information
        transferred by the server in filling those requests.  (Note that
        WebLog automatically factors in a bit extra in its calculations
        to allow for the fact that "header" information -- which is not
        recorded in the server access log -- is sent by the server along
        with each file.)  The number of "visits" is an approximation of
        the number of actual individual visitors to your Web site.  This
        is only a *very* rough approximation, and should be regarded as
        such.  The number of "pview" shows the number of Web pages
        viewed by your visitors.  Each of the "Long-Term Statistics"
        reports also includes a simple "bar graph" representation; the
        graph can be configured to reflect whichever of the four items
        you're most interested in being able to track "at a glance."

    B.  Statistics for The Current Month

        1.  Top N Files by Number of Hits (optional):  A list of the
            pages most frequently requested.
        2.  Top N Files by Volume (optional):  A list of the pages which
            resulted in the greatest number of bytes transferred.
        3.  Complete File Statistics (optional):  A list of all pages
            accessed in the current calendar month, with the date of
            last access, number of times requested, and total number of
            bytes transferred.
        4.  Top N Most Frequently Requested 404 Files (optional):  A
            list of the pages people are requesting most often which
            don't actually exist on your site.
        5.  Complete 404 File Not Found Statistics (optional):  A
            complete list of those nonexistent files.
        6.  User ID Statistics (optional):  A complete list of user IDs
            (and the associated second-level domains) utilized by the
            visitors to your Web site.  Note that this report can, of
            course, only be generated if at least part of your Web site
            is password protected through your server's default system.
        7.  "Top Level" Domains:  A breakdown of how many visits you've
            had from each type of domain (.com, .net, .edu, etc.)
        8.  Top N Domains by Number of Hits (optional):  A list of the
            IP addresses (domains) from which people have visited your
            site most often.
        9.  Top N Domains by Volume (optional):  A list of the IP
            addresses from which people have requested the greatest
            amount of information.
       10.  Complete Domain Statistics (optional):  A complete list of
            the IP addresses from which people have visited your site
            since the beginning of the current calendar month.

        Each of the "Current Month" reports resets automatically at the
        beginning of each month.  This allows you to easily keep track
        of things while preventing the report file from reaching too
        ridiculous a size over time.
</pre>
<P>
<a name="detailed">
<PRE>Detailed Report

Shows you detailed "tracks" of the paths taken through your site by
visitors for however many days you specify, and will give you overview
information regarding how many unique visitors you've had each day and
how long they seem to be staying around.  If logging of referring URLs
is enabled, it will also show you, where possible, where your visitors
came from.  Please note that precise tracking of the number of visitors
is impossible; the information in this report is at best a reasonably
close approximation based on the information in your server access log.</PRE>
<P>
<a name="agent">
<PRE>
Agent Report

The agent and platform reports list the agents (browsers)
and platforms (operating systems) utilized by visitors to your pages.
Again, of course, this report is only available if your server log
contains the necessary information.</PRE>
<P>
<a name="referring">
<PRE>Referrer Report

The referring URL report logs the URLs reported by browsers as
the "referers" directing them to the various listed pages.  You should
be aware that this information is far from perfect.  Many browsers do
not provide any information on the referring page; even those that do
can at times provide false or misleading data.  Of course, this report
is only available if your server log contains the necessary information.</PRE>
<P>
<a name="keyword">
<PRE>Keyword Report

The keywords report logs the keywords used by your visitors
to find you in the various Internet search engines and directories.  The
major search engines are each listed individually.  (Note that not all
search engines provide search keywords in their URLs, and so some are
not listed here.)  Again, this report is only available if your server
log contains the necessary information.</PRE>
<P><HR><BR>

We at Planetmind hope you enjoy your statistics.
!;
print "</body></html>";
exit;

