Add the fip1x series provision template of flyingvoice and the vender of flyingvoice on the web. (#5996)

* Add fip1x series of flyingvoice  in the provision

* Fix boot file of flyingvoice does not take effect.
This commit is contained in:
Vincent
2021-08-27 23:39:10 +08:00
committed by GitHub
parent a838b116ca
commit c2772dc4c7
38 changed files with 22302 additions and 1 deletions

View File

@@ -122,6 +122,11 @@
$mac = $matches[1];
$mac = preg_replace("#[^a-fA-F0-9./]#", "", $mac);
}
//Flyingvoice: $_SERVER['HTTP_USER_AGENT'] = "Flyingvoice FIP13G V0.6.24 00:21:F2:22:AE:F1"
if (strtolower(substr($_SERVER['HTTP_USER_AGENT'],0,11)) == "flyingvoice") {
$mac = substr($_SERVER['HTTP_USER_AGENT'],-17);
$mac = preg_replace("#[^a-fA-F0-9./]#", "", $mac);
}
}
//prepare the mac address
@@ -452,7 +457,7 @@
header("Content-Type: text/plain");
header("Content-Length: ".strlen($file_contents));
}
else if ($device_vendor === "yealink") {
else if ($device_vendor === "yealink" || $device_vendor === "flyingvoice") {
header("Content-Type: text/plain");
header("Content-Length: ".strval(strlen($file_contents)));
}