From dd3be30e567fa614871a885b650960c28c7c5264 Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Wed, 1 Apr 2020 17:22:01 +0200 Subject: [PATCH] Add Clonezilla --- modules/ClonezillaAlternative.php | 15 +++++++++++++++ modules/ClonezillaStable.php | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 modules/ClonezillaAlternative.php create mode 100644 modules/ClonezillaStable.php 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; + } +} + +?>