From f5f033fed42406adf0a65fad1c1084f31b6d2f04 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Tue, 19 Apr 2022 22:42:38 +0100 Subject: [PATCH] Remove MeshCentral integration As per recent discussions about the API & scripts being a better way forward for all integration, removing the MeshCentral integration that was added. --- client.php | 1 - client_asset_edit_modal.php | 16 +- client_assets.php | 2 - client_edit_modal.php | 17 - clients.php | 1 - database_updates.php | 15 +- database_version.php | 2 +- db.sql | 5 - get_settings.php | 5 - plugins/meshctrl/meshcentral_asset_sync.php | 90 - plugins/meshctrl/meshctrl.js | 2786 ------------------- plugins/meshctrl/package-lock.json | 51 - plugins/meshctrl/package.json | 6 - post.php | 8 +- settings-integrations.php | 42 +- 15 files changed, 20 insertions(+), 3027 deletions(-) delete mode 100644 plugins/meshctrl/meshcentral_asset_sync.php delete mode 100644 plugins/meshctrl/meshctrl.js delete mode 100644 plugins/meshctrl/package-lock.json delete mode 100644 plugins/meshctrl/package.json diff --git a/client.php b/client.php index 6fc02138..18783ef7 100644 --- a/client.php +++ b/client.php @@ -34,7 +34,6 @@ if(isset($_GET['client_id'])){ $client_net_terms = $config_default_net_terms; } $client_notes = $row['client_notes']; - $client_meshcentral_group = $row['client_meshcentral_group']; $client_created_at = $row['client_created_at']; $primary_contact = $row['primary_contact']; $primary_location = $row['primary_location']; diff --git a/client_asset_edit_modal.php b/client_asset_edit_modal.php index 0b7d5af0..069da2ff 100644 --- a/client_asset_edit_modal.php +++ b/client_asset_edit_modal.php @@ -44,7 +44,7 @@
- required> + @@ -102,7 +102,7 @@
- value=""> + @@ -208,16 +208,6 @@ - -
- -
-
- -
- -
-
@@ -308,7 +298,7 @@
- +
diff --git a/client_assets.php b/client_assets.php index 187149e5..4d4214c2 100644 --- a/client_assets.php +++ b/client_assets.php @@ -72,7 +72,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));

Assets

-
@@ -185,7 +184,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); $asset_ip_display = "$asset_ip"; } $asset_mac = $row['asset_mac']; - $asset_meshcentral_id = $row['asset_meshcentral_id']; $asset_purchase_date = $row['asset_purchase_date']; $asset_warranty_expire = $row['asset_warranty_expire']; $asset_install_date = $row['asset_install_date']; diff --git a/client_edit_modal.php b/client_edit_modal.php index 68322a67..452aefda 100644 --- a/client_edit_modal.php +++ b/client_edit_modal.php @@ -21,9 +21,6 @@ -
@@ -165,20 +162,6 @@ -
- -
- -
-
- -
- -
-
- -
-