From b6fe82b1a6d0c4849333a6a3f2df7e96666a57d2 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 3 Nov 2017 11:09:23 +0100 Subject: [PATCH] =?UTF-8?q?Solucionado=20problema=20con=20la=20comprobaci?= =?UTF-8?q?=C3=B3n=20de=20IPs,=20el=20SQL=20buscaba=20un=20cliente=20y=20n?= =?UTF-8?q?o=20hay=20que=20buscarlo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- new_service_webdns.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/new_service_webdns.php b/new_service_webdns.php index e5a05ef..9792fcd 100755 --- a/new_service_webdns.php +++ b/new_service_webdns.php @@ -275,9 +275,9 @@ class page_action extends tform_actions { global $app, $conf; $fields = $app->tform->encode($this->dataRecord, $app->tform->getCurrentTab(), true); //Llamada a la tabla server_ip para recuperar la ip4 e ip6 - $dns_ip_servidor = $app->db->queryOneRecord("SELECT ip_type, ip_address FROM server_ip WHERE client_id = ".$app->functions->intval($fields['client_id']. " AND ip_type='IPv4'")); + $dns_ip_servidor = $app->db->queryOneRecord("SELECT ip_type, ip_address FROM server_ip WHERE ip_type='IPv4'"); - $dns_ip_servidor_ipv6 = $app->db->queryOneRecord("SELECT ip_type, ip_address FROM server_ip WHERE client_id = ".$fields['client_id']." AND ip_type='IPv6'"); + $dns_ip_servidor_ipv6 = $app->db->queryOneRecord("SELECT ip_type, ip_address FROM server_ip WHERE ip_type='IPv6'"); /*print "
Campos ";print_r($fields);print "
\n"; print "
IP4 ";print_r($dns_ip_servidor);print "
\n";