This example can be used on web hosting websites where after the check the current domain name is offered for registration. For example: If the domain name is free show a web form for registration or a form for the domain transfer. With every request in this class a boolean variable is set and can be used as a checkpoint to show a part of page or not. Of course it's also possible to redirect to another web pages.
This example is powered with Xajax, a PHP class whixh is not included in the class download, if you like to know how this works, please visit our post about ajax whois requests.