equal
deleted
inserted
replaced
186 break; |
186 break; |
187 case "rdns": |
187 case "rdns": |
188 if(!$session->get_permissions('mod_misc')) die('Go somewhere else for your reverse DNS info!'); |
188 if(!$session->get_permissions('mod_misc')) die('Go somewhere else for your reverse DNS info!'); |
189 $ip = $_GET['ip']; |
189 $ip = $_GET['ip']; |
190 $rdns = gethostbyaddr($ip); |
190 $rdns = gethostbyaddr($ip); |
191 if($rdns == $ip) echo 'Unable to get reverse DNS information. Perhaps the IP address does not exist anymore.'; |
191 if($rdns == $ip) echo 'Unable to get reverse DNS information. Perhaps the DNS server is down or the PTR record no longer exists.'; |
192 else echo $rdns; |
192 else echo $rdns; |
193 break; |
193 break; |
194 case 'acljson': |
194 case 'acljson': |
195 $parms = ( isset($_POST['acl_params']) ) ? rawurldecode($_POST['acl_params']) : false; |
195 $parms = ( isset($_POST['acl_params']) ) ? rawurldecode($_POST['acl_params']) : false; |
196 echo PageUtils::acl_json($parms); |
196 echo PageUtils::acl_json($parms); |