Update Grandstream provisioning (#2652)

* Update Grandstream provisioning

* Add Vtech

* Create app_config.php

fix typo

* Update app_config.php

remove newline at end as it can break php

* Update app_config.php

remove newline at end as it can break php

* Create app_config.php

remove newline at end.

* Update app_config.php

remove trailing newline

* Create device_edit.php

Add both http and https

* Create app_config.php

remove newline

* Add gxp16xx and fix typos
This commit is contained in:
Dean Montgomery
2017-06-08 16:21:47 -06:00
committed by FusionPBX
parent 137a282a1b
commit 66b849d946
39 changed files with 47198 additions and 2922 deletions
+43 -1
View File
@@ -1859,6 +1859,48 @@
$vendors[$y]['functions'][$z]['value'] = "ldap search";
$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
$vendors[$y]['functions'][$z]['groups'][] = "admin";
$z++;
$vendors[$y]['functions'][$z]['uuid'] = "bbb4c3f9-7a2f-4670-a194-e7ab92c5c3d1";
$vendors[$y]['functions'][$z]['label'] = "label-conference";
$vendors[$y]['functions'][$z]['name'] = "conference";
$vendors[$y]['functions'][$z]['value'] = "conference";
$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
$vendors[$y]['functions'][$z]['groups'][] = "admin";
$z++;
$vendors[$y]['functions'][$z]['uuid'] = "8434d505-36e0-422c-a1ab-8950e7849829";
$vendors[$y]['functions'][$z]['label'] = "label-menu";
$vendors[$y]['functions'][$z]['name'] = "menu";
$vendors[$y]['functions'][$z]['value'] = "menu";
$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
$vendors[$y]['functions'][$z]['groups'][] = "admin";
$z++;
$vendors[$y]['functions'][$z]['uuid'] = "4792c9dd-9342-4894-9987-61c45e46e7d7";
$vendors[$y]['functions'][$z]['label'] = "label-monitored_call_park";
$vendors[$y]['functions'][$z]['name'] = "monitored_call_park";
$vendors[$y]['functions'][$z]['value'] = "monitored call park";
$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
$vendors[$y]['functions'][$z]['groups'][] = "admin";
$z++;
$vendors[$y]['functions'][$z]['uuid'] = "27edbba6-14bb-48e8-8fa6-25f86bfc9ccc";
$vendors[$y]['functions'][$z]['label'] = "label-multicast_paging";
$vendors[$y]['functions'][$z]['name'] = "multicast_paging";
$vendors[$y]['functions'][$z]['value'] = "multicast paging";
$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
$vendors[$y]['functions'][$z]['groups'][] = "admin";
$z++;
$vendors[$y]['functions'][$z]['uuid'] = "d28bc679-b984-49a7-963f-7e5d9fc4dbcb";
$vendors[$y]['functions'][$z]['label'] = "label-record";
$vendors[$y]['functions'][$z]['name'] = "record";
$vendors[$y]['functions'][$z]['value'] = "record";
$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
$vendors[$y]['functions'][$z]['groups'][] = "admin";
$z++;
$vendors[$y]['functions'][$z]['uuid'] = "f99f55b8-113e-4fbb-aed1-84af66f5320c";
$vendors[$y]['functions'][$z]['label'] = "label-none";
$vendors[$y]['functions'][$z]['name'] = "none";
$vendors[$y]['functions'][$z]['value'] = "none";
$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
$vendors[$y]['functions'][$z]['groups'][] = "admin";
$y++;
$vendors[$y]['uuid'] = "03931359-917e-455b-b4fc-f875c530b79c";
@@ -2243,4 +2285,4 @@
$vendors[$y]['functions'][$z]['groups'][] = "superadmin";
$vendors[$y]['functions'][$z]['groups'][] = "admin";
?>
?>
+34
View File
@@ -1463,6 +1463,40 @@ $text['label-lcr']['ru-ru'] = "LCR";
$text['label-lcr']['sv-se'] = "LCR";
$text['label-lcr']['uk-ua'] = "";
$text['label-monitored_call_park']['en-us'] = "Monitored Call Park";
$text['label-monitored_call_park']['ar-eg'] = "";
$text['label-monitored_call_park']['de-at'] = "Monitored Call Park";
$text['label-monitored_call_park']['de-de'] = "Monitored Call Park";
$text['label-monitored_call_park']['es-cl'] = "";
$text['label-monitored_call_park']['fr-fr'] = "";
$text['label-monitored_call_park']['he-il'] = "";
$text['label-monitored_call_park']['it-it'] = "";
$text['label-monitored_call_park']['nl-nl'] = "";
$text['label-monitored_call_park']['pl-pl'] = "";
$text['label-monitored_call_park']['pt-br'] = "";
$text['label-monitored_call_park']['pt-pt'] = "";
$text['label-monitored_call_park']['ro-ro'] = "";
$text['label-monitored_call_park']['ru-ru'] = "Monitored Call Park";
$text['label-monitored_call_park']['sv-se'] = "Monitored Call Park";
$text['label-monitored_call_park']['uk-ua'] = "";
$text['label-multicast_paging']['en-us'] = "Multicast Paging";
$text['label-multicast_paging']['ar-eg'] = "";
$text['label-multicast_paging']['de-at'] = "Multicast Paging";
$text['label-multicast_paging']['de-de'] = "Multicast Paging";
$text['label-multicast_paging']['es-cl'] = "";
$text['label-multicast_paging']['fr-fr'] = "";
$text['label-multicast_paging']['he-il'] = "";
$text['label-multicast_paging']['it-it'] = "";
$text['label-multicast_paging']['nl-nl'] = "";
$text['label-multicast_paging']['pl-pl'] = "";
$text['label-multicast_paging']['pt-br'] = "";
$text['label-multicast_paging']['pt-pt'] = "";
$text['label-multicast_paging']['ro-ro'] = "";
$text['label-multicast_paging']['ru-ru'] = "Multicast Paging";
$text['label-multicast_paging']['sv-se'] = "Multicast Paging";
$text['label-multicast_paging']['uk-ua'] = "";
$text['label-page']['en-us'] = "Page";
$text['label-page']['ar-eg'] = "";
$text['label-page']['de-at'] = "Page";
+3 -1
View File
@@ -349,6 +349,7 @@
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
foreach ($result as &$row) {
$device_mac_address = $row["device_mac_address"];
$device_provisioned_ip = $row["device_provisioned_ip"];
$domain_uuid = $row["domain_uuid"];
$device_label = $row["device_label"];
//$device_mac_address = substr($device_mac_address, 0,2).'-'.substr($device_mac_address, 2,2).'-'.substr($device_mac_address, 4,2).'-'.substr($device_mac_address, 6,2).'-'.substr($device_mac_address, 8,2).'-'.substr($device_mac_address, 10,2);
@@ -562,7 +563,7 @@
if ($_SERVER['HTTPS'] == 'on') { $_SERVER['HTTP_PROTOCOL'] = 'https'; }
if ($_SERVER['SERVER_PORT'] == '443') { $_SERVER['HTTP_PROTOCOL'] = 'https'; }
}
echo " window.location = '".$_SERVER['HTTP_PROTOCOL']."://".$domain_name.PROJECT_PATH."/app/provision?mac=".$device_mac_address."&file=' + d + '&content_type=application/octet-stream';\n";
echo " window.location = '".$_SERVER['HTTP_PROTOCOL']."://".$domain_name.PROJECT_PATH."/app/provision/index.php?mac=".$device_mac_address."&file=' + d + '&content_type=application/octet-stream';\n";
echo " }\n";
echo "\n";
@@ -649,6 +650,7 @@
echo $device_mac_address;
}
echo " <div style='display: none;' id='duplicate_mac_response'></div>\n";
echo " ".$device_provisioned_ip."(<a href='http://".$device_provisioned_ip."' target='_blank'>http</a>|<a href='https://".$device_provisioned_ip."' target='_blank'>https</a>)\n";
echo "</td>\n";
echo "</tr>\n";
+1 -1
View File
@@ -256,7 +256,7 @@
echo " <td valign='top' class='".$row_style[$c]."'>".$row['device_vendor']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['device_template']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$text['label-'.$row['device_enabled']]."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['device_provisioned_date']." - ".$row['device_provisioned_method']." - ".$row['device_provisioned_ip']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['device_provisioned_date']." - ".$row['device_provisioned_method']." - <a href='http://".$row['device_provisioned_ip']."' target='_blank'>".$row['device_provisioned_ip']."</a>&nbsp;</td>\n";
echo " <td valign='top' class='row_stylebg'>".$row['device_description']."&nbsp;</td>\n";
echo " <td class='list_control_icons'>";
if (permission_exists('device_edit')) {