Add Pi-hole
This commit is contained in:
parent
762967f654
commit
0dc87d962a
1 changed files with 14 additions and 0 deletions
14
modules/PiHole.php
Normal file
14
modules/PiHole.php
Normal 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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue