Add RouterOS v7
This commit is contained in:
parent
3e4ac070b0
commit
b1990c8347
1 changed files with 17 additions and 0 deletions
17
modules/MikroTikRouterOS7.php
Normal file
17
modules/MikroTikRouterOS7.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class MikroTikRouterOS7 extends PatchBase {
|
||||
function __construct() {
|
||||
parent::__construct('MikroTik', 'RouterOS', 'https://mikrotik.com/download');
|
||||
$this->patch->setBranch('v7 Stable');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://mikrotik.com/download')) {
|
||||
$this->str_crop('id="routeros7"', '</thead>');
|
||||
return $this->parse('/<th>([\d\.]+) Stable<\/th>/');
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue