New helper function fetch_header()
This commit is contained in:
parent
2e7927c057
commit
b110ec8539
5 changed files with 13 additions and 11 deletions
|
|
@ -5,7 +5,7 @@ class EMClient extends PatchBase {
|
|||
parent::__construct('eM Client Inc.', 'eM Client', 'https://www.emclient.com/download?lang=en');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://www.emclient.com/dist/latest/setup.msi', false))
|
||||
if ($this->fetch_header('https://www.emclient.com/dist/latest/setup.msi'))
|
||||
return $this->parse('/filename=emclient-v([\d\.]+)\.msi/');
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ class PostgreSQL extends PatchBase {
|
|||
parent::__construct('PostgreSQL Global Development Group', 'PostgreSQL', 'https://www.postgresql.org/download/');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://www.postgresql.org/ftp/latest/', false))
|
||||
if ($this->fetch_header('https://www.postgresql.org/ftp/latest/'))
|
||||
return $this->parse('/\/ftp\/source\/v([\d\.]+)/');
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ class Scilab extends PatchBase {
|
|||
parent::__construct('ESI Group', 'Scilab', 'https://www.scilab.org/download');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://www.scilab.org/latest', false))
|
||||
if ($this->fetch_header('https://www.scilab.org/latest'))
|
||||
return $this->parse('/\/download\/scilab-([\d\.]+)/');
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ class Zoom extends PatchBase {
|
|||
parent::__construct('Zoom Video Communications', 'Zoom', 'https://zoom.us/download');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://zoom.us/client/latest/ZoomInstaller.exe', false))
|
||||
if ($this->fetch_header('https://zoom.us/client/latest/ZoomInstaller.exe'))
|
||||
return $this->parse('/\/prod\/([\d\.]+)\/ZoomInstaller\.exe/');
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue