From fb3a98c0f06fb14a188e5a020936768fa04cb205 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Fri, 22 Oct 2010 06:24:31 -0400 Subject: [PATCH] Merged serveral bugfixes and new language files from stable branch (revisions 2055 - 2093) --- server/cron_daily.php | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/server/cron_daily.php b/server/cron_daily.php index 05df3d3..e9aedac 100644 --- a/server/cron_daily.php +++ b/server/cron_daily.php @@ -170,6 +170,17 @@ $awstats_pl = $web_config['awstats_pl']; $awstats_buildstaticpages_pl = $web_config['awstats_buildstaticpages_pl']; + $awstats_conf_dir = $web_config['awstats_conf_dir']; + $awstats_website_conf_file = $web_config['awstats_conf_dir'].'/awstats.'.$domain.'.conf'; + + if(!is_file($awstats_website_conf_file)) { + $awstats_conf_file_content = 'Include "'.$awstats_conf_dir.'/awstats.conf" +LogFile="/var/log/ispconfig/httpd/'.$domain.'/access.log" +SiteDomain="'.$domain.'" +HostAliases="www.'.$domain.' localhost 127.0.0.1"'; + file_put_contents($awstats_website_conf_file,$awstats_conf_file_content); + } + if(!@is_dir($statsdir)) mkdir($statsdir); -- Gitblit v1.9.1