public static function statusIntegrityCheck($vaversionid) { $url = VMCaster::getVMCasterUrl() . "/integrity/statusimageList/" . $vaversionid . "/xml"; try { $xml = web_get_contents($url); if (trim($xml) === "") { throw new Exception('Could not connect with integrity check service. Please, try again later.'); } $result = VMCaster::parseIntegrityCheckResponse($xml); } catch (Exception $ex) { $result = VMCaster::parseIntegrityCheckResponse('[ERROR]' . $ex->getMessage()); return $result; } $newres = VMCaster::syncStatusIntegrityCheck($result); return $newres; }