|
|
|
@@ -110,11 +110,11 @@ class limites { |
|
|
|
global $app, $conf; |
|
|
|
//Si el cliente esta vacío es admin. |
|
|
|
if($this->cliente){ |
|
|
|
//echo(' Usuario grupo es ' .$this->cliente_grupo_id); |
|
|
|
//echo(' Usuario grupo es ' .$this->cliente_grupo_id . ' limites DNS ' . $this->cliente["limit_dns_zone"]); |
|
|
|
if($this->cliente["limit_dns_zone"] >= 0) { |
|
|
|
$tmp = $app->db->queryOneRecord( |
|
|
|
"SELECT count(id) as number FROM dns_soa WHERE sys_groupid = ?", $this->cliente_grupo_id); |
|
|
|
|
|
|
|
//echo(' Cantidad de DNS ' . $tmp["number"]); |
|
|
|
if($tmp["number"] >= $this->cliente["limit_dns_zone"]) { |
|
|
|
$app->error($app->tform->wordbook["limit_dns_zone_txt"]); |
|
|
|
return true; |
|
|
|
@@ -155,10 +155,10 @@ class limites { |
|
|
|
foreach($this->todosLosGrupos as $grupos) { |
|
|
|
$tmpReventaALL = $app->db->queryOneRecord( |
|
|
|
"SELECT count(id) as number FROM dns_soa WHERE sys_groupid = ?", $grupos); |
|
|
|
|
|
|
|
|
|
|
|
$sumaTotal += $tmpReventaALL['number']; |
|
|
|
} |
|
|
|
|
|
|
|
//echo(' La suma ' . $sumaTotal . ' limite ' . $this->cliente["limit_dns_zone"]); |
|
|
|
if($sumaTotal >= $this->cliente["limit_dns_zone"]) { |
|
|
|
$app->error($this->esReventa['contact_name'] . '. ' . $app->tform->wordbook["limit_dns_zone_txt"]); |
|
|
|
return true; |
|
|
|
|