Update device.php

This commit is contained in:
Len 2018-02-17 03:45:37 -05:00 committed by GitHub
parent 380aae381a
commit 2f3db7ae24
1 changed files with 12 additions and 0 deletions

View File

@ -113,6 +113,12 @@ include "root.php";
case "00268B":
$device_vendor = "escene";
break;
case "001fc1":
$device_vendor = "htek";
break;
case "0C383E":
$device_vendor = "fanvil";
break;
default:
$device_vendor = "";
}
@ -160,6 +166,12 @@ include "root.php";
if (preg_match('/^.*?panasonic.*$/i', $agent)) {
return "panasonic";
}
if (preg_match('/^.*?htek.*$/i', $agent)) {
return "htek";
}
if (preg_replace('/^.*?(fanvil).*$/i', '$1', $agent) == "fanvil") {
return "fanvil";
}
// unknown vendor
return "";
}