AWStats minor bug
In /usr/local/ispconfig/server/conf/awstats_index.php.master, a few lines need to be added to fix order in dropdown menu. Right now, in months 1-9 current month will appear at the bottom and not first as it should.-
This code (line 42):
$current = year.
month;
awprev[
current] = year."-".
month;
closedir($handle);
Must be replaced by:
$current = year.
month;
if ( $month < 10 )
{
$current = year."0".
month;
}
awprev[
current] = year."-".
month;
closedir($handle);
Regards