Add Clonezilla
This commit is contained in:
parent
e46dbb75a7
commit
dd3be30e56
2 changed files with 30 additions and 0 deletions
15
modules/ClonezillaAlternative.php
Normal file
15
modules/ClonezillaAlternative.php
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class ClonezillaAlternative extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('NCHC Free Software Lab', 'Clonezilla', 'https://clonezilla.org/');
|
||||||
|
$this->patch->setBranch('Alternative');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch('https://clonezilla.org/downloads.php'))
|
||||||
|
return $this->parse('/<b>alternative stable<\/b>[\s]*-[\s]*<font color=red>([\d]+-[a-z]+)/');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
15
modules/ClonezillaStable.php
Normal file
15
modules/ClonezillaStable.php
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class ClonezillaStable extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('NCHC Free Software Lab', 'Clonezilla', 'https://clonezilla.org/');
|
||||||
|
$this->patch->setBranch('Stable');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch('https://clonezilla.org/downloads.php'))
|
||||||
|
return $this->parse('/<b>stable<\/b>[\s]*-[\s]*<font color=red>([\d\.-]+)/');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue