Use GeoIP for Webalizer

This commit is contained in:
earnolmartin 2023-02-27 11:26:51 -07:00
parent cd9d77bc56
commit 212aa8c68b

View file

@ -2039,7 +2039,7 @@ function updateWebstats(){
$str='';
foreach($res as $dom){
passthru2("mkdir -p ".$dom['homedir']."/httpdocs/webstats/");
$str.="webalizer -Q -p -n www.".$dom['domainname']." -o ".$dom['homedir']."/httpdocs/webstats ".$dom['homedir']."/logs/access_log -R 100 TopReferrers -r ".$dom['domainname']." HideReferrer \n";
$str.="webalizer -Q -p -j -n www.".$dom['domainname']." -o ".$dom['homedir']."/httpdocs/webstats ".$dom['homedir']."/logs/access_log -R 100 TopReferrers -r ".$dom['domainname']." HideReferrer \n";
}
echo $str;