From a1349f83139d4890412d3f5fcab015a9084c3c91 Mon Sep 17 00:00:00 2001
From: leiweibau <105860611+leiweibau@users.noreply.github.com>
Date: Wed, 27 Jul 2022 00:58:06 +0200
Subject: [PATCH] add port number
---
front/deviceDetails.php | 59 +++++++++++++++++++++---------------
front/network.php | 30 +++++++++---------
front/php/server/devices.php | 2 ++
3 files changed, 51 insertions(+), 40 deletions(-)
diff --git a/front/deviceDetails.php b/front/deviceDetails.php
index 9ee4b1a2..8b36dee8 100644
--- a/front/deviceDetails.php
+++ b/front/deviceDetails.php
@@ -265,11 +265,17 @@ if ($_REQUEST['mac'] == 'Internet') { $DevDetail_Tap_temp = "Tools"; } else { $D
@@ -102,7 +106,6 @@ echo $_REQUEST['device_id'];
-
+
fetchArray(SQLITE3_ASSOC)){
diff --git a/front/php/server/devices.php b/front/php/server/devices.php
index 6fa3efab..74818dea 100644
--- a/front/php/server/devices.php
+++ b/front/php/server/devices.php
@@ -87,6 +87,7 @@ function getDeviceData() {
$mac = $deviceData['dev_MAC'];
$deviceData['dev_Infrastructure'] = $row['dev_Infrastructure'];
+ $deviceData['dev_Infrastructure_port'] = $row['dev_Infrastructure_port'];
$deviceData['dev_FirstConnection'] = formatDate ($row['dev_FirstConnection']); // Date formated
$deviceData['dev_LastConnection'] = formatDate ($row['dev_LastConnection']); // Date formated
@@ -155,6 +156,7 @@ function setDeviceData() {
dev_Location = "'. quotes($_REQUEST['location']) .'",
dev_Comments = "'. quotes($_REQUEST['comments']) .'",
dev_Infrastructure = "'. quotes($_REQUEST['infrastructure']).'",
+ dev_Infrastructure_port = "'. quotes($_REQUEST['infrastructureport']).'",
dev_StaticIP = "'. quotes($_REQUEST['staticIP']) .'",
dev_ScanCycle = "'. quotes($_REQUEST['scancycle']) .'",
dev_AlertEvents = "'. quotes($_REQUEST['alertevents']) .'",