AddParam( "uid", $username ); $Enom->AddParam( "pw", $password ); // Set the domain name to check $Enom->AddParam( "tld", $tld ); $Enom->AddParam( "sld", $sld ); // Check the name $Enom->AddParam( "command", "check" ); $Enom->DoTransaction(); // Were there errors? if ( $Enom->Values[ "ErrCount" ] != "0" ) { return API_ERROR; } else { // Check code from NSI (210 = name available) return $Enom->Values[ "RRPCode" ]; } } ?>
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||