<?php
###############################################################################
# TPPWholesale API.
#
# If the domain is not in the TPPW reseller profile an error will be returned.
# The validate_whois_proxy_output function can be used to return FALSE and thus
# cause a normal port 43 whois lookup to happen for such domains.
#
# Rename this file to tppw-validate.php and then include it at the end of your
# config.php. See below.
#
# require_once('thirdparty/tppw-validate.php');
#
###############################################################################

function validate_whois_proxy_output($domain, $whoisserver, $proxy, $data)
{
	$lookfor = "Error: Domain does not exist in your reseller profile";
	if(stristr($data, $lookfor) !== false)
		return false;
	return true;
}

###############################################################################
?>
