Get the MAC address from the Panasonic User Agent string.
This commit is contained in:
parent
c9fee6c080
commit
1cd3ca4891
|
|
@ -60,6 +60,11 @@ openlog("fusion-provisioning", LOG_PID | LOG_PERROR, LOG_LOCAL0);
|
||||||
$mac = substr($_SERVER['HTTP_USER_AGENT'],-17);
|
$mac = substr($_SERVER['HTTP_USER_AGENT'],-17);
|
||||||
$mac = preg_replace("#[^a-fA-F0-9./]#", "", $mac);
|
$mac = preg_replace("#[^a-fA-F0-9./]#", "", $mac);
|
||||||
}
|
}
|
||||||
|
//Panasonic: $_SERVER['HTTP_USER_AGENT'] = "Panasonic_KX-UT670/01.022 (0080f000000)"
|
||||||
|
if (substr($_SERVER['HTTP_USER_AGENT'],0,9) == "Panasonic") {
|
||||||
|
$mac = substr($_SERVER['HTTP_USER_AGENT'],-14);
|
||||||
|
$mac = preg_replace("#[^a-fA-F0-9./]#", "", $mac);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//prepare the mac address
|
//prepare the mac address
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue