2016-07-24 16:06:10 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2017-06-04 10:26:25 +00:00
|
|
|
* @author Caspar Armster, Leo Maroni
|
|
|
|
* @copyright 2017 Leo Maroni, Caspar Armster Freifunk Hennef/Freie Netzwerker e.V. (www.freifunk-hennef.de / www.freie-netzwerker.de), Freifunk Siegburg (www.frefunk-siegburg.de)
|
2016-07-24 16:06:10 +00:00
|
|
|
* @license Licensed under GPLv3
|
|
|
|
*/
|
|
|
|
|
|
|
|
$entwicklung = array(
|
|
|
|
"beta",
|
|
|
|
"experimental",
|
|
|
|
"stable"
|
|
|
|
);
|
|
|
|
$installation = array(
|
|
|
|
"factory",
|
|
|
|
"sysupgrade"
|
|
|
|
);
|
|
|
|
|
|
|
|
for ($i = 0; $i < count($entwicklung); $i++) {
|
|
|
|
for ($j = 0; $j < count($installation); $j++) {
|
|
|
|
$variante[$entwicklung[$i]][$installation[$j]] = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$hersteller = array(
|
|
|
|
array(
|
|
|
|
"name" => "8devices",
|
|
|
|
"filename" => "8devices",
|
|
|
|
"offset_modell" => 9,
|
2017-01-02 19:46:06 +00:00
|
|
|
"offset_version" => 4
|
2016-07-24 16:06:10 +00:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
"name" => "Alfa",
|
|
|
|
"filename" => "alfa",
|
|
|
|
"offset_modell" => 5,
|
|
|
|
"offset_version" => 4
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
"name" => "Allnet",
|
|
|
|
"filename" => "allnet",
|
|
|
|
"offset_modell" => 7,
|
|
|
|
"offset_version" => 4
|
|
|
|
),
|
2018-09-15 17:43:43 +00:00
|
|
|
array(
|
|
|
|
"name" => "AVM",
|
|
|
|
"filename" => "avm",
|
|
|
|
"offset_modell" => 4,
|
|
|
|
"offset_version" => 4
|
|
|
|
),
|
2016-07-24 16:06:10 +00:00
|
|
|
array(
|
|
|
|
"name" => "Buffalo",
|
|
|
|
"filename" => "buffalo",
|
|
|
|
"offset_modell" => 8,
|
|
|
|
"offset_version" => 4
|
|
|
|
),
|
2018-09-29 20:44:52 +00:00
|
|
|
array(
|
|
|
|
"name" => "China",
|
|
|
|
"filename" => "zbt",
|
2018-09-29 20:47:26 +00:00
|
|
|
"offset_modell" => 4,
|
2018-09-29 20:44:52 +00:00
|
|
|
"offset_version" => 4
|
|
|
|
),
|
2016-07-24 16:06:10 +00:00
|
|
|
array(
|
|
|
|
"name" => "D-Link",
|
|
|
|
"filename" => "d-link",
|
|
|
|
"offset_modell" => 7,
|
|
|
|
"offset_version" => -1
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
"name" => "GL-Inet",
|
2017-09-23 16:46:38 +00:00
|
|
|
"filename" => "gl",
|
2016-10-01 11:59:21 +00:00
|
|
|
"offset_modell" => 3,
|
|
|
|
"offset_version" => 4
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
"name" => "GL-Inet (alt)",
|
2016-07-24 16:06:10 +00:00
|
|
|
"filename" => "gl-inet",
|
|
|
|
"offset_modell" => 8,
|
|
|
|
"offset_version" => -1
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
"name" => "LeMaker",
|
|
|
|
"filename" => "lemaker",
|
|
|
|
"offset_modell" => 8,
|
|
|
|
"offset_version" => 4
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
"name" => "Linksys",
|
|
|
|
"filename" => "linksys",
|
|
|
|
"offset_modell" => 8,
|
|
|
|
"offset_version" => 4
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
"name" => "Meraki",
|
|
|
|
"filename" => "meraki",
|
|
|
|
"offset_modell" => 7,
|
|
|
|
"offset_version" => 4
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
"name" => "Netgear",
|
|
|
|
"filename" => "netgear",
|
|
|
|
"offset_modell" => 8,
|
|
|
|
"offset_version" => 4
|
|
|
|
),
|
2019-03-20 13:25:54 +00:00
|
|
|
rray(
|
|
|
|
"name" => "Nexx",
|
|
|
|
"filename" => "nexx",
|
|
|
|
"offset_modell" => 5,
|
2019-03-20 13:31:54 +00:00
|
|
|
"offset_version" => -1
|
2019-03-20 13:25:54 +00:00
|
|
|
),
|
2019-01-11 20:39:25 +00:00
|
|
|
array(
|
|
|
|
"name" => "Ocedo",
|
|
|
|
"filename" => "ocedo",
|
|
|
|
"offset_modell" => 6,
|
|
|
|
"offset_version" => 4
|
|
|
|
),
|
2016-07-24 16:06:10 +00:00
|
|
|
array(
|
|
|
|
"name" => "Onion",
|
|
|
|
"filename" => "onion",
|
|
|
|
"offset_modell" => 6,
|
|
|
|
"offset_version" => 4
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
"name" => "Openmesh",
|
|
|
|
"filename" => "openmesh",
|
|
|
|
"offset_modell" => 9,
|
|
|
|
"offset_version" => 4
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
"name" => "Raspberry Pi",
|
|
|
|
"filename" => "raspberry-pi",
|
|
|
|
"offset_modell" => 13,
|
|
|
|
"offset_version" => 4
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
"name" => "TP-Link",
|
|
|
|
"filename" => "tp-link",
|
|
|
|
"offset_modell" => 8,
|
|
|
|
"offset_version" => -1
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
"name" => "Ubiquiti",
|
|
|
|
"filename" => "ubiquiti",
|
|
|
|
"offset_modell" => 9,
|
|
|
|
"offset_version" => 4
|
|
|
|
),
|
2018-09-29 20:42:37 +00:00
|
|
|
array(
|
2018-09-29 20:44:52 +00:00
|
|
|
"name" => "UBNT",
|
2018-09-29 20:42:37 +00:00
|
|
|
"filename" => "ubnt",
|
2018-09-29 20:47:26 +00:00
|
|
|
"offset_modell" => 5,
|
2018-09-29 20:42:37 +00:00
|
|
|
"offset_version" => 4
|
2018-09-29 20:44:52 +00:00
|
|
|
),
|
2019-01-11 20:39:25 +00:00
|
|
|
array(
|
|
|
|
"name" => "VoCore",
|
|
|
|
"filename" => "vocore2",
|
|
|
|
"offset_modell" => 0,
|
|
|
|
"offset_version" => 4
|
|
|
|
),
|
2016-07-24 16:06:10 +00:00
|
|
|
array(
|
|
|
|
"name" => "Western Digital",
|
|
|
|
"filename" => "-wd-",
|
2016-07-24 20:53:51 +00:00
|
|
|
"offset_modell" => 3,
|
2016-07-24 16:06:10 +00:00
|
|
|
"offset_version" => 4
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
"name" => "x86",
|
|
|
|
"filename" => "x86",
|
|
|
|
"offset_modell" => 4,
|
|
|
|
"offset_version" => 4
|
2018-09-15 17:43:43 +00:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
"name" => "Zyxel",
|
|
|
|
"filename" => "zyxel",
|
|
|
|
"offset_modell" => 6,
|
|
|
|
"offset_version" => 4
|
2016-07-24 16:06:10 +00:00
|
|
|
)
|
|
|
|
);
|
|
|
|
$anzahl_hersteller = count($hersteller);
|
|
|
|
|
|
|
|
$offset_sysupgrade = array(
|
|
|
|
0 => 0,
|
|
|
|
1 => 11
|
|
|
|
);
|