diff --git a/modules/ClonezillaAlternative.php b/modules/ClonezillaAlternative.php new file mode 100644 index 0000000..55b2498 --- /dev/null +++ b/modules/ClonezillaAlternative.php @@ -0,0 +1,15 @@ +patch->setBranch('Alternative'); + } + function check() : bool { + if ($this->fetch('https://clonezilla.org/downloads.php')) + return $this->parse('/alternative stable<\/b>[\s]*-[\s]*([\d]+-[a-z]+)/'); + return false; + } +} + +?> diff --git a/modules/ClonezillaStable.php b/modules/ClonezillaStable.php new file mode 100644 index 0000000..1956511 --- /dev/null +++ b/modules/ClonezillaStable.php @@ -0,0 +1,15 @@ +patch->setBranch('Stable'); + } + function check() : bool { + if ($this->fetch('https://clonezilla.org/downloads.php')) + return $this->parse('/stable<\/b>[\s]*-[\s]*([\d\.-]+)/'); + return false; + } +} + +?>