Add Pi-hole

This commit is contained in:
Steffen Lange 2020-12-30 00:21:55 +01:00
parent 762967f654
commit 0dc87d962a

14
modules/PiHole.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class PiHole extends PatchBase {
function __construct() {
parent::__construct('Pi-hole LLC', 'Pi-hole', 'https://pi-hole.net/');
}
function check() : bool {
if ($this->fetch('https://api.github.com/repos/pi-hole/pi-hole/releases/latest', true))
return $this->parse_json('tag_name');
return false;
}
}
?>