Florian Schaal
2016-03-22 5ca959fa688255a8de61f89fe2751eb4d24a6912
server/lib/classes/cron.d/200-logfiles.inc.php
@@ -60,8 +60,8 @@
      // Manage and compress web logfiles and create traffic statistics
      //######################################################################################################
      $sql = "SELECT domain_id, domain, type, document_root, web_folder, parent_domain_id FROM web_domain WHERE (type = 'vhost' or type = 'vhostsubdomain' or type = 'vhostalias') AND server_id = ?", $conf['server_id'];
      $records = $app->db->queryAllRecords($sql);
      $sql = "SELECT domain_id, domain, type, document_root, web_folder, parent_domain_id FROM web_domain WHERE (type = 'vhost' or type = 'vhostsubdomain' or type = 'vhostalias') AND server_id = ?";
      $records = $app->db->queryAllRecords($sql, $conf['server_id']);
      foreach($records as $rec) {
         //* create traffic statistics based on yesterdays access log file