mike_p
2010-05-26 695825a8f8823ac966e78cda1ff7443b1c5c2e64
BUG FS#1139 - fix as described in forum has been applied and tested by running script - no errors encountered. - and query checked with mysql.
1 files modified
4 ■■■■ changed files
server/cron_daily.php 4 ●●●● patch | view | raw | blame | history
server/cron_daily.php
@@ -305,8 +305,8 @@
            */
            
            //* get the traffic
            $tmp = $app->db->queryOneRecord("SELECT traffic_bytes FROM web_traffic WHERE traffic_date like '$current_month%' AND hostname = '$domain'");
            $web_traffic = $tmp['traffic_bytes']/1024/1024;
            $tmp = $app->db->queryOneRecord("SELECT SUM(traffic_bytes) As total_traffic_bytes FROM web_traffic WHERE traffic_date like '$current_month%' AND hostname = '$domain'");
            $web_traffic = (int)$tmp['total_traffic_bytes']/1024/1024;
            
            //* Website is over quota, we will disable it
            /*if( ($web_traffic_quota > 0 && $web_traffic > $web_traffic_quota) ||