ajax.php
changeset 1005 b7c7f7e2e93b
parent 968 105a24b4de8f
child 1017 d0d3da40c391
--- a/ajax.php	Wed May 27 09:44:27 2009 -0400
+++ b/ajax.php	Wed May 27 09:45:03 2009 -0400
@@ -539,8 +539,13 @@
     case "rdns":
       if(!$session->get_permissions('mod_misc')) die('Go somewhere else for your reverse DNS info!');
       $ip = $_GET['ip'];
+      if ( !is_valid_ip($ip) )
+      {
+        echo $lang->get('acpsl_err_invalid_ip');
+      }
       $rdns = gethostbyaddr($ip);
-      if($rdns == $ip) echo 'Unable to get reverse DNS information. Perhaps the DNS server is down or the PTR record no longer exists.';
+      if ( $rdns == $ip )
+        echo $lang->get('acpsl_err_ptr_no_resolve');
       else echo $rdns;
       break;
     case 'acljson':