From ee91ae30544a5c8fa52d01673ff16638238dbdc8 Mon Sep 17 00:00:00 2001 From: "jean.feltrin" Date: Fri, 18 Jun 2010 17:19:05 -0300 Subject: Implement gettext() calls --- usr/local/www/diag_dns.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'usr/local/www/diag_dns.php') diff --git a/usr/local/www/diag_dns.php b/usr/local/www/diag_dns.php index abdeea3..9d5f51d 100644 --- a/usr/local/www/diag_dns.php +++ b/usr/local/www/diag_dns.php @@ -49,7 +49,7 @@ if ($_POST) { $host_esc = escapeshellarg(trim($_POST['host'])); if (!is_hostname($host) && !is_ipaddr($host)) - $input_errors[] = "Host must be a valid hostname or IP address."; + $input_errors[] = gettext("Host must be a valid hostname or IP address."); // Test resolution speed of each DNS server. if ((is_hostname($host) || is_ipaddr($host))) { @@ -59,7 +59,7 @@ if ($_POST) { $dns_server = $pconfig['dns' . $dnscounter]; $query_time = `dig {$host_esc} @{$dns_server} | grep Query | cut -d':' -f2`; if($query_time == "") - $query_time = "No response"; + $query_time = gettext("No response"); $new_qt = array(); $new_qt['dns_server'] = $dns_server; $new_qt['query_time'] = $query_time; @@ -68,7 +68,7 @@ if ($_POST) { } } - $type = "unknown"; + $type = gettext("unknown"); $resolved = ""; $ipaddr = ""; $hostname = ""; @@ -88,7 +88,7 @@ if ($_POST) { } if ($host == $resolved) { - $resolved = "No record found"; + $resolved = gettext("No record found"); } } } @@ -103,10 +103,10 @@ include("head.inc"); ?>
- + - + - +
Resolve DNS hostname or IP
Hostname or IPgettext("Hostname or IP");?> @@ -116,15 +116,15 @@ include("head.inc"); ?>
Resolution time per server - + @@ -163,7 +163,7 @@ include("head.inc"); ?>
- Server + - Query time +
More Information: - Ping
- Traceroute +
+

- NOTE: The following links are to external services, so their reliability cannot be guaranteed.

- IP WHOIS @ DNS Stuff
- IP Info @ DNS Stuff +

+
+

 
  - + ">
-- cgit v1.1