]> git.ipfire.org Git - thirdparty/sarg.git/log
thirdparty/sarg.git
12 years agoMake a translator friendly message out of pieced together words
Frédéric Marchal [Sun, 16 Dec 2012 17:03:51 +0000 (18:03 +0100)] 
Make a translator friendly message out of pieced together words

The "generated by" message written at the page bottom was made out of
words assembled together during the page generation. It was not possible
to translate that message.

12 years agoInclude Danish translation
Frédéric Marchal [Sun, 7 Oct 2012 07:06:04 +0000 (09:06 +0200)] 
Include Danish translation

12 years agoMake one function to read an input log
Frédéric Marchal [Sat, 29 Sep 2012 18:33:09 +0000 (20:33 +0200)] 
Make one function to read an input log

This is the first step to read files using wildcards in the
configuration file.

12 years agoFix the month extracted from a common log format
Frédéric Marchal [Sat, 29 Sep 2012 16:05:02 +0000 (18:05 +0200)] 
Fix the month extracted from a common log format

The month number was one value short of the right value due to one
supernumerary subtraction

12 years agoBe more thorough when ensuring a file is correctly written
Frédéric Marchal [Wed, 12 Sep 2012 17:40:48 +0000 (19:40 +0200)] 
Be more thorough when ensuring a file is correctly written

The return status of every written file is checked when the file is closed.
Any incorrectly written file should be detected early and a proper message
should be reported.

12 years agoOverwrite any existing dansguardian temporary file
Frédéric Marchal [Sun, 9 Sep 2012 13:44:26 +0000 (15:44 +0200)] 
Overwrite any existing dansguardian temporary file

When sarg parses a dansguardian log, the temporary file to store the
parsed value is overwritten if it exists instead of appending the entries
at the end of any left over from a previous run.

12 years agoExplain the reason when a file cannot be opened
Frédéric Marchal [Thu, 6 Sep 2012 18:09:15 +0000 (20:09 +0200)] 
Explain the reason when a file cannot be opened

The system error string is written in the error message when a file cannot
be opened. It should help in diagnosing the reason for a failure.

12 years agoReport the IP address from which the user visited some site
Frédéric Marchal [Fri, 31 Aug 2012 20:06:39 +0000 (22:06 +0200)] 
Report the IP address from which the user visited some site

The IP address makes sense in that report to detect users visiting sites
from another computer but still identified by their credential.

12 years agoRemove a message about the redirector log that can't be deleted
Frédéric Marchal [Fri, 31 Aug 2012 19:46:41 +0000 (21:46 +0200)] 
Remove a message about the redirector log that can't be deleted

If no redirector log was provided, a message was displayed in debug mode to
inform the user about a temporary file that can't be deleted. That message
was unnecessary and misleading. It is now displayed only when appropriate.

12 years agoDownload report encapsulated in a module
Frédéric Marchal [Fri, 31 Aug 2012 17:09:19 +0000 (19:09 +0200)] 
Download report encapsulated in a module

Module build upon the model of the denied and authfail reports.

12 years agoAdd a safety to prevent the deletion of files that haven't been created
Frédéric Marchal [Fri, 31 Aug 2012 16:58:54 +0000 (18:58 +0200)] 
Add a safety to prevent the deletion of files that haven't been created

There was a path in the source code where sarg could try to delete the
temporary unsorted files of the denied and authfail reports without
checking that the file names were not empty.

The functions where the guard was added are not supposed to be called if
no reports are to be generated but that check relies on the caller. If the
caller fails and call the function to generate the reports, it will try
to delete a file whose name is empty.

12 years agoDon't delete the denied and authfail temporary files if requested
Frédéric Marchal [Fri, 31 Aug 2012 16:54:46 +0000 (18:54 +0200)] 
Don't delete the denied and authfail temporary files if requested

The temporary unsorted files containing the denied and authfail could be
deleted when the user had requested to keep the temporary files.

12 years agoAutoconfigure the XSL stylesheets to produce the man page
Frédéric Marchal [Thu, 30 Aug 2012 05:52:39 +0000 (07:52 +0200)] 
Autoconfigure the XSL stylesheets to produce the man page

