|
|
|
@@ -60,7 +60,7 @@ class limites { |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
//* If the client belongs to a reseller, we will check against the reseller Limit too |
|
|
|
//* If the client belongs to a reseller, we will check against the reseller Limit too |
|
|
|
if($this->cliente['parent_client_id'] != 0) { |
|
|
|
//* first we need to know the groups of this reseller |
|
|
|
$this->getRevendedor(); |
|
|
|
@@ -83,12 +83,22 @@ class limites { |
|
|
|
$app->error($reseller['contact_firstname'] . '. ' . $app->tform->wordbook["limit_dns_zone_txt"]); |
|
|
|
return true; |
|
|
|
} |
|
|
|
/*$tmp = $app->db->queryOneRecord( |
|
|
|
"SELECT count(id) as number FROM dns_soa WHERE sys_groupid = ?", explode(',', $reseller_groups)); |
|
|
|
/* $tmp = $app->db->queryOneRecord( |
|
|
|
"SELECT count(id) as number FROM dns_soa WHERE sys_groupid = ?", explode(',', $this->revendedor_grupos)); |
|
|
|
echo(' El temp registros en dns_soa usando grupo reseller ' .$tmp['number']);*/ |
|
|
|
/* $sumaTotal = 0; |
|
|
|
$todosLosGrupos = explode(',', $this->revendedor_grupos); |
|
|
|
foreach($todosLosGrupos as $grupos) { |
|
|
|
$tmpReventaALL = $app->db->queryOneRecord( |
|
|
|
"SELECT count(id) as number FROM dns_soa WHERE sys_groupid = ?", $grupos); |
|
|
|
$sql = "SELECT count(id) as number FROM dns_soa WHERE sys_groupid = ". $grupos; |
|
|
|
echo(' Valores ' . $tmpReventaALL['number']); |
|
|
|
$sumaTotal =+ $tmpReventaALL['number']; |
|
|
|
echo($sumaTotal); |
|
|
|
|
|
|
|
}*/ |
|
|
|
/*if($tmp['number'] >= $reseller['number']) { |
|
|
|
$app->error($app->tform->wordbook["limit_dns_zone_txt"]. ' Dentro Limites'); |
|
|
|
$app->error($app->tform->wordbook["limit_dns_zone_txt"]); |
|
|
|
return true; |
|
|
|
}*/ |
|
|
|
} |
|
|
|
|