diff --git a/app/devices/app_config.php b/app/devices/app_config.php index 86297c8a54..920a68d8d3 100644 --- a/app/devices/app_config.php +++ b/app/devices/app_config.php @@ -1,13 +1,13 @@ 0) { //delete the data if (strlen($id)>0) { - $sql = "delete from v_hardware_phones "; + $sql = "delete from v_devices "; $sql .= "where domain_uuid = '$domain_uuid' "; - $sql .= "and hardware_phone_uuid = '$id' "; + $sql .= "and device_uuid = '$id' "; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); unset($sql); @@ -52,7 +52,7 @@ if (count($_GET)>0) { //redirect the user require_once "includes/header.php"; - echo "\n"; + echo "\n"; echo "
| Hardware Phone Add | \n"; - } - if ($action == "update") { - echo "Hardware Phone Edit | \n"; - } - echo "\n"; + echo " | Device | \n"; + echo "\n"; echo " | |||||||||||||||||||
| \n";
- echo "The following information is used to provision phones. \n"; + echo "The following information is used to provision endpoints. \n"; echo " | \n";
echo "\n";
- echo " \n";
+ echo " \n";
echo " \n"; echo "Enter the MAC address.\n"; echo " | \n";
@@ -285,9 +280,9 @@ require_once "includes/require.php";
echo " Label:\n";
echo "\n";
echo "\n";
- echo " \n";
+ echo " \n";
echo " \n"; - echo "Enter the phone label.\n"; + echo "Enter the device label.\n"; echo " | \n";
echo "\n";
@@ -297,7 +292,7 @@ require_once "includes/require.php";
echo "\n";
echo "\n"; - echo " | \n"; echo "\n";
- echo " \n";
+ echo " \n";
echo " \n"; echo "Enter the vendor name.\n"; echo " | \n";
@@ -348,7 +343,7 @@ require_once "includes/require.php";
echo " Model:\n";
echo "\n";
echo "\n";
- echo " \n";
+ echo " \n";
echo " \n"; echo "Enter the model number.\n"; echo " | \n";
@@ -359,7 +354,7 @@ require_once "includes/require.php";
echo " Firmware Version:\n";
echo "\n";
echo "\n";
- echo " \n";
+ echo " \n";
echo " \n"; echo "Enter the firmware version.\n"; echo " | \n";
@@ -371,7 +366,7 @@ require_once "includes/require.php";
echo " Username:\n";
echo "\n";
echo "\n";
- echo " \n";
+ echo " \n";
echo " \n"; echo "Enter the username.\n"; echo " | \n";
@@ -382,7 +377,7 @@ require_once "includes/require.php";
echo " Password:\n";
echo "\n";
echo "\n";
- echo " \n";
+ echo " \n";
echo " \n"; echo "Enter the password.\n"; echo " | \n";
@@ -394,15 +389,15 @@ require_once "includes/require.php";
echo " Enabled:\n";
echo "\n";
echo "\n";
- echo " \n"; - echo "Enable or disable provisioning for this phone.\n"; + echo "Enable or disable provisioning for this device.\n"; echo " | \n";
echo "\n";
@@ -419,7 +414,7 @@ require_once "includes/require.php";
echo " Time Zone:\n";
echo "\n";
echo "\n";
- echo " \n";
+ echo " \n";
echo " \n"; echo "Enter the time zone.\n"; echo " | \n";
@@ -430,7 +425,7 @@ require_once "includes/require.php";
echo " Description:\n";
echo "\n";
echo "\n";
- echo " \n";
+ echo " \n";
echo " \n"; echo "Enter the description.\n"; echo " | \n";
@@ -438,7 +433,7 @@ require_once "includes/require.php";
echo " ||||||||||||
| \n"; if ($action == "update") { - echo " \n"; + echo " \n"; } echo " \n"; echo " | \n"; diff --git a/app/devices/devices.php b/app/devices/devices.php index 45536b7b68..ccb69963d7 100644 --- a/app/devices/devices.php +++ b/app/devices/devices.php @@ -25,7 +25,7 @@ require_once "root.php"; require_once "includes/require.php"; require_once "includes/checkauth.php"; -if (permission_exists('phone_view')) { +if (permission_exists('device_view')) { //access granted } else { @@ -46,20 +46,20 @@ echo "|||||||||||||||||||||||
| Hardware Phone List | \n"; +echo "Devices | \n"; echo "\n"; echo " |
| \n";
-echo "Phones in this list are automatically added to the list when they contact the provisioning \n";
+echo "Devices in this list are added to the list when they contact the provisioning \n";
echo "server or added manually by an administrator. \n";
-echo "Items in this list can be assigned from the extensions page. \n"; +echo "Items in this list are assigned from the extensions page. \n"; echo " | \n";
echo "||
| \n"; -if (permission_exists('phone_add')) { - echo " $v_link_label_add\n"; +if (permission_exists('device_add')) { + echo " $v_link_label_add\n"; } echo " | \n"; echo "||||||||||||
| ".$phone_mac_address." | \n"; - echo "".$row['phone_template']." | \n"; - echo "".$row['phone_vendor']." | \n"; - //echo "".$row['phone_mode'l]." | \n"; - echo "".$row['phone_provision_enable']." | \n"; - echo "".$row['phone_description']." | \n"; + echo "".$device_mac_address." | \n"; + echo "".$row['device_template']." | \n"; + echo "".$row['device_vendor']." | \n"; + //echo "".$row['device_mode'l]." | \n"; + echo "".$row['device_provision_enable']." | \n"; + echo "".$row['device_description']." | \n"; echo "\n"; - if (permission_exists('phone_edit')) { - echo " $v_link_label_edit\n"; + if (permission_exists('device_edit')) { + echo " $v_link_label_edit\n"; } - if (permission_exists('phone_delete')) { - echo " $v_link_label_delete\n"; + if (permission_exists('device_delete')) { + echo " $v_link_label_delete\n"; } echo " | \n"; echo "
| \n"; echo " | $paging_controls | \n"; echo "\n"; -if (permission_exists('phone_add')) { - echo " $v_link_label_add\n"; +if (permission_exists('device_add')) { + echo " $v_link_label_add\n"; } echo " | \n"; echo "