The configure script detects Debian and Gentoo current XSL stylesheets
paths and use the appropriate one when generating the man page.

12 years agoAdd the documentation for the --statistics parameter
Frédéric Marchal [Thu, 30 Aug 2012 05:40:17 +0000 (07:40 +0200)] 
Add the documentation for the --statistics parameter

Documentation added to the man page and the usage page displayed by sarg.

12 years agoCompute and display execution statistics
Frédéric Marchal [Wed, 29 Aug 2012 18:23:39 +0000 (20:23 +0200)] 
Compute and display execution statistics

The total run time is displayed along with the number of lines read in the
input logs, the number of records kept and the number of users.

The time it takes to read the input log files and the time it takes to
process the records are computed.

12 years agoTell in sarg.conf that access_log can be repeated
Frédéric Marchal [Wed, 29 Aug 2012 05:47:46 +0000 (07:47 +0200)] 
Tell in sarg.conf that access_log can be repeated

The possibility of repeating access_log to read more than one log file was
not documented. It is now documented in sarg.conf.

12 years agoChange version number to 2.4.0-pre1
Frédéric Marchal [Tue, 28 Aug 2012 06:22:32 +0000 (08:22 +0200)] 
Change version number to 2.4.0-pre1

The last digit will serve as a bug fix counter.

The build date is up to date.

12 years agoDon't trash the period when reading multiple log files
Frédéric Marchal [Tue, 28 Aug 2012 06:09:58 +0000 (08:09 +0200)] 
Don't trash the period when reading multiple log files

Reading multiple input log files overwrite the period due to the
processing made before reading a new file in readlog_sarg.c.

This fix make sure the period is as big as the total period of all the logs
read by sarg. It doesn't take into account gaps in the logs.

12 years agoFix the filtering out of the log based on a date
Frédéric Marchal [Mon, 27 Aug 2012 12:31:33 +0000 (14:31 +0200)] 
Fix the filtering out of the log based on a date

The date range was ignored and, in the worst case, no entries were
reported.

12 years agoDon't keep the % in the URL when converted into a file name
Frédéric Marchal [Sun, 26 Aug 2012 17:40:10 +0000 (19:40 +0200)] 
Don't keep the % in the URL when converted into a file name

When a file name is manufactured from a URL, the percent sign is removed to
prevent the web server or the browser from requesting a file with a % in
it.

The server or the browser would decode the percent sign if the two
subsequent bytes happened to be a valid hexadecimal byte and would request
the wrong file.

12 years agoRemove trailing spaces in every source file
Frédéric Marchal [Sun, 26 Aug 2012 17:35:01 +0000 (19:35 +0200)] 
Remove trailing spaces in every source file

12 years agoFix the reported year in the extended log
Frédéric Marchal [Sun, 26 Aug 2012 17:19:50 +0000 (19:19 +0200)] 
Fix the reported year in the extended log

The year was not properly encoded in the internal structure.

12 years agoKeep reading the log files even with a small number of errors
Frédéric Marchal [Sun, 26 Aug 2012 16:47:25 +0000 (18:47 +0200)] 
Keep reading the log files even with a small number of errors

Sarg tolerates a few errors in the input log files. The number of errors
can be configured. Sarg can stop on some consecutive errors and on the
total number of errors.

12 years agoAllow an empty data size in a common log
Frédéric Marchal [Sun, 26 Aug 2012 15:37:23 +0000 (17:37 +0200)] 
Allow an empty data size in a common log

Any column of the common log format may be - to denote missing or
no applicable data. In particular, apache writes a - when the URL is a
redirection. That case is taken into account with this patch.

12 years agoAccept common log files without extension column
Frédéric Marchal [Sun, 26 Aug 2012 15:25:49 +0000 (17:25 +0200)] 
Accept common log files without extension column

The sample common log file used to test the program contained additional
columns. The standard common log format doesn't have those column. Sarg
failed to parse the standard format due to the lack of any supernumerary
column.

12 years agoRemove trailing spaces
Frédéric Marchal [Sun, 26 Aug 2012 15:24:37 +0000 (17:24 +0200)] 
Remove trailing spaces

