From 657e6e2f8d58f0448c28501112a1bd4fc0a3b92e Mon Sep 17 00:00:00 2001 From: Carlos V <76731844+cvc90@users.noreply.github.com> Date: Mon, 4 Sep 2023 18:12:40 +0200 Subject: [PATCH 1/8] Update deviceDetails.php Fixed the "internetinfo" function in the "Tools" tab Added h5 tag for description of the "internetinfo" function Added translation variable "DevDetail_Tab_Tools_Internet_Info_Description" Modified translation variable from "DevDetail_Tools_Internet_Info_Title" to "DevDetail_Tab_Tools_Internet_Info_Title" Modified translation variable from "DevDetail_Tools_Internet_Info_Start" to "DevDetail_Tab_Tools_Internet_Info_Start" --- front/deviceDetails.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/front/deviceDetails.php b/front/deviceDetails.php index 9b602117..7155b22a 100755 --- a/front/deviceDetails.php +++ b/front/deviceDetails.php @@ -594,9 +594,10 @@ -

+

+
- +
@@ -620,6 +621,7 @@ +
From 841bd16701ba12d336632e251b472523966830e8 Mon Sep 17 00:00:00 2001 From: Carlos V <76731844+cvc90@users.noreply.github.com> Date: Mon, 4 Sep 2023 18:15:57 +0200 Subject: [PATCH 2/8] Create internetinfo.php Created file "internetinfo.php" to perform the necessary functions of collecting information about the Internet connection. --- front/php/templates/internetinfo.php | 49 ++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 front/php/templates/internetinfo.php diff --git a/front/php/templates/internetinfo.php b/front/php/templates/internetinfo.php new file mode 100644 index 00000000..84edddc9 --- /dev/null +++ b/front/php/templates/internetinfo.php @@ -0,0 +1,49 @@ +"; + echo $output; + echo ""; + exit; +} + +// Replace "{" with "" +$output = str_replace("{", "", $output); + +// Replace "}" with "" +$output = str_replace("}", "", $output); + +// Replace "," with "" +$output = str_replace(",", "", $output); + +// Replace '"' with "" +$output = str_replace('"', "", $output); + +// Show the result +echo "
";
+echo $output;
+echo "
"; + +?> From 053bcff11cf51fea3750f2be944c55d04cd8e04d Mon Sep 17 00:00:00 2001 From: Carlos V <76731844+cvc90@users.noreply.github.com> Date: Mon, 4 Sep 2023 18:26:24 +0200 Subject: [PATCH 3/8] Update internetinfo.php Updated variable "DevDetail_Tab_Internet_Info_Error" to "DevDetail_Tab_Tool_Internet_Info_Error" --- front/php/templates/internetinfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/php/templates/internetinfo.php b/front/php/templates/internetinfo.php index 84edddc9..fd9a5b1e 100644 --- a/front/php/templates/internetinfo.php +++ b/front/php/templates/internetinfo.php @@ -21,7 +21,7 @@ $output = shell_exec("curl ipinfo.io"); // Check if there is error if (!isset($output) || empty($output)) { // Error message - $output = lang('DevDetail_Tab_Internet_Info_Error'); + $output = lang('DevDetail_Tab_Tool_Internet_Info_Error'); // Show the result echo "
";
 	echo $output;

From 10371e8411acbbeaedc9c7dcc17b7773fe5c0e52 Mon Sep 17 00:00:00 2001
From: Carlos V <76731844+cvc90@users.noreply.github.com>
Date: Mon, 4 Sep 2023 18:33:15 +0200
Subject: [PATCH 4/8] Update en_us.json

Added translation variable "DevDetail_Tab_Tools_Internet_Info_Title"
Added translation variable "DevDetail_Tab_Tools_Internet_Info_Description"
Added translation variable "DevDetail_Tab_Tools_Tools_Internet_Info_Start"
Added translation variable "DevDetail_Tab_Tools_Internet_Info_Error"
---
 front/php/templates/language/en_us.json | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/front/php/templates/language/en_us.json b/front/php/templates/language/en_us.json
index df1b80cb..70a8340f 100755
--- a/front/php/templates/language/en_us.json
+++ b/front/php/templates/language/en_us.json
@@ -140,7 +140,11 @@
         "DevDetail_Shortcut_Presence" : "Presence",
         "DevDetail_Shortcut_DownAlerts" : "Down Alerts",
         "DevDetail_Tab_Details" : " Details",
-	"DevDetail_Tab_Tools": " Tools",	    
+	"DevDetail_Tab_Tools": " Tools",
+	"DevDetail_Tab_Tools_Internet_Info_Title": "Internet Info",
+	"DevDetail_Tab_Tools_Internet_Info_Description": "The Internet info tool displays information about the Internet connection, such as IP address, city, country, area code and time zone.",	
+	"DevDetail_Tab_Tools_Internet_Info_Start": "Start Internet Info",
+	"DevDetail_Tab_Tools_Internet_Info_Error": "An error has occurred",	    
         "DevDetail_Tab_Nmap" : " Nmap",
         "DevDetail_Tab_Sessions" : " Sessions",
         "DevDetail_Tab_Presence" : " Presence",

From 8c60e98852e7e4db40502cb480f60d68f9feb60c Mon Sep 17 00:00:00 2001
From: Carlos V <76731844+cvc90@users.noreply.github.com>
Date: Mon, 4 Sep 2023 18:35:03 +0200
Subject: [PATCH 5/8] Update es_es.json

