diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index 493ddba981..3bebe640fa 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2023 + Portions created by the Initial Developer are Copyright (C) 2008-2024 the Initial Developer. All Rights Reserved. */ @@ -509,7 +509,7 @@ $sql = "select * from v_devices "; $sql .= "where device_uuid = :device_uuid "; $parameters['device_uuid'] = $device_uuid; - + $row = $database->select($sql, $parameters, 'row'); if (is_array($row) && @sizeof($row) != 0) { $device_address = $row["device_address"]; @@ -540,7 +540,7 @@ if (empty($device_vendor)) { //get the device vendor using the device address $device_vendor = device::get_vendor($device_address ?? null); - + //if the vendor was not found using the device address use an alternative method if (empty($device_vendor)) { $template_array = explode("/", $device_template ?? ''); @@ -567,7 +567,7 @@ $sql .= "where device_uuid = :device_uuid "; $sql .= "order by cast(line_number as int) asc "; $parameters['device_uuid'] = $device_uuid ?? null; - + $device_lines = $database->select($sql, $parameters, 'all'); unset($sql, $parameters); @@ -638,7 +638,7 @@ $sql .= "from v_device_vendors "; $sql .= "where enabled = 'true' "; $sql .= "order by name asc "; - + $device_vendors = $database->select($sql, null, 'all'); unset($sql); @@ -885,7 +885,7 @@ //get the provision settings $provision = new settings(["category" => "provision"]); $acrobits_code = $provision->get('provision', 'acrobits_code'); - + if (!empty($template) && isset($acrobits_code)) { $template = str_replace('{$server_address}', $row['server_address'], $template); $template = str_replace('{$user_id}', urlencode($row['user_id']), $template); @@ -1101,6 +1101,7 @@ echo $text['description-device']."\n"; echo "

\n"; + echo "
\n"; echo "\n"; echo "\n"; @@ -2029,6 +2030,7 @@ echo " \n"; echo " "; echo "
"; + echo "
\n"; echo "

"; echo ""; @@ -2051,4 +2053,5 @@ //show the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?> + diff --git a/app/devices/device_imports.php b/app/devices/device_imports.php index 6e32d33985..458b8a5124 100644 --- a/app/devices/device_imports.php +++ b/app/devices/device_imports.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2018-2023 + Portions created by the Initial Developer are Copyright (C) 2018-2024 the Initial Developer. All Rights Reserved. Contributor(s): @@ -105,7 +105,7 @@ } //filter for specific tables and build the schema array - if ($table_name == "devices" || $table_name == "device_lines" || + if ($table_name == "devices" || $table_name == "device_lines" || $table_name == "device_keys" || $table_name == "device_settings") { $schema[$i]['table'] = $table_name; $schema[$i]['parent'] = $parent_name; @@ -164,6 +164,7 @@ echo $text['description-import']."\n"; echo "

\n"; + echo "
\n"; echo "\n"; //loop through user columns @@ -200,6 +201,7 @@ } echo "
\n"; + echo "
\n"; echo "

\n"; echo "\n"; @@ -247,7 +249,7 @@ //user selected fields $fields = $_POST['fields']; - + //set the domain_uuid $domain_uuid = $_SESSION['domain_uuid']; @@ -285,7 +287,7 @@ //echo "value: $value
\n"; //echo "table_name: $table_name
\n"; //echo "field_name: $field_name
\n"; - + //get the parent table name $parent = get_parent($schema, $table_name); @@ -445,7 +447,7 @@ //$message = $database->message; //view_array($message); } - + if (!empty($_SESSION['provision']['path']['text'])) { $prov = new provision; $prov->domain_uuid = $domain_uuid; @@ -481,6 +483,7 @@ echo $text['description-import']."\n"; echo "

\n"; + echo "
\n"; echo "\n"; echo "\n"; @@ -552,6 +555,7 @@ echo "\n"; echo "
\n"; + echo "
\n"; echo "

"; echo "\n"; diff --git a/app/devices/device_profile_copy.php b/app/devices/device_profile_copy.php index 5fcd653694..679338da6e 100644 --- a/app/devices/device_profile_copy.php +++ b/app/devices/device_profile_copy.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2023 + Portions created by the Initial Developer are Copyright (C) 2008-2024 the Initial Developer. All Rights Reserved. Contributor(s): diff --git a/app/devices/device_profile_edit.php b/app/devices/device_profile_edit.php index ff34cae190..3cee848566 100644 --- a/app/devices/device_profile_edit.php +++ b/app/devices/device_profile_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Copyright (C) 2020-2023 All Rights Reserved. + Copyright (C) 2020-2024 All Rights Reserved. Contributor(s): Mark J Crane @@ -427,6 +427,7 @@ echo $text['description-device_profiles']."\n"; echo "

\n"; + echo "
\n"; echo "\n"; echo "\n"; @@ -499,7 +500,7 @@ echo " \n"; } echo " \n"; echo "
".$text['label-device_key_id']."\n"; echo " ".$text['label-device_vendor']."\n"; echo " ".$text['label-device_key_type']."\n"; - if ($show_key_subtype) { + if ($show_key_subtype) { echo " ".$text['label-device_key_subtype']."".$text['label-device_key_line']."\n"; @@ -531,11 +532,11 @@ echo " \n"; echo "
"; + echo "
\n"; echo "

"; echo "\n"; diff --git a/app/devices/device_profiles.php b/app/devices/device_profiles.php index d4f8f443ab..10357126b5 100644 --- a/app/devices/device_profiles.php +++ b/app/devices/device_profiles.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Copyright (C) 2019-2023 All Rights Reserved. + Copyright (C) 2019-2024 All Rights Reserved. Contributor(s): Mark J Crane @@ -215,6 +215,7 @@ echo "\n"; echo "\n"; + echo "
\n"; echo "\n"; echo "\n"; if (permission_exists('device_profile_add') || permission_exists('device_profile_edit') || permission_exists('device_profile_delete')) { @@ -285,6 +286,7 @@ } echo "
\n"; + echo "
\n"; echo "
\n"; echo "
".$paging_controls."
\n"; diff --git a/app/devices/device_vendor_edit.php b/app/devices/device_vendor_edit.php index e25979862b..3241a0aaee 100644 --- a/app/devices/device_vendor_edit.php +++ b/app/devices/device_vendor_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2016-2023 + Portions created by the Initial Developer are Copyright (C) 2016-2024 the Initial Developer. All Rights Reserved. Contributor(s): @@ -159,6 +159,7 @@ echo "
\n"; echo "\n"; + echo "
\n"; echo "\n"; echo "\n"; @@ -206,6 +207,7 @@ echo "\n"; echo "
"; + echo "
\n"; echo "

"; if ($action == "update") { @@ -223,4 +225,5 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?> + diff --git a/app/devices/device_vendor_function_edit.php b/app/devices/device_vendor_function_edit.php index 74947db333..351f6692ae 100644 --- a/app/devices/device_vendor_function_edit.php +++ b/app/devices/device_vendor_function_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2016-2023 + Portions created by the Initial Developer are Copyright (C) 2016-2024 the Initial Developer. All Rights Reserved. Contributor(s): @@ -287,6 +287,7 @@ echo "
\n"; echo "\n"; + echo "
\n"; echo "\n"; echo "\n"; @@ -394,6 +395,7 @@ echo " \n"; echo " "; echo "
"; + echo "
\n"; echo ""; echo "

"; @@ -401,3 +403,4 @@ require_once "resources/footer.php"; ?> + diff --git a/app/devices/device_vendor_functions.php b/app/devices/device_vendor_functions.php index 0926f587ec..19b9d68722 100644 --- a/app/devices/device_vendor_functions.php +++ b/app/devices/device_vendor_functions.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2016-2023 + Portions created by the Initial Developer are Copyright (C) 2016-2024 the Initial Developer. All Rights Reserved. Contributor(s): @@ -162,6 +162,7 @@ echo modal::create(['id'=>'modal-delete','type'=>'delete','actions'=>button::create(['type'=>'button','label'=>$text['button-continue'],'icon'=>'check','id'=>'btn_delete','style'=>'float: right; margin-left: 15px;','collapse'=>'never','onclick'=>"modal_close(); list_action_set('delete'); list_form_submit('form_list');"])]); } + echo "
\n"; echo "\n"; echo "\n"; if (permission_exists('device_vendor_function_add') || permission_exists('device_vendor_function_edit') || permission_exists('device_vendor_function_delete')) { @@ -263,6 +264,7 @@ } echo "
\n"; + echo "
\n"; echo "
\n"; echo "
".($paging_controls ?? '')."
\n"; @@ -286,4 +288,5 @@ echo "\n"; -?> \ No newline at end of file +?> + diff --git a/app/devices/device_vendor_restore.php b/app/devices/device_vendor_restore.php index e0a68378c3..3c623bb624 100644 --- a/app/devices/device_vendor_restore.php +++ b/app/devices/device_vendor_restore.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2016-2023 + Portions created by the Initial Developer are Copyright (C) 2016-2024 the Initial Developer. All Rights Reserved. Contributor(s): @@ -156,4 +156,5 @@ header('Location: device_vendors.php'); exit; -?> \ No newline at end of file +?> + diff --git a/app/devices/device_vendors.php b/app/devices/device_vendors.php index f944f63fe6..902c27aaf1 100644 --- a/app/devices/device_vendors.php +++ b/app/devices/device_vendors.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2016-2023 + Portions created by the Initial Developer are Copyright (C) 2016-2024 the Initial Developer. All Rights Reserved. Contributor(s): @@ -159,7 +159,7 @@ echo "\n"; echo "\n"; - + echo "
\n"; echo "\n"; echo "\n"; if (permission_exists('device_vendor_edit') || permission_exists('device_vendor_delete')) { @@ -210,6 +210,7 @@ unset($result); echo "
\n"; + echo "
\n"; echo "
\n"; echo "
".$paging_controls."
\n"; @@ -220,4 +221,5 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?> + diff --git a/app/devices/devices.php b/app/devices/devices.php index 93fefec00d..9a1840b7d0 100644 --- a/app/devices/devices.php +++ b/app/devices/devices.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008 - 2023 + Portions created by the Initial Developer are Copyright (C) 2008-2024 the Initial Developer. All Rights Reserved. Contributor(s): @@ -384,6 +384,7 @@ echo "\n"; echo "\n"; + echo "
\n"; echo "\n"; echo "\n"; if ($has_device_edit || $has_device_delete) { @@ -485,6 +486,7 @@ unset($devices); echo "
\n"; + echo "
\n"; echo "
\n"; echo "
".$paging_controls."
\n"; @@ -496,3 +498,4 @@ require_once "resources/footer.php"; ?> +