12 years agoChange the structure to search for the current log format
Frédéric Marchal [Sun, 26 Aug 2012 15:16:31 +0000 (17:16 +0200)] 
Change the structure to search for the current log format

Rewrite the loop to scan through the known log formats to make it more
readable and let the compiler optimize it.

12 years agoIgnore the sarg log file name until the format is confirmed
Frédéric Marchal [Sun, 26 Aug 2012 14:50:36 +0000 (16:50 +0200)] 
Ignore the sarg log file name until the format is confirmed

The validity of the sarg input log file must be delayed until the format
header is detected or the filter will fail when parsing any other log
format.

12 years agoPurge the old log file decoding code
Frédéric Marchal [Sun, 26 Aug 2012 13:56:55 +0000 (15:56 +0200)] 
Purge the old log file decoding code

The legacy code to read the log files is gone for good.

12 years agoExtract the covered period from the sarg log file
Frédéric Marchal [Sun, 26 Aug 2012 13:53:52 +0000 (15:53 +0200)] 
Extract the covered period from the sarg log file

A sarg log file is named after the covered date range. The range is
extracted and used in the report.

12 years agoDecode extended log formats
Frédéric Marchal [Sun, 26 Aug 2012 13:46:51 +0000 (15:46 +0200)] 
Decode extended log formats

Microsoft ISA produces such a log. This change is supposed to handle more
general cases than the previous routine.

The current code successfully decode the one line long log I have to test
the code. The decoding procedure may not be compatible with *any*
compliant extended log implementation. Sample logs are necessary to improve
the code.

12 years agoFix a crash when no log formats are found suitable
Frédéric Marchal [Sun, 26 Aug 2012 13:41:52 +0000 (15:41 +0200)] 
Fix a crash when no log formats are found suitable

If no log formats can decode a line from the input log, an index would
exceed its bound and produce a crash.

12 years agoEditor removed trailing spaces
Frédéric Marchal [Sun, 26 Aug 2012 13:39:53 +0000 (15:39 +0200)] 
Editor removed trailing spaces

No change in the program. Only those files are affected. Other files may
get changed in the future.

12 years agoValidate the entry time from the input log
Frédéric Marchal [Sun, 26 Aug 2012 09:44:10 +0000 (11:44 +0200)] 
Validate the entry time from the input log

The date and time found in the input log file are validated. Moreover,
additional fields such as the week day are computed.

12 years agoStore the entry time in a structure instead of a pointer
Frédéric Marchal [Sun, 26 Aug 2012 09:18:52 +0000 (11:18 +0200)] 
Store the entry time in a structure instead of a pointer

Instead of requiring that the module keeps track of the entry time on
behalf of the main loop, the entry time is stored in the entry structure.
Therefore, there is no need to keep a static variable inside the module
and pass its pointer to the caller.

12 years agoModular reading of some input log formats
Frédéric Marchal [Sat, 25 Aug 2012 06:45:20 +0000 (08:45 +0200)] 
Modular reading of some input log formats

Currently supported log formats are squid, common and sarg.

12 years agoRemove the project number from doxygen documentation
Frédéric Marchal [Tue, 21 Aug 2012 19:22:23 +0000 (21:22 +0200)] 
Remove the project number from doxygen documentation

12 years agoIgnore Doxygen files (hmtl and log)
Frédéric Marchal [Tue, 21 Aug 2012 19:22:02 +0000 (21:22 +0200)] 
Ignore Doxygen files (hmtl and log)

12 years agoDon't use strcmp to check strings one or zero characters long
Frédéric Marchal [Tue, 21 Aug 2012 19:02:33 +0000 (21:02 +0200)] 
Don't use strcmp to check strings one or zero characters long

As a side effect, the date format is stored in a single character instead
of a string and df is now the only variable used globally to set the
date format.

12 years agoDon't show the input log reading percentage
Frédéric Marchal [Fri, 10 Aug 2012 18:10:31 +0000 (20:10 +0200)] 
Don't show the input log reading percentage

The show_read_percent option shows the percent of the input log file
reading independently of show_read_statistics. It allows for a progress
indicator without having to read the input log file twice.

