Añadir 'nic.php'

This commit is contained in:
Luqaska 2021-09-22 22:32:50 +00:00
parent ed4d066f71
commit 53dfe7ca7a
1 changed files with 9 additions and 0 deletions

9
nic.php Normal file
View File

@ -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}';
}
} ?>