Update device.php

This commit is contained in:
Len
2018-02-17 03:45:37 -05:00
committed by GitHub
parent 183beb2302
commit 6e9a50977a

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 "";
}