13 years agoMerge remote branch 'origin/v2.3'
Frédéric Marchal [Thu, 19 Jul 2012 15:08:25 +0000 (17:08 +0200)] 
Merge remote branch 'origin/v2.3'

Conflicts:
CMakeLists.txt
configure.in
po/zh_CN.po

13 years agoSwitch to version 2.3.3-pre3
Frédéric Marchal [Thu, 19 Jul 2012 07:26:24 +0000 (09:26 +0200)] 
Switch to version 2.3.3-pre3

Too bad I forgot to update the po files and set a git tag.

13 years agoCheck the working directory before preparing the archive
Frédéric Marchal [Thu, 19 Jul 2012 07:24:14 +0000 (09:24 +0200)] 
Check the working directory before preparing the archive

The script test for the usual things I always forget:

1) Update the po files.
2) Commit the changes.
3) Set a git tag to find the version back.

13 years agoUpdate the po files
Frédéric Marchal [Thu, 19 Jul 2012 07:19:46 +0000 (09:19 +0200)] 
Update the po files

13 years agoReally update the French translation
Frédéric Marchal [Wed, 18 Jul 2012 20:35:41 +0000 (22:35 +0200)] 
Really update the French translation

This is the real file from the Translation Project.

13 years agoUpdate French translation
Frédéric Marchal [Wed, 18 Jul 2012 20:32:12 +0000 (22:32 +0200)] 
Update French translation

13 years agoFormat the hour in a translator friendly way
Frédéric Marchal [Wed, 18 Jul 2012 20:18:29 +0000 (22:18 +0200)] 
Format the hour in a translator friendly way

Translators can have full control over the hour format in the hourly
report.

13 years agoFix an error message
Frédéric Marchal [Wed, 18 Jul 2012 20:17:04 +0000 (22:17 +0200)] 
Fix an error message

The error message reporting an invalid time with command line argument -t
said the time must be MM:SS instead of HH:MM.

13 years agoMerge remote branch 'origin/v2.3'
Frédéric Marchal [Tue, 17 Jul 2012 18:50:13 +0000 (20:50 +0200)] 
Merge remote branch 'origin/v2.3'

Conflicts:
po/bg.po
po/ca.po
po/cs.po
po/de.po
po/el.po
po/es.po
po/hu.po
po/id.po
po/it.po
po/ja.po
po/lv.po
po/nl.po
po/pl.po
po/pt.po
po/ro.po
po/ru.po
po/sk.po
po/sr.po
po/tr.po
po/uk.po
po/zh_CN.po

13 years agoFix column alignment in usage message
Frédéric Marchal [Tue, 17 Jul 2012 08:00:12 +0000 (10:00 +0200)] 
Fix column alignment in usage message

13 years agoRemove the old language files
Frédéric Marchal [Tue, 17 Jul 2012 07:59:56 +0000 (09:59 +0200)] 
Remove the old language files

These files were used in versions prior to 2.3. They are largely outdated.

They have been replaced by the gettext po files.

13 years agoUpdate the po files for the latest source
Frédéric Marchal [Mon, 16 Jul 2012 12:10:17 +0000 (14:10 +0200)] 
Update the po files for the latest source

13 years agoClearly report an error in the months list
Frédéric Marchal [Mon, 16 Jul 2012 12:06:54 +0000 (14:06 +0200)] 
Clearly report an error in the months list

Tell the user to report the bug to the translator.

13 years agoAdd a missing \n at the end of a message
Frédéric Marchal [Mon, 16 Jul 2012 11:56:06 +0000 (13:56 +0200)] 
Add a missing \n at the end of a message

13 years agoUpdate the usage note included in the source code
Frédéric Marchal [Mon, 16 Jul 2012 11:53:06 +0000 (13:53 +0200)] 
Update the usage note included in the source code

The usage notice is displayed with sarg --help.

The first column is wider. The argument that's still too long is wrapped on
the next line.

The donation request is removed as I don't know if it still possible to
make a donation and, if it is possible, I don't know where that money goes.

13 years agoPut quotes around the IP address reported in the messages
Frédéric Marchal [Mon, 16 Jul 2012 10:42:40 +0000 (12:42 +0200)] 
Put quotes around the IP address reported in the messages

