[insert_php] error_reporting(0);
function http_test_existance($url) {
return (($fp = @fopen($url, “r”)) === false) ? false : @fclose($fp);
}

function VeeamInfo($val){
$info_type = (isset($val) && $val!=””) ? $val : “logo”;
$url_arr = array(“http://www.veeam.com/source/it/”,”http://mirror.veeam.com/source/it/”);
$url = $url_arr[0].”/”.$info_type.”/”;
$i=0;
$contents = “”;
while(!http_test_existance($url)){
$url = $url_arr[$i].”/”.$info_type.”/”;
$i++;
}
if(http_test_existance($url)){
$handle = fopen($url, “rb”);
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
}
print $contents;
}
[/insert_php] [insert_php] VeeamInfo(“company”);[/insert_php] [insert_php] VeeamInfo(“available_suite”);[/insert_php] [insert_php] VeeamInfo(“backup”);[/insert_php] [insert_php] VeeamInfo(“essentials”);[/insert_php] [insert_php] VeeamInfo(“veeam_one”);[/insert_php] [insert_php] VeeamInfo(“nworks_scom”);[/insert_php] [insert_php] VeeamInfo(“nworks_spi”);[/insert_php]

Contattaci

Not readable? Change text. captcha txt