If no output directory was given, the current directory is used. If no hostname was given, the program attempts to get the hostname using a uname system call. If that fails, localhost is used. This file keeps totals for previous months, which is used in the main index.html HTML document. If incremental processing was specified, a data file is searched for and loaded if found, containing the 'internal state' data of the program at the end of a previous run.
Main processing begins on the log file.
If the log spans multiple months, a seperate HTML document is created for each month. After main processing, the main index.html page is created, which has totals by month and links to each months HTML document. A new history file is saved to disk, which includes totals generated by The Webalizer during the current run. If incremental processing was specified, a data file is written that contains the 'internal state' data at the end of this run. Simply put, this allows processing large log files by breaking them up into smaller pieces, and processing these pieces instead.