It makes the message easier to read if the parsing went really wrong and
garbage is in the IP address.

13 years agoFix the translators comment
Frédéric Marchal [Mon, 16 Jul 2012 10:33:01 +0000 (12:33 +0200)] 
Fix the translators comment

A stray * was in the comment due to the formatting of the comment in the
source code.

13 years agoUpdate the ChangeLog
Frédéric Marchal [Mon, 16 Jul 2012 10:26:01 +0000 (12:26 +0200)] 
Update the ChangeLog

13 years agoUpdate the release date
Frédéric Marchal [Mon, 16 Jul 2012 10:20:12 +0000 (12:20 +0200)] 
Update the release date

13 years agoSort the top sites report by number of users connecting the sites
Frédéric Marchal [Mon, 16 Jul 2012 10:19:34 +0000 (12:19 +0200)] 
Sort the top sites report by number of users connecting the sites

The top sites report can be sorted according to the number of users
connecting to the visited sites. It shows how popular sites are within your
network.

13 years agoAdd a few comments for the translators
Frédéric Marchal [Mon, 16 Jul 2012 09:15:05 +0000 (11:15 +0200)] 
Add a few comments for the translators

13 years agoAdd a column to the top sites report
Frédéric Marchal [Mon, 16 Jul 2012 09:06:35 +0000 (11:06 +0200)] 
Add a column to the top sites report

The new column contains the number of users who visited each site amongst
the most visited sites.

13 years agoMerge remote branch 'origin/v2.3'
Frédéric Marchal [Sun, 15 Jul 2012 18:54:36 +0000 (20:54 +0200)] 
Merge remote branch 'origin/v2.3'

Conflicts:
authfail.c
denied.c
log.c
po/pl.po
report.c

13 years agoMerge branch 'v2.3' of ssh://sarg.git.sourceforge.net/gitroot/sarg/sarg into v2.3
Frédéric Marchal [Sun, 15 Jul 2012 17:43:03 +0000 (19:43 +0200)] 
Merge branch 'v2.3' of ssh://sarg.git.sourceforge.net/gitroot/sarg/sarg into v2.3

13 years agoUpdate the release date
Frédéric Marchal [Sun, 15 Jul 2012 17:10:39 +0000 (19:10 +0200)] 
Update the release date

13 years agoDon't report an error when deleting the denied temporary file
Frédéric Marchal [Sun, 15 Jul 2012 17:10:27 +0000 (19:10 +0200)] 
Don't report an error when deleting the denied temporary file

The file can be deleted at two places. If the first call delete it, the
second call must not report an error.

13 years agoRewrite two messages to have one unique entry to translate
Frédéric Marchal [Sun, 15 Jul 2012 17:01:33 +0000 (19:01 +0200)] 
Rewrite two messages to have one unique entry to translate

Replace a lower case by a upper case to merge two messages into one in the
po files.

13 years agoDelete the sorted smartfilter temporary file
Frédéric Marchal [Sun, 15 Jul 2012 16:58:10 +0000 (18:58 +0200)] 
Delete the sorted smartfilter temporary file

13 years agoStore the smartfilter log temporary file in the temporary directory
Frédéric Marchal [Sun, 15 Jul 2012 16:57:48 +0000 (18:57 +0200)] 
Store the smartfilter log temporary file in the temporary directory

I couldn't test this change as I don't have any log file with smartfilter
tags.

13 years agoDon't blindly delete /tmp/sarg
Frédéric Marchal [Sun, 15 Jul 2012 16:49:48 +0000 (18:49 +0200)] 
Don't blindly delete /tmp/sarg

If sarg is configured with a wrong /tmp path or the path given points to a
directory the user doesn't intent to use as a temporary directory, we must
not delete it's content (think about a link going to /usr/bin).

To protect against that situation, sarg only deletes its own files and
after making sure it only contains files created by sarg.

13 years agoRemove commented out code
Frédéric Marchal [Sun, 15 Jul 2012 16:42:36 +0000 (18:42 +0200)] 
Remove commented out code

13 years agoHopefully fix the smart filter
Frédéric Marchal [Sun, 15 Jul 2012 16:40:58 +0000 (18:40 +0200)] 
Hopefully fix the smart filter

