mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Continued work on formatting the mac address for upper or lower case.
This commit is contained in:
@@ -357,10 +357,6 @@ require_once "resources/require.php";
|
||||
unset ($prep_statement);
|
||||
}
|
||||
|
||||
//format the mac address
|
||||
$format = new provision();
|
||||
$formatted_mac_address = $format->format_mac($device_mac_address, $device_vendor);
|
||||
|
||||
//use the mac address to get the vendor
|
||||
if (strlen($device_vendor) == 0) {
|
||||
$template_array = explode("/", $device_template);
|
||||
@@ -557,7 +553,7 @@ require_once "resources/require.php";
|
||||
else {
|
||||
$domain_name = $_SESSION['domain_name'];
|
||||
}
|
||||
echo " window.location = 'https://".$domain_name."/app/provision?mac=".$formatted_mac_address."&file=' + d + '&content_type=application/octet-stream';\n";
|
||||
echo " window.location = 'https://".$domain_name."/app/provision?mac=".$device_mac_address."&file=' + d + '&content_type=application/octet-stream';\n";
|
||||
echo " }\n";
|
||||
|
||||
echo "\n";
|
||||
@@ -607,7 +603,7 @@ require_once "resources/require.php";
|
||||
echo " <option value=''>".$text['label-download']."</option>\n";
|
||||
foreach ($files as $file) {
|
||||
//render the file name
|
||||
$file_name = str_replace("{\$mac}",$device_mac_address,basename($file));
|
||||
$file_name = str_replace("{\$mac}",$mac,basename($file));
|
||||
//add the select option
|
||||
echo " <option value='".basename($file)."'>".$file_name."</option>\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user