Jump to content

NandorRas

Member
  • Posts

    1
  • Joined

  • Last visited

About NandorRas

NandorRas's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. So I've added a custom whois file to the root of my whmcs installation to use the API of my registrar. I've edited that file correctly to use my account at the registrar. In the includes/whoisserver.php i've changed the line "#.nl|whois.domain-registry.nl|is free" with ".nl|http://www.raswebsolutions.nl/mdr_whois.php?domain=|HTTPREQUEST-nl is free" But when I check a .nl domain. It shows all as taken while some definately are not. Since http requests automatically get redirected to https I also tried to edit the line to: ".nl|https://www.raswebsolutions.nl/mdr_whois.php?domain=|HTTPSREQUEST-nl is free" But then... it shows ALL domains as available while some definately are not! I really need help on this one. I've tried to include the API/mdr_whois.php file as an txt-attachment to this post but for some reason that doesn't work. So I'm pasting the content of the file below: <?php // 09-02-2014 $user = "user"; // Your MijnDomeinReseller username $pass = "pass"; // Your MijnDomeinReseller password for the API $auth = "auth"; // Authtype of the password md5 or plain $path_to_mdr_class = "modules/registrars/mijndomeinreseller/class_MDR_api.php"; // Path to class for MDR API require($path_to_mdr_class); if($_SERVER["SERVER_ADDR"] != $_SERVER["REMOTE_ADDR"]) { print "You are not allowed to use this function"; } else { $mdr = new MDR_api(); $mdr->addParam( "user", $user); $mdr->addParam( "pass", $pass); $mdr->addParam( "authtype", $auth); $mdr->addParam( "command", "whois" ); $mdr->addParam( "type", "bulk" ); $mdr->addParam( "domeinen", $_GET["domain"] ); $mdr->DoTransaction(); if( $mdr->Values[ "errcount" ] > 0 ) { print "0"; } else { print $mdr->Values[ "status[1]" ] == "1" ? "free" : "not available"; } } ?> Thanks in advance!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated