Description:
Httpaccess is command line program for scaning httpd log.
It's used as oposite of similar cgi program which counts download of file.
If you intend to use this program be aware that it can't update access count
to html file instantly like cgi.
You must manualy or with some schedule program update html files.
But you can track absolute anything, pictures, wrong requests, etc., in one
word: everything what's in log file.

Installation:

Makefile is by default adapted for linux, edit if you need change install
location or compiler and library.
Type make and then make install to install it or make help to see other
options in compiling.
Delete source if you want.

Bugs and occurence:

There's some limits:
DO NOT UPDATE FILES in which line is bigger of 4024 characters, because
that line will be truncated to 4024 characters.
Html activation comment moust be in one line (see below).

Configuring .httpaccrc file and others:

If you do make install, then httpacc.conf file is copied to $HOME/.httpaccrc
otherwise copy httpacc.conf to your home directory as .httpaccrc .
Locations of files in .httpaccrc:
	CHECKFILE - type here full path to location where you put 'check'
	file. You can write that file anywhere, just be shure that program
	can read it.
	DATAFILE - type here full path to location where will be writen
	data which program found in log file from 'check' file.
	LOGFILE - type here full path to location of apache log file.
	Current only apache log file is supported.
	TMPDIR - type here full path to temporary directory.
	In that directory program make changes to data and html files.
-=> Structure of 'check' file:
	Write only http location of file, eq.:
	You have url: http://my.host.on.net/~login/dir1/dir2/some.file
	You will write in 'check' file: /~login/dir1/dir2/some.file
	or you can write part of it like: dir2/some.file
	be aware that someone else on that host can have url with this part.
	Each file location write in one line, do not left space character at
	end of line, otherwise it will be used as part of file location.
-=> Structure of data file:
	Data file is generating automatic from program and I don't suggest
	that you modify it.
	First line contain location of file which is identical to one writed
	in 'check' file.
	Second line contain last date when is log file scaned, so older dates
	is not count at next update.
	Third line is number of total access at file location.
-=> Adding count options in html files:
	If you want update you html files with count value from data file,
	you must add comment to your html file.
	Comment must begin with: '<!-- htacccnt:' after which you write exact
	file location as it in 'check' file, in braskets, then close comment.
	Eq.: <!-- htacccnt: "/~sklaic/me/lpiaf.gif" -->
	Next write some number or whatever which represent that file is not
	yet updated, your choice, that part will be erased after you do update.
	On the end write this comment: <!-- htaccend -->
	NOTE: this comments MUST BE IN ONE LINE and you can have more than one
	in line.
	So line culd look like this:
There is <!-- htacccnt: "/~sklaic/me/lpiaf.gif" --> N/A<!-- htaccend -->. access to this picture.<BR>
	After you update this html file, you can get line like this:
There is <!-- htacccnt: "/~sklaic/me/lpiaf.gif" -->12<!-- htaccend -->. access to this picture.<BR>
	If you get first line again, it means that location in braskets don't
	exists in data file, otherwise you must get at least 0.

Feedback:

Comments, questions, ports and other patches, and bug reports (please be
detailed), are welcome. Send them to me on e-mail: sklaic@student.math.hr.
URL: http://student.math.hr/~sklaic

Copyright and etc.:

Copyright (C) 2001,2002 Silvio Klaic

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.

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
