From aa96d18c11994efdcbe6ee42ec88dd48ca872a3d Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 27 Feb 2020 10:25:53 -0700 Subject: [PATCH] Devices: Remove deprecated scripts. --- app/devices/device_key_edit.php | 387 -------------------------- app/devices/device_line_delete.php | 62 ----- app/devices/device_setting_delete.php | 83 ------ app/devices/device_setting_edit.php | 286 ------------------- app/devices/device_settings.php | 175 ------------ 5 files changed, 993 deletions(-) delete mode 100644 app/devices/device_key_edit.php delete mode 100644 app/devices/device_line_delete.php delete mode 100644 app/devices/device_setting_delete.php delete mode 100644 app/devices/device_setting_edit.php delete mode 100644 app/devices/device_settings.php diff --git a/app/devices/device_key_edit.php b/app/devices/device_key_edit.php deleted file mode 100644 index aa3ed3f2ae..0000000000 --- a/app/devices/device_key_edit.php +++ /dev/null @@ -1,387 +0,0 @@ - - Copyright (C) 2013 All Rights Reserved. - - Contributor(s): - Mark J Crane -*/ -require_once "root.php"; -require_once "resources/require.php"; -require_once "resources/check_auth.php"; -if (permission_exists('device_key_add') || permission_exists('device_key_edit')) { - //access granted -} -else { - echo "access denied"; - exit; -} - -//add multi-lingual support - $language = new text; - $text = $language->get(); - -//action add or update - if (is_uuid($_REQUEST["id"])) { - $action = "update"; - $device_key_uuid = $_REQUEST["id"]; - $device_uuid = $_REQUEST["device_uuid"]; - } - else { - $action = "add"; - } - -//set the parent uuid - if (is_uuid($_GET["device_key_uuid"])) { - $device_key_uuid = $_GET["device_key_uuid"]; - } - -//get http post variables and set them to php variables - if (count($_POST)>0) { - $device_key_id = $_POST["device_key_id"]; - $device_key_category = $_POST["device_key_category"]; - $device_key_type = $_POST["device_key_type"]; - $device_key_line = $_POST["device_key_line"]; - $device_key_value = $_POST["device_key_value"]; - $device_key_extension = $_POST["device_key_extension"]; - $device_key_label = $_POST["device_key_label"]; - $device_key_icon = $_POST["device_key_icon"]; - } - -if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { - - $msg = ''; - if ($action == "update") { - $device_key_uuid = $_POST["device_key_uuid"]; - } - - //validate the token - $token = new token; - if (!$token->validate($_SERVER['PHP_SELF'])) { - message::add($text['message-invalid_token'],'negative'); - header('Location: devices.php'); - exit; - } - - //check for all required data - //if (strlen($device_key_id) == 0) { $msg .= $text['message-required']." ".$text['label-device_key_id']."
\n"; } - //if (strlen($device_key_category) == 0) { $msg .= $text['message-required']." ".$text['label-device_key_category']."
\n"; } - //if (strlen($device_key_type) == 0) { $msg .= $text['message-required']." ".$text['label-device_key_type']."
\n"; } - //if (strlen($device_key_line) == 0) { $msg .= $text['message-required']." ".$text['label-device_key_line']."
\n"; } - //if (strlen($device_key_value) == 0) { $msg .= $text['message-required']." ".$text['label-device_key_value']."
\n"; } - //if (strlen($device_key_extension) == 0) { $msg .= $text['message-required']." ".$text['label-device_key_extension']."
\n"; } - //if (strlen($device_key_label) == 0) { $msg .= $text['message-required']." ".$text['label-device_key_label']."
\n"; } - if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) { - require_once "resources/header.php"; - require_once "resources/persistformvar.php"; - echo "
\n"; - echo "
\n"; - echo $msg."
"; - echo "
\n"; - persistformvar($_POST); - echo "
\n"; - require_once "resources/footer.php"; - return; - } - - //add or update the database - if ($_POST["persistformvar"] != "true") { - if ($action == "add" && permission_exists('device_key_add')) { - $array['device_keys'][0]['device_key_uuid'] = uuid(); - - message::add($text['message-add']); - } - - if ($action == "update" && permission_exists('device_key_edit')) { - $array['device_keys'][0]['device_key_uuid'] = $device_key_uuid; - - message::add($text['message-update']); - } - - if (is_array($array) && @sizeof($array) != 0) { - $array['device_keys'][0]['domain_uuid'] = $domain_uuid; - $array['device_keys'][0]['device_uuid'] = $device_uuid; - $array['device_keys'][0]['device_key_id'] = $device_key_id; - $array['device_keys'][0]['device_key_category'] = $device_key_category; - $array['device_keys'][0]['device_key_type'] = $device_key_type; - $array['device_keys'][0]['device_key_line'] = $device_key_line; - $array['device_keys'][0]['device_key_value'] = $device_key_value; - $array['device_keys'][0]['device_key_extension'] = $device_key_extension; - $array['device_keys'][0]['device_key_label'] = $device_key_label; - $array['device_keys'][0]['device_key_icon'] = $device_key_icon; - - $database = new database; - $database->app_name = 'devices'; - $database->app_uuid = '4efa1a1a-32e7-bf83-534b-6c8299958a8e'; - $database->save($array); - unset($array); - - header("Location: device_edit.php?id=".$device_uuid); - return; - } - } -} - -//pre-populate the form - if (count($_GET) > 0 && $_POST["persistformvar"] != "true") { - $device_key_uuid = $_GET["id"]; - $sql = "select * from v_device_keys "; - $sql .= "where domain_uuid = :domain_uuid "; - $sql .= "and device_key_uuid = :device_key_uuid "; - $parameters['domain_uuid'] = $domain_uuid; - $parameters['device_key_uuid'] = $device_key_uuid; - $database = new database; - $row = $database->select($sql, $parameters, 'row'); - if (is_array($row) && @sizeof($row) != 0) { - $device_uuid = $row["device_uuid"]; - $device_key_id = $row["device_key_id"]; - $device_key_category = $row["device_key_category"]; - $device_key_type = $row["device_key_type"]; - $device_key_line = $row["device_key_line"]; - $device_key_value = $row["device_key_value"]; - $device_key_extension = $row["device_key_extension"]; - $device_key_label = $row["device_key_label"]; - $device_key_icon = $row["device_key_icon"]; - } - unset($sql, $parameters, $row); - } - -//create token - $object = new token; - $token = $object->create($_SERVER['PHP_SELF']); - -//show the header - require_once "resources/header.php"; - -//show the content - echo "
\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo " \n"; - echo " \n"; - echo " "; - echo "
".$text['title-device_key']."
\n"; - echo " ".$text['label-device_key_category']."\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo $text['description-device_key_category']."\n"; - echo "
\n"; - echo " ".$text['label-device_key_id']."\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo $text['description-device_key_id']."\n"; - echo "
\n"; - echo " ".$text['label-device_key_line']."\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo $text['description-device_key_line']."\n"; - echo "
\n"; - echo " ".$text['label-device_key_type']."\n"; - echo "\n"; - - $device_key_types['Cisco'] = array( - 'line' => 'line', - 'disabled' => 'disabled' - ); - $device_key_types['Yealink'] = array( - 0 => 'N/A (Memory Key Default)', - 1 => 'Conference', - 2 => 'Forward', - 3 => 'Transfer', - 4 => 'Hold', - 5 => 'DND', - 6 => 'Redial', - 7 => 'Call Return', - 8 => 'SMS', - 9 => 'Call Pickup', - 10 => 'Call Park', - 11 => 'DTMF', - 12 => 'Voicemail', - 13 => 'SpeedDial', - 14 => 'Intercom', - 15 => 'Line (Line Key Default)', - 16 => 'BLF', - 17 => 'URL', - 19 => 'Public Hold', - 20 => 'Private', - 21 => 'Shared Line', - 22 => 'XML Group', - 23 => 'Group Pickup', - 24 => 'Paging', - 25 => 'Record', - 27 => 'XML Browser', - 28 => 'History', - 29 => 'Directory', - 30 => 'Menu', - 32 => 'New SMS', - 33 => 'Status', - 34 => 'Hot Desking', - 35 => 'URL Record', - 38 => 'LDAP', - 39 => 'BLF List', - 40 => 'Prefix', - 41 => 'Zero-Sp-Touch', - 42 => 'ACD', - 43 => 'Local Phonebook', - 44 => 'Broadsoft Phonebook', - 45 => 'Local Group', - 46 => 'Broadsoft Group', - 47 => 'XML Phonebook', - 48 => 'Switch Account Up', - 49 => 'Switch Account Down', - 50 => 'Keypad Lock' - ); - $device_key_types['Other'] = array( - 'line' => 'line', - 'other' => 'other' - ); - if ($device_key_type != '') { - $selected[$device_key_type] = "selected='selected'"; - $found = in_array($device_key_type, $device_key_types_yealink) || $device_key_type == 'disabled' || $device_key_type == 'line' ? true : false; - } - echo "\n"; - unset($selected); - - echo "
\n"; - echo $text['description-device_key_type']."\n"; - echo "
\n"; - echo " ".$text['label-device_key_value']."\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo $text['description-device_key_value']."\n"; - echo "
\n"; - echo " ".$text['label-device_key_extension']."\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo $text['description-device_key_extension']."\n"; - echo "
\n"; - echo " ".$text['label-device_key_label']."\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo $text['description-device_key_label']."\n"; - echo "
\n"; - echo " ".$text['label-device_key_icon']."\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo $text['description-device_key_icon']."\n"; - echo "
\n"; - echo " \n"; - if ($action == "update") { - echo " \n"; - } - echo " \n"; - echo "
"; - echo " \n"; - echo "
"; - echo "

"; - echo "
"; - -//include the footer - require_once "resources/footer.php"; -?> \ No newline at end of file diff --git a/app/devices/device_line_delete.php b/app/devices/device_line_delete.php deleted file mode 100644 index 1d270bed7b..0000000000 --- a/app/devices/device_line_delete.php +++ /dev/null @@ -1,62 +0,0 @@ - - Copyright (C) 2013 All Rights Reserved. - - Contributor(s): - Mark J Crane -*/ -require_once "root.php"; -require_once "resources/require.php"; -require_once "resources/check_auth.php"; -if (permission_exists('device_line_delete')) { - //access granted -} -else { - echo "access denied"; - exit; -} - -//add multi-lingual support - $language = new text; - $text = $language->get(); - -//get the id - $device_line_uuid = $_GET["id"]; - $device_uuid = $_GET["device_uuid"]; - -//delete device_line - if (is_uuid($device_line_uuid) && is_uuid($device_uuid)) { - - $array['device_lines'][0]['device_line_uuid'] = $device_line_uuid; - - $database = new database; - $database->app_name = 'devices'; - $database->app_uuid = '4efa1a1a-32e7-bf83-534b-6c8299958a8e'; - $database->delete($array); - unset($array); - - message::add($text['message-delete']); - } - -//redirect - header("Location: device_edit.php?id=".$device_uuid); - return; - -?> \ No newline at end of file diff --git a/app/devices/device_setting_delete.php b/app/devices/device_setting_delete.php deleted file mode 100644 index c59f29fc96..0000000000 --- a/app/devices/device_setting_delete.php +++ /dev/null @@ -1,83 +0,0 @@ - - Portions created by the Initial Developer are Copyright (C) 2008-2012 - the Initial Developer. All Rights Reserved. - - Contributor(s): - Mark J Crane -*/ -require_once "root.php"; -require_once "resources/require.php"; -require_once "resources/check_auth.php"; -if (permission_exists('device_setting_delete')) { - //access granted -} -else { - echo "access denied"; - exit; -} - -//add multi-lingual support - $language = new text; - $text = $language->get(); - -//get the id - $device_setting_uuid = $_GET["id"]; - $device_uuid = $_GET["device_uuid"]; - $device_profile_uuid = $_GET["device_profile_uuid"]; - -//default location - $location = 'devices.php'; - -if (is_uuid($device_setting_uuid)) { - - //delete device settings - if (is_uuid($device_uuid)) { - $array['device_settings'][0]['device_setting_uuid'] = $device_setting_uuid; - $array['device_settings'][0]['device_uuid'] = $device_uuid; - - $location = "device_edit.php?id=".$device_uuid; - } - - //delete profile device settings - if (is_uuid($device_profile_uuid)) { - $array['device_settings'][1]['device_setting_uuid'] = $device_setting_uuid; - $array['device_settings'][1]['device_profile_uuid'] = $device_profile_uuid; - - $location = "device_profile_edit.php?id=".$device_profile_uuid; - } - - //execute - $database = new database; - $database->app_name = 'devices'; - $database->app_uuid = '4efa1a1a-32e7-bf83-534b-6c8299958a8e'; - $database->delete($array); - unset($array); - - //set message - message::add($text['message-delete']); - -} - -//redirect - header("Location: ".$location); - exit; - -?> diff --git a/app/devices/device_setting_edit.php b/app/devices/device_setting_edit.php deleted file mode 100644 index 7f7c0b8a54..0000000000 --- a/app/devices/device_setting_edit.php +++ /dev/null @@ -1,286 +0,0 @@ - - Portions created by the Initial Developer are Copyright (C) 2008-2012 - the Initial Developer. All Rights Reserved. - - Contributor(s): - Mark J Crane -*/ -require_once "root.php"; -require_once "resources/require.php"; -require_once "resources/check_auth.php"; -if (permission_exists('device_setting_add') || permission_exists('device_setting_edit')) { - //access granted -} -else { - echo "access denied"; - exit; -} - -//add multi-lingual support - $language = new text; - $text = $language->get(); - -//action add or update - if (is_uuid($_REQUEST["id"])) { - $action = "update"; - $device_setting_uuid = check_str($_REQUEST["id"]); - } - else { - $action = "add"; - } - -if (is_uuid($_GET["device_uuid"])) { - $device_uuid = $_GET["device_uuid"]; -} - -//get http post variables and set them to php variables - if (count($_POST)>0) { - $device_setting_category = $_POST["device_setting_category"]; - $device_setting_subcategory = $_POST["device_setting_subcategory"]; - $device_setting_name = $_POST["device_setting_name"]; - $device_setting_value = $_POST["device_setting_value"]; - $device_setting_enabled = $_POST["device_setting_enabled"]; - $device_setting_description = $_POST["device_setting_description"]; - } - -if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { - - $msg = ''; - if ($action == "update" && permission_exists('device_setting_edit')) { - $device_setting_uuid = $_POST["device_setting_uuid"]; - } - - //validate the token - $token = new token; - if (!$token->validate($_SERVER['PHP_SELF'])) { - message::add($text['message-invalid_token'],'negative'); - header('Location: devices.php'); - exit; - } - - //check for all required data - if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) { - require_once "resources/header.php"; - require_once "resources/persist_form_var.php"; - echo "
\n"; - echo "
\n"; - echo $msg."
"; - echo "
\n"; - persistformvar($_POST); - echo "
\n"; - require_once "resources/footer.php"; - return; - } - - //add or update the database - if ($_POST["persistformvar"] != "true") { - //add the device - if ($action == "add" && permission_exists('device_setting_add')) { - $array['device_settings'][0]['device_setting_uuid'] = uuid(); - message::add($text['message-add']); - } - - //update the device - if ($action == "update" && permission_exists('device_setting_edit')) { - $array['device_settings'][0]['device_setting_uuid'] = $device_setting_uuid; - message::add($text['message-update']); - } - - //execute - if (is_array($array) && @sizeof($array) != 0) { - $array['device_settings'][0]['device_uuid'] = $device_uuid; - $array['device_settings'][0]['device_setting_category'] = $device_setting_category; - $array['device_settings'][0]['device_setting_subcategory'] = $device_setting_subcategory; - $array['device_settings'][0]['device_setting_name'] = $device_setting_name; - $array['device_settings'][0]['device_setting_value'] = $device_setting_value; - $array['device_settings'][0]['device_setting_enabled'] = $device_setting_enabled; - $array['device_settings'][0]['device_setting_description'] = $device_setting_description; - - $database = new database; - $database->app_name = 'devices'; - $database->app_uuid = '4efa1a1a-32e7-bf83-534b-6c8299958a8e'; - $database->save($array); - unset($array); - } - - header("Location: device_edit.php?id=".$device_uuid); - exit; - } -} - -//pre-populate the form - if (count($_GET)>0 && $_POST["persistformvar"] != "true") { - $device_setting_uuid = $_GET["id"]; - $sql = "select * from v_device_settings "; - $sql .= "where device_uuid = :device_uuid "; - $sql .= "and device_setting_uuid = :device_setting_uuid "; - $parameters['device_uuid'] = $device_uuid; - $parameters['device_setting_uuid'] = $device_setting_uuid; - $database = new database; - $row = $database->select($sql, $parameters, 'row'); - if (is_array($row) && @sizeof($row) != 0) { - $device_setting_category = $row["device_setting_category"]; - $device_setting_subcategory = $row["device_setting_subcategory"]; - $device_setting_name = $row["device_setting_name"]; - $device_setting_value = $row["device_setting_value"]; - $device_setting_enabled = $row["device_setting_enabled"]; - $device_setting_description = $row["device_setting_description"]; - } - unset($sql, $parameters, $row); - } - -//create token - $object = new token; - $token = $object->create($_SERVER['PHP_SELF']); - -//show the header - require_once "resources/header.php"; - if ($action == "update") { - $document['title'] = $text['title-device_setting-edit']; - } - elseif ($action == "add") { - $document['title'] = $text['title-device_setting-add']; - } - -//show the content - echo "
\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - echo " \n"; - echo " \n"; - echo " "; - echo "
"; - if ($action == "update") { - echo $text['header-device_setting-edit']; - } - if ($action == "add") { - echo $text['header-device_setting-add']; - } - echo "
\n"; - if ($action == "update") { - echo $text['description-device_setting-edit']; - } - if ($action == "add") { - echo $text['header-device_setting-add']; - } - echo "

\n"; - echo "
\n"; - echo " ".$text['label-category']."\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo $text['description-category']."\n"; - echo "
\n"; - echo " ".$text['label-subcategory']."\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo $text['description-subcategory']."\n"; - echo "
\n"; - echo " ".$text['label-type']."\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo $text['description-type']."\n"; - echo "
\n"; - echo " ".$text['label-value']."\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo $text['description-value']."\n"; - echo "
\n"; - echo " ".$text['label-enabled']."\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo $text['description-enabled']."\n"; - echo "
\n"; - echo " ".$text['label-description']."\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo $text['description-description']."\n"; - echo "
\n"; - echo " \n"; - if ($action == "update") { - echo " \n"; - } - echo " \n"; - echo "
"; - echo " \n"; - echo "
"; - echo "

"; - echo "
"; - -//include the footer - require_once "resources/footer.php"; -?> diff --git a/app/devices/device_settings.php b/app/devices/device_settings.php deleted file mode 100644 index 4fb1b77ff3..0000000000 --- a/app/devices/device_settings.php +++ /dev/null @@ -1,175 +0,0 @@ - - Portions created by the Initial Developer are Copyright (C) 2008-2019 - the Initial Developer. All Rights Reserved. - - Contributor(s): - Mark J Crane -*/ - -//includes - require_once "root.php"; - require_once "resources/require.php"; - require_once "resources/check_auth.php"; - -//check permissions - if (permission_exists('device_setting_view')) { - //access granted - } - else { - echo "access denied"; - exit; - } - -//add multi-lingual support - $language = new text; - $text = $language->get(); - -//additional includes - require_once "resources/header.php"; - require_once "resources/paging.php"; - -//get variables used to control the order - $order_by = $_GET["order_by"]; - $order = $_GET["order"]; - -//get the uuid - if (is_uuid($_GET['id'])) { - $device_uuid = $_GET['id']; - } - -//show the content - echo "\n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo "
Device Settings 
\n"; - echo " Settings used for each device.

\n"; - echo "
\n"; - - //prepare to page the results - $sql = "select count(*) from v_devices_settings "; - $sql .= "where device_uuid = :device_uuid "; - $sql .= "and domain_uuid = :domain_uuid "; - $parameters['device_uuid'] = $device_uuid; - $parameters['domain_uuid'] = $domain_uuid; - $database = new database; - $num_rows = $database->select($sql, $parameters, 'column'); - unset($sql); - - //prepare to page the results - $rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50; - $param = ""; - if (isset($_GET['page'])) { - $page = $_GET['page']; - if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; } - list($paging_controls, $rows_per_page, $var3) = paging($num_rows, $param, $rows_per_page); - $offset = $rows_per_page * $page; - } - - //get the list - $sql = str_replace('count(*)', '*', $sql); - $sql .= order_by($order_by, $order); - $sql .= limit_offset($rows_per_page, $offset); - $database = new database; - $result = $database->select($sql, $parameters, 'all'); - unset($sql, $parameters); - - $c = 0; - $row_style["0"] = "row_style0"; - $row_style["1"] = "row_style1"; - - echo "\n"; - - if (is_array($result) && @sizeof($result) != 0) { - $previous_category = ''; - foreach($result as $row) { - if ($previous_category != $row['device_setting_category']) { - echo "\n"; - echo "\n"; - echo th_order_by('device_setting_subcategory', $text['label-category'], $order_by, $order); - echo th_order_by('device_setting_name', $text['label-type'], $order_by, $order); - echo th_order_by('device_setting_value', $text['label-value'], $order_by, $order); - echo th_order_by('device_setting_enabled', $text['label-enabled'], $order_by, $order); - echo th_order_by('device_setting_description', $text['label-description'], $order_by, $order); - echo "\n"; - echo "\n"; - } - echo "\n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo "\n"; - $previous_category = $row['device_setting_category']; - if ($c==0) { $c=1; } else { $c=0; } - } - } - unset($result, $row); - - echo "\n"; - echo "\n"; - echo "\n"; - - echo "
\n"; - echo "
\n"; - echo "
\n"; - echo " ".ucfirst($row['device_setting_category'])." 
\n"; - if (permission_exists('device_setting_add')) { - echo " $v_link_label_add\n"; - } - else { - echo "  \n"; - } - - echo "
".$row['device_setting_subcategory']." ".$row['device_setting_name']." ".$row['device_setting_value']." ".$row['device_setting_enabled']." ".$row['device_setting_description']." \n"; - if (permission_exists('device_setting_edit')) { - echo " $v_link_label_edit\n"; - } - if (permission_exists('device_setting_delete')) { - echo " $v_link_label_delete\n"; - } - echo "
\n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo "
 $paging_controls\n"; - if (permission_exists('device_setting_add')) { - echo " $v_link_label_add\n"; - } - else { - echo "  \n"; - } - echo "
\n"; - echo "
"; - echo "

"; - -//include the footer - require_once "resources/footer.php"; -?>