diff --git a/modules/Tomcat10.php b/modules/Tomcat10.php new file mode 100644 index 0000000..5cd088a --- /dev/null +++ b/modules/Tomcat10.php @@ -0,0 +1,15 @@ +patch->setBranch('10'); + } + function check() : bool { + if ($this->fetch('https://tomcat.apache.org/download-10.cgi')) + return $this->parse('/id="([\d\.]+)"/'); + return false; + } +} + +?> diff --git a/modules/Tomcat11.php b/modules/Tomcat11.php new file mode 100644 index 0000000..545e0c2 --- /dev/null +++ b/modules/Tomcat11.php @@ -0,0 +1,15 @@ +patch->setBranch('11'); + } + function check() : bool { + if ($this->fetch('https://tomcat.apache.org/download-11.cgi')) + return $this->parse('/id="([\d\.]+)"/'); + return false; + } +} + +?> diff --git a/modules/Tomcat9.php b/modules/Tomcat9.php new file mode 100644 index 0000000..c40d224 --- /dev/null +++ b/modules/Tomcat9.php @@ -0,0 +1,15 @@ +patch->setBranch('9'); + } + function check() : bool { + if ($this->fetch('https://tomcat.apache.org/download-90.cgi')) + return $this->parse('/id="([\d\.]+)"/'); + return false; + } +} + +?>