diff --git a/clases/limites.inc.php b/clases/limites.inc.php index 69cbb49..6265074 100755 --- a/clases/limites.inc.php +++ b/clases/limites.inc.php @@ -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; diff --git a/new_service_webdns.php b/new_service_webdns.php index 7e5973a..4af7c7b 100755 --- a/new_service_webdns.php +++ b/new_service_webdns.php @@ -45,6 +45,7 @@ class page_action extends tform_actions { print_r('La session de ' . $sesionDe); print(', su grupo es ' . $grupo);*/ //print_r($sesion); +//------LIMITES-------------------------------------------------------------------------------------------------- $this->estaLogeado = $_SESSION['s']['user']['typ']; // we will check only users, not admins if($this->estaLogeado == 'user') { @@ -53,6 +54,7 @@ class page_action extends tform_actions { $limitado->limitesLoad(); } +//------LIMITES-------------------------------------------------------------------------------------------------- parent::onShowNew(); } diff --git a/version_webdns.php b/version_webdns.php index 1ff2a17..761f150 100755 --- a/version_webdns.php +++ b/version_webdns.php @@ -19,11 +19,8 @@ All rights reserved. require_once '../../lib/config.inc.php'; require_once '../../lib/app.inc.php'; -//* Check permissions for module -//$app->auth->check_module_permissions('help'); -//if($_SESSION['s']['user']['typ'] == 'admin') { - echo '

 

 

 

'.$app->lng('Versión de WebDNS').' 2.0
Control de límites

¡¡Miauw!!

'; -//} +echo '

 

 

 

'.$app->lng('Versión de WebDNS').' 2.0
Control de límites

'; + ?>