bludit/bl-plugins/version/plugin.php
2017-06-28 00:31:40 +02:00

18 lines
265 B
PHP

<?php
class pluginVersion extends Plugin {
private function getVersion()
{
$url = 'https://version.bludit.com';
$output = TCP::http($url);
$json = json_decode($output, true);
if(empty($json)) {
return array('version'=>'');
}
return $json;
}
}