PatchBot/modules/MikroTikRouterOS.php
2019-07-15 22:27:48 +02:00

16 lines
373 B
PHP

<?php
class MikroTikRouterOS extends PatchBase {
function __construct() {
parent::__construct('MikroTik', 'RouterOS', 'https://mikrotik.com/download');
}
function check() : bool {
if ($this->fetch('https://mikrotik.com/download')) {
$this->str_crop('id="routeros"', '</thead>');
return $this->parse('/<th>([\d\.]+) \(Stable\)/');
}
return false;
}
}
?>