Veeam Showcase


error_reporting(0);
function VeeamInfo($val){
$info_type = (isset($val) && $val!="") ? $val : "logo";
$url_arr = array("http://www.veeam.com/source/","http://www.nworks.com/source/","http://mirror.veeam.com/source/");
$url = $url_arr[0]."".$info_type."/";
$i=0;
$contents = "";
$arr_ch = Array();
while((!isset($arr_ch) || $arr_ch["http_code"]!="200" || $arr_ch["download_content_length"]=0) && isset($url_arr[$i])){
$url = $url_arr[$i]."".$info_type."/";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$contents = curl_exec($ch);
$arr_ch = curl_getinfo($ch);
$i++;
curl_close($ch);
}
print $contents;
}
?>