Newer
Older
/**
* Description of Reboot
*
* @author tibo
*/
const MANIFEST = "https://download.cylab.be/monitor-php-client/manifest.json";
try {
$json = $client->get(self::MANIFEST)->getBody();
} catch (\Exception $ex) {
return "<p>Installed version: " . $this->getServer()->clientVersion() . "</p>"
. "<p>Latest client version: " . $this->latestVersion() . "</p>";
}
if ($this->getServer()->clientVersion() === $this->latestVersion()) {
return self::STATUS_OK;
}
return self::STATUS_WARNING;