Added translation variable "DevDetail_Tab_Tools_Internet_Info_Title"
Added translation variable "DevDetail_Tab_Tools_Internet_Info_Description"
Added translation variable "DevDetail_Tab_Tools_Tools_Internet_Info_Start"
Added translation variable "DevDetail_Tab_Tools_Internet_Info_Error"
---
 front/php/templates/language/es_es.json | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/front/php/templates/language/es_es.json b/front/php/templates/language/es_es.json
index 61380783..f3d85b3d 100755
--- a/front/php/templates/language/es_es.json
+++ b/front/php/templates/language/es_es.json
@@ -140,7 +140,11 @@
         "DevDetail_Shortcut_Presence" : "Historial",
         "DevDetail_Shortcut_DownAlerts" : "Alerta(s) de caída(s)",
         "DevDetail_Tab_Details" : " Detalles",
-        "DevDetail_Tab_Tools": " Herramientas",        
+        "DevDetail_Tab_Tools": " Herramientas",
+        "DevDetail_Tab_Tools_Internet_Info_Title": "Información de Internet",
+        "DevDetail_Tab_Tools_Internet_Info_Description": "La herramienta de información de internet muestra información sobre la conexión a Internet, como dirección IP, ciudad, país, código de área y zona horaria.",
+        "DevDetail_Tab_Tools_Internet_Info_Start": "Iniciar información de Internet",
+        "DevDetail_Tab_Tools_Internet_Info_Error": "Se ha producido un error",        
         "DevDetail_Tab_Nmap" : " Nmap",
         "DevDetail_Tab_Sessions" : " Sesiones",
         "DevDetail_Tab_Presence" : " Historial",

From c2a4713024210fca29d997b9fec31730e2414299 Mon Sep 17 00:00:00 2001
From: Carlos V <76731844+cvc90@users.noreply.github.com>
Date: Mon, 4 Sep 2023 18:36:46 +0200
Subject: [PATCH 6/8] Update de_de.json

Added translation variable "DevDetail_Tab_Tools_Internet_Info_Title"
Added translation variable "DevDetail_Tab_Tools_Internet_Info_Description"
Added translation variable "DevDetail_Tab_Tools_Tools_Internet_Info_Start"
Added translation variable "DevDetail_Tab_Tools_Internet_Info_Error"
---
 front/php/templates/language/de_de.json | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/front/php/templates/language/de_de.json b/front/php/templates/language/de_de.json
index a0ea470e..a5e343d1 100755
--- a/front/php/templates/language/de_de.json
+++ b/front/php/templates/language/de_de.json
@@ -118,6 +118,10 @@
         "DevDetail_Shortcut_DownAlerts" : "Down Meldungen",
         "DevDetail_Tab_Details" : "Details",
         "DevDetail_Tab_Tools": " Tools",
+	"DevDetail_Tab_Tools_Internet_Info_Title": "Internetinformationen",
+	"DevDetail_Tab_Tools_Internet_Info_Description": "Das Internet-Info-Tool zeigt Informationen über die Internetverbindung an, wie z. B. IP-Adresse, Stadt, Land, Ortsvorwahl und Zeitzone.",
+	"DevDetail_Tab_Tools_Internet_Info_Start": "Internet-Info starten",
+	"DevDetail_Tab_Tools_Internet_Info_Error": "Es ist ein Fehler aufgetreten",	    
 	"DevDetail_Tab_Nmap" : "Nmap",
 	"DevDetail_Tab_NmapTableIndex": "Index",
 	"DevDetail_Tab_NmapTableTime": "Zeit",

From 361952ec5a63596adace32c5a4f2e7c8fd0ae3af Mon Sep 17 00:00:00 2001
From: Carlos V <76731844+cvc90@users.noreply.github.com>
Date: Mon, 4 Sep 2023 18:48:21 +0200
Subject: [PATCH 7/8] Create internetinfo.php

Created file "internetinfo.php" to perform the necessary functions of collecting information about the Internet connection.
---
 front/php/server/internetinfo.php | 49 +++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 front/php/server/internetinfo.php

diff --git a/front/php/server/internetinfo.php b/front/php/server/internetinfo.php
new file mode 100644
index 00000000..fd9a5b1e
--- /dev/null
+++ b/front/php/server/internetinfo.php
@@ -0,0 +1,49 @@
+";
+	echo $output;
+	echo "
"; + exit; +} + +// Replace "{" with "" +$output = str_replace("{", "", $output); + +// Replace "}" with "" +$output = str_replace("}", "", $output); + +// Replace "," with "" +$output = str_replace(",", "", $output); + +// Replace '"' with "" +$output = str_replace('"', "", $output); + +// Show the result +echo "
";
+echo $output;
+echo "
"; + +?> From d4c724e79c63a9f24d1b19136e9c6c3950926311 Mon Sep 17 00:00:00 2001 From: Carlos V <76731844+cvc90@users.noreply.github.com> Date: Mon, 4 Sep 2023 18:48:47 +0200 Subject: [PATCH 8/8] Delete front/php/templates/internetinfo.php --- front/php/templates/internetinfo.php | 49 ---------------------------- 1 file changed, 49 deletions(-) delete mode 100644 front/php/templates/internetinfo.php diff --git a/front/php/templates/internetinfo.php b/front/php/templates/internetinfo.php deleted file mode 100644 index fd9a5b1e..00000000 --- a/front/php/templates/internetinfo.php +++ /dev/null @@ -1,49 +0,0 @@ -"; - echo $output; - echo ""; - exit; -} - -// Replace "{" with "" -$output = str_replace("{", "", $output); - -// Replace "}" with "" -$output = str_replace("}", "", $output); - -// Replace "," with "" -$output = str_replace(",", "", $output); - -// Replace '"' with "" -$output = str_replace('"', "", $output); - -// Show the result -echo "
";
-echo $output;
-echo "
"; - -?>