looks like the host does not define the HTTP_HOST variable.
add the following to the page just after the <body> tag to see which server variables are getting set:
<pre><?php var_dump($_SERVER); ?></pre>
use that to find a server variable that is being set by the host that can be used in the if statement.