parent
5661fa833c
commit
a1ab21c4da
6 changed files with 17 additions and 49 deletions
@ -1,14 +0,0 @@ |
||||
{ |
||||
use esmith::DomainsDB; |
||||
my $d = esmith::DomainsDB->open_ro or die "Couldn't open DomainsDB\n"; |
||||
my $lang = $awstats{'Language'} || 'fr'; |
||||
$OUT .= 'YEAR=$(date +%Y)'."\n"; |
||||
|
||||
foreach my $dom ($d->domains){ |
||||
my $stats = $dom->prop('Stats') || 'disabled'; |
||||
next if ($stats ne 'enabled'); |
||||
my $name = $dom->key; |
||||
$OUT .= 'mkdir -p /home/e-smith/files/stats/'."$name".'/$YEAR/'."\n"; |
||||
$OUT .= "/usr/share/awstats/tools/awstats_buildstaticpages.pl -config=$name -update -lang=$lang -dir=/home/e-smith/files/stats/$name/\$YEAR/ 2>&1 > /dev/null\n\n"; |
||||
} |
||||
} |
@ -0,0 +1,11 @@ |
||||
{ |
||||
use esmith::DomainsDB; |
||||
my $d = esmith::DomainsDB->open_ro or die "Couldn't open DomainsDB\n"; |
||||
foreach my $dom ($d->domains){ |
||||
my $stats = $dom->prop('Stats') || 'disabled'; |
||||
next unless ($stats eq 'enabled'); |
||||
my $name = $dom->key; |
||||
$OUT .= "<a href=\"https://stats.$DomainName/cgi-bin/awstats.pl?config=$name\">$name</a><p>\n"; |
||||
HERE |
||||
} |
||||
} |
Loading…
Reference in new issue