I can't test it as I don't have any sample log with smartfilter enabled.

13 years agoRemove the message confirming that sarg is aborting
Frédéric Marchal [Sun, 15 Jul 2012 12:44:00 +0000 (14:44 +0200)] 
Remove the message confirming that sarg is aborting

It is obvious sarg aborts after reporting an error. There is no need to
display one more message telling so.

13 years agoUse the same message to report an error while deleting a file
Frédéric Marchal [Sun, 15 Jul 2012 12:38:08 +0000 (14:38 +0200)] 
Use the same message to report an error while deleting a file

No need to burden the translators with multiple messages identical but for
a few characters.

13 years agoKeep temporary files in place for inspection
Frédéric Marchal [Sun, 15 Jul 2012 12:34:52 +0000 (14:34 +0200)] 
Keep temporary files in place for inspection

Add a command line option and a configuration tag to leave the temporary
files in place when sarg terminates.

The feature is for debugging purpose. It cannot be used for production.

13 years agoA temporary file could be left in place by sarg
Frédéric Marchal [Sun, 15 Jul 2012 12:29:05 +0000 (14:29 +0200)] 
A temporary file could be left in place by sarg

During the creation of the user's reports, if the report showing the details
by date and hour is not requested, the unnecessary file is deleted but it
overwrite the buffer containing the name of another temporary file to
delete. As the file name is overwritten, it cannot be deleted when the
function completes.

13 years agoLimit the maximum length of a text line
Frédéric Marchal [Sun, 15 Jul 2012 08:51:15 +0000 (10:51 +0200)] 
Limit the maximum length of a text line

To prevent sarg from filling up the memory and waking up the OOM killer
while reading an invalid or corrupted log file, the longest line sarg
will accept before aborting is 10MB long. The limit is arbitrary.

13 years agoUpdate the messages when an error is detected while reading a line
Frédéric Marchal [Sun, 15 Jul 2012 08:49:00 +0000 (10:49 +0200)] 
Update the messages when an error is detected while reading a line

The module to read long text lines may read any file. It is not restricted
to reading the input log file. Therefore, the error messages must not claim
that the error is in the input log file.

13 years agoInclude the Polish translation
Frédéric Marchal [Sat, 14 Jul 2012 13:31:00 +0000 (15:31 +0200)] 
Include the Polish translation

It is a partial translation. 285 messages are translated. 300 are
untranslated.

13 years agoOutput getword error messages on stderr
Frédéric Marchal [Mon, 9 Jul 2012 18:09:41 +0000 (20:09 +0200)] 
Output getword error messages on stderr

That change was first made on branch v2.3 and merged with v2.4. The new
functions introduced in version 2.4 have been changed to reflect the same
change.

13 years agoMerge remote branch 'origin/v2.3'
Frédéric Marchal [Mon, 9 Jul 2012 18:02:51 +0000 (20:02 +0200)] 
Merge remote branch 'origin/v2.3'

13 years agoWrite getword errors on stderr
Frédéric Marchal [Mon, 9 Jul 2012 07:30:24 +0000 (09:30 +0200)] 
Write getword errors on stderr

Errors detected by any getword function is written using debuga (on stderr)
instead of stdout. It makes the redirection easier.

13 years agoRemove a duplicate message from the po files
Frédéric Marchal [Thu, 5 Jul 2012 14:00:32 +0000 (16:00 +0200)] 
Remove a duplicate message from the po files

The duplicate message occurred after a ill-advised merge between versions
of sarg.

It prevented the po files from being compiled.

13 years agoMake a module out of the authentication failures report
Frédéric Marchal [Thu, 5 Jul 2012 13:47:45 +0000 (15:47 +0200)] 
Make a module out of the authentication failures report

The authentication failures report is similar to the denied accesses report
and was changed to reflect the same changes.

13 years agoDelete the unsorted temporary file of the denied report
Frédéric Marchal [Thu, 5 Jul 2012 13:46:05 +0000 (15:46 +0200)] 
Delete the unsorted temporary file of the denied report

The wrong file was deleted.

13 years agoImprovements in the denied report code
Frédéric Marchal [Thu, 5 Jul 2012 13:45:06 +0000 (15:45 +0200)] 
Improvements in the denied report code

The sorted file name doesn't have to be global.

We make sure the file handle is closed even if the caller doesn't close it
by calling denied_close().

13 years agoMerge remote branch 'origin/v2.3'
Frédéric Marchal [Tue, 3 Jul 2012 19:51:38 +0000 (21:51 +0200)] 
Merge remote branch 'origin/v2.3'

Conflicts:
CMakeLists.txt
configure.in
log.c

13 years agoDenied report structured as a module
Frédéric Marchal [Tue, 3 Jul 2012 19:42:06 +0000 (21:42 +0200)] 
Denied report structured as a module

The denied report is produced by a module taking care of (almost) every
aspect of the report creation by itself.

The only point still taken into account outside of the module is the
DataFile variable that disable the denied report.

13 years agoStore the URL in the structure
Frédéric Marchal [Tue, 3 Jul 2012 19:13:23 +0000 (21:13 +0200)] 
Store the URL in the structure

The structure is to be shared with several modules.

As a side effect, the denied and authentication failure reports now display
the full URL even when the short URL is requested. It has to be defined
whether this is desirable or not.

13 years agoStore the HTTP code inside the structure
Frédéric Marchal [Tue, 3 Jul 2012 17:45:44 +0000 (19:45 +0200)] 
Store the HTTP code inside the structure

Continuation of the previous commits.

13 years agoStore the elapsed time and the number of bytes into the structure
Frédéric Marchal [Tue, 3 Jul 2012 15:07:10 +0000 (17:07 +0200)] 
Store the elapsed time and the number of bytes into the structure

Two more variables are included in the structure to be shared among
modules.

13 years agoStore the user in the structure
Frédéric Marchal [Tue, 3 Jul 2012 14:42:31 +0000 (16:42 +0200)] 
Store the user in the structure

Another step to use a structure to be passed around between modules.

13 years agoRemove old commented out code
Frédéric Marchal [Tue, 3 Jul 2012 14:40:15 +0000 (16:40 +0200)] 
Remove old commented out code

Those lines of code had been kept around for information.

13 years agoStore the IP address in a structure
Frédéric Marchal [Tue, 3 Jul 2012 10:19:03 +0000 (12:19 +0200)] 
Store the IP address in a structure

Yet another log variable stored in the structure to be exchanged with the
modules to read the input log files.

13 years agoStore the date and time in a structure
Frédéric Marchal [Tue, 3 Jul 2012 10:12:44 +0000 (12:12 +0200)] 
Store the date and time in a structure

The purpose is to store all the fields in a structure that will be
exchanged with modules to read many more type of log files.

13 years agoReduce the dependency of the main code to the denied report
Frédéric Marchal [Tue, 3 Jul 2012 09:52:16 +0000 (11:52 +0200)] 
Reduce the dependency of the main code to the denied report

Part of the code producing the denied report is changed to become a module
and centralize every aspect of the denied report generation.

13 years agoMove the log reading to a separate source file
Frédéric Marchal [Fri, 22 Jun 2012 19:37:33 +0000 (21:37 +0200)] 
Move the log reading to a separate source file

First stage to factorize the huge main function.

13 years agoAdd some missing files to the archive
Frédéric Marchal [Sat, 16 Jun 2012 05:14:22 +0000 (07:14 +0200)] 
Add some missing files to the archive

Three files were not released along with the source code.

13 years agoUpdate version number and build date
Frédéric Marchal [Thu, 14 Jun 2012 08:05:18 +0000 (10:05 +0200)] 
Update version number and build date

13 years agoAllow backslash as the domain/user separator
Frédéric Marchal [Thu, 14 Jun 2012 08:04:25 +0000 (10:04 +0200)] 
Allow backslash as the domain/user separator

For NTLM users, the domain and user names may be separated by a + or a \\
as pointed out by mrac33:
(http://sourceforge.net/tracker/index.php?func=detail&aid=3532108&group_id=68910&atid=522791)

For compatibility reasons, the _ separator is still retained.

Thanks to mrac33 for reporting and fixing this bug.