ajax.php
changeset 1005 b7c7f7e2e93b
parent 968 105a24b4de8f
child 1017 d0d3da40c391
equal deleted inserted replaced
1004:e01c51cc1b35 1005:b7c7f7e2e93b
   537       die('// ERROR: this section is deprecated and has moved to includes/clientside/static/enano-lib-basic.js.');
   537       die('// ERROR: this section is deprecated and has moved to includes/clientside/static/enano-lib-basic.js.');
   538       break;
   538       break;
   539     case "rdns":
   539     case "rdns":
   540       if(!$session->get_permissions('mod_misc')) die('Go somewhere else for your reverse DNS info!');
   540       if(!$session->get_permissions('mod_misc')) die('Go somewhere else for your reverse DNS info!');
   541       $ip = $_GET['ip'];
   541       $ip = $_GET['ip'];
       
   542       if ( !is_valid_ip($ip) )
       
   543       {
       
   544         echo $lang->get('acpsl_err_invalid_ip');
       
   545       }
   542       $rdns = gethostbyaddr($ip);
   546       $rdns = gethostbyaddr($ip);
   543       if($rdns == $ip) echo 'Unable to get reverse DNS information. Perhaps the DNS server is down or the PTR record no longer exists.';
   547       if ( $rdns == $ip )
       
   548         echo $lang->get('acpsl_err_ptr_no_resolve');
   544       else echo $rdns;
   549       else echo $rdns;
   545       break;
   550       break;
   546     case 'acljson':
   551     case 'acljson':
   547       require_once(ENANO_ROOT.'/includes/pageutils.php');
   552       require_once(ENANO_ROOT.'/includes/pageutils.php');
   548       $parms = ( isset($_POST['acl_params']) ) ? rawurldecode($_POST['acl_params']) : false;
   553       $parms = ( isset($_POST['acl_params']) ) ? rawurldecode($_POST['acl_params']) : false;