Prise en compte des vhosts en plus des domaines

tags/0.1.4
Daniel Berteaud 12 years ago
parent e1a93b6918
commit fa7801c08e
  1. 2
      root/etc/e-smith/events/actions/awstats-update
  2. 2
      root/etc/e-smith/templates/usr/share/awstats/wwwroot/index.html/10All

@ -16,7 +16,7 @@ if (defined $domain){
@domains = $d->get($domain);
}
else{
@domains = ($d->domains);
@domains = ($d->domains,$d->get_all_by_prop(type=>'vhost'));
}
foreach my $dom (@domains){

@ -1,7 +1,7 @@
{
use esmith::DomainsDB;
my $d = esmith::DomainsDB->open_ro or die "Couldn't open DomainsDB\n";
foreach my $dom ($d->domains){
foreach my $dom ($d->domains,$d->get_all_by_prop('type=>'vhost')){
my $stats = $dom->prop('Stats') || 'disabled';
next unless ($stats eq 'enabled');
my $name = $dom->key;

Loading…
Cancel
Save