You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$sql = "SELECT sys_groupid,domain_id,domain,traffic_quota,traffic_quota_lock FROM web_domain WHERE traffic_quota > 0 and type = 'vhost'";
290
290
$records = $app->db->queryAllRecords($sql);
291
291
if(is_array($records)) {
292
292
foreach($recordsas$rec) {
293
-
293
+
294
294
$web_traffic_quota = $rec['traffic_quota'];
295
295
$domain = $rec['domain'];
296
-
296
+
297
297
// get the client
298
298
/*
299
299
$client_group_id = $rec["sys_groupid"];
300
300
$client = $app->db->queryOneRecord("SELECT limit_traffic_quota,parent_client_id FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
301
301
$reseller = $app->db->queryOneRecord("SELECT limit_traffic_quota FROM client WHERE client_id = ".intval($client['parent_client_id']));
$tmp = $app->db->queryOneRecord("SELECT traffic_bytes FROM web_traffic WHERE traffic_date like '$current_month%' AND hostname = '$domain'");
309
-
$web_traffic = $tmp['traffic_bytes']/1024/1024;
310
-
308
+
$tmp = $app->db->queryOneRecord("SELECT SUM(traffic_bytes) As total_traffic_bytes FROM web_traffic WHERE traffic_date like '$current_month%' AND hostname = '$domain'");
0 commit comments