Añadir 'nic.php'
This commit is contained in:
parent
ed4d066f71
commit
53dfe7ca7a
|
@ -0,0 +1,9 @@
|
|||
<?php header("content-type: application/json"); if(isset($_GET["dname"])){
|
||||
$tld_list = json_decode(shell_exec("curl <The .json HTTP URL>"));
|
||||
if(isset($tld_list->{$_GET["dname"]})){
|
||||
echo '{"code":true, "url":"'.$tld_list->{$_GET["dname"]}.'"}';
|
||||
//echo shell_exec("curl ".$tld_list->{$_GET["dname"]});
|
||||
} else {
|
||||
echo '{"code":false}';
|
||||
}
|
||||
} ?>
|
Reference in New Issue