<?php
$domain = $_SERVER["HTTP_HOST"];
$url = file_get_contents("https://mijn.hostingu2.nl/logoquery.php?type=ico&hostname=" . urlencode($domain));
if($url) {
$data = file_get_contents($url);
}
else {
$data = file_get_contents("wit.jpg");
}
header("Content-Type: image/x-icon");
header("Content-Length: " . strlen($data));
print $data;
?>