forked from 0x2620/oxjs
keep example ids and titles in sync
This commit is contained in:
parent
49c30cfe38
commit
422258448e
14 changed files with 2 additions and 2 deletions
14
examples/maps/ipv4_map_of_the_internet/txt/ipv4map.php.txt
Normal file
14
examples/maps/ipv4_map_of_the_internet/txt/ipv4map.php.txt
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
// ipv4map.php - no copyright 2011 0x2620.org - public domain
|
||||
|
||||
$data = array();
|
||||
$data['host'] = $_GET['host'] ? $_GET['host']
|
||||
: gethostbyaddr($_GET['ip'] ? $_GET['ip'] : $_SERVER['REMOTE_ADDR']);
|
||||
$data['ip'] = $_GET['ip'] ? $_GET['ip']
|
||||
: $_GET['host'] ? gethostbyname($data['host']) : $_SERVER['REMOTE_ADDR'];
|
||||
|
||||
header('Content-Type: text/javascript');
|
||||
echo $_GET['callback'] . '(' . json_encode($data) . ')';
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue