Add option to get the mac address from &name=SEPxxxxx
This commit is contained in:
parent
d1931ffc15
commit
ce709c6617
|
|
@ -42,6 +42,15 @@ openlog("fusion-provisioning", LOG_PID | LOG_PERROR, LOG_LOCAL0);
|
||||||
// $device_template = check_str($_REQUEST['template']);
|
// $device_template = check_str($_REQUEST['template']);
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
//get the mac address for Cisco 79xx in the URL as &name=SEP000000000000
|
||||||
|
if (empty($mac)){
|
||||||
|
$name = check_str($_REQUEST['name']);
|
||||||
|
if (substr($name, 0, 3) == "SEP") {
|
||||||
|
$mac = substr($name, 3, 12);
|
||||||
|
unset($name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//check alternate MAC source
|
//check alternate MAC source
|
||||||
if (empty($mac)){
|
if (empty($mac)){
|
||||||
//set the http user agent
|
//set the http user agent
|
||||||
|
|
|
||||||
|
|
@ -4,16 +4,16 @@
|
||||||
<!--
|
<!--
|
||||||
<MenuItem>
|
<MenuItem>
|
||||||
<Name>Personal</Name>
|
<Name>Personal</Name>
|
||||||
<URL>http://{$domain_name}/app/provision?mac={$mac}&file=directory-personal.xml</URL>
|
<URL>http://{$domain_name}/app/provision?file=directory-personal.xml</URL>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
-->
|
-->
|
||||||
<MenuItem>
|
<MenuItem>
|
||||||
<Name>Enterprise</Name>
|
<Name>Enterprise</Name>
|
||||||
<URL>http://{$domain_name}/app/provision?mac={$mac}&file=directory-enterprise.xml</URL>
|
<URL>http://{$domain_name}/app/provision?file=directory-enterprise.xml</URL>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem>
|
<MenuItem>
|
||||||
<Name>Speed Dial</Name>
|
<Name>Speed Dial</Name>
|
||||||
<URL>http://{$domain_name}/app/provision/?mac={$mac}&file=directory-speed_dial.xml</URL>
|
<URL>http://{$domain_name}/app/provision/?file=directory-speed_dial.xml</URL>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<SoftKeyItem>
|
<SoftKeyItem>
|
||||||
<Name>Select</Name>
|
<Name>Select</Name>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue