From 55d65138533e1d81f2043dc85e4b8c54ed9cedf7 Mon Sep 17 00:00:00 2001
From: Carlos V <76731844+cvc90@users.noreply.github.com>
Date: Sat, 19 Aug 2023 12:25:55 +0200
Subject: [PATCH 52/80] Update wol.php
Disable password validation check
---
front/php/server/wol.php | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/front/php/server/wol.php b/front/php/server/wol.php
index eaf43eaa..46644ae6 100644
--- a/front/php/server/wol.php
+++ b/front/php/server/wol.php
@@ -55,16 +55,16 @@ if (!filter_var($port, FILTER_VALIDATE_INT, array('options' => array('min_range'
// Get password
$password = isset($_GET['password']) ? $_GET['password'] : '';
-// Validate the password
-if (!filter_var($password, FILTER_VALIDATE_REGEXP, array("options" => array("regexp" => "/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$/"))) {
+// Validate the password (regular expression requires that the password has at least 8 characters, a lowercase letter, an uppercase letter and a number)
+//if (!filter_var($password, FILTER_VALIDATE_REGEXP, array('options' => array('regexp' => '/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$/')))) {
// Error message
- $output = lang('DevDetail_Tab_Tools_WOL_Error_Password');
+// $output = lang('DevDetail_Tab_Tools_WOL_Error_Password');
// Show the result
- echo "
";
- echo $output;
- echo "
";
- exit;
-}
+// echo "
";
+// echo $output;
+// echo "
";
+// exit;
+//}
// Create the magic packet
$magicPacket = pack('H*', 'FF FF FF FF FF FF FF ' . $mac);
From b18bcc7692da4ee6db709dc7d1e8bd26062db542 Mon Sep 17 00:00:00 2001
From: Carlos V <76731844+cvc90@users.noreply.github.com>
Date: Sat, 19 Aug 2023 12:54:27 +0200
Subject: [PATCH 53/80] Update deviceDetails.php
Added icon in function "Speedtest"
Updated "Speedtest" function
---
front/deviceDetails.php | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/front/deviceDetails.php b/front/deviceDetails.php
index 3e6d6c35..53cb42ee 100755
--- a/front/deviceDetails.php
+++ b/front/deviceDetails.php
@@ -537,21 +537,22 @@
-
= lang('DevDetail_Internet_Speedtest');?>
+
= lang('DevDetail_Internet_Speedtest');?>
+
+
= lang('DevDetail_Tab_Tools_WOL_Title');?>
@@ -669,7 +672,10 @@
}
})
}
-
+
+
= lang('DevDetail_Nmap_Scans');?>
From 7d995f0735bfead5d2b3c6ea12e835d7d3c99cdd Mon Sep 17 00:00:00 2001
From: Carlos V <76731844+cvc90@users.noreply.github.com>
Date: Sat, 19 Aug 2023 13:10:50 +0200
Subject: [PATCH 55/80] Update deviceDetails.php
Updated "MTR" section so that it is only visible if the device does not have mac="Internet"
---
front/deviceDetails.php | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/front/deviceDetails.php b/front/deviceDetails.php
index 309853a9..c67350f8 100755
--- a/front/deviceDetails.php
+++ b/front/deviceDetails.php
@@ -627,6 +627,9 @@
}
+
= lang('DevDetail_Tab_Tools_Mtr_Title');?>
@@ -648,6 +651,9 @@
})
}
+
Date: Sat, 19 Aug 2023 13:12:36 +0200
Subject: [PATCH 56/80] Update deviceDetails.php
Updated "Nslookup" section so that it is only visible if the device does not have mac="Internet"
---
front/deviceDetails.php | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/front/deviceDetails.php b/front/deviceDetails.php
index c67350f8..44465bbb 100755
--- a/front/deviceDetails.php
+++ b/front/deviceDetails.php
@@ -605,6 +605,9 @@
}
+
= lang('DevDetail_Tab_Tools_Nslookup_Title');?>
@@ -626,6 +629,9 @@
})
}
+
Date: Sat, 19 Aug 2023 13:13:51 +0200
Subject: [PATCH 57/80] Update deviceDetails.php
Updated "Traceroute" section so that it is only visible if the device does not have mac="Internet"
---
front/deviceDetails.php | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/front/deviceDetails.php b/front/deviceDetails.php
index 44465bbb..8a8bac75 100755
--- a/front/deviceDetails.php
+++ b/front/deviceDetails.php
@@ -583,6 +583,9 @@
}
+
= lang('DevDetail_Tab_Tools_Traceroute_Title');?>
@@ -604,6 +607,9 @@
})
}
+
Date: Sat, 19 Aug 2023 13:15:27 +0200
Subject: [PATCH 58/80] Update deviceDetails.php
Updated "Ping" section so that it is only visible if the device does not have mac="Internet"
---
front/deviceDetails.php | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/front/deviceDetails.php b/front/deviceDetails.php
index 8a8bac75..1faa8953 100755
--- a/front/deviceDetails.php
+++ b/front/deviceDetails.php
@@ -561,6 +561,9 @@
}
?>
+
= lang('DevDetail_Tab_Tools_Ping_Title');?>
@@ -582,6 +585,9 @@
})
}
+
Date: Sat, 19 Aug 2023 13:28:28 +0200
Subject: [PATCH 59/80] Update deviceDetails.php
Updated "Nmap_Scans" section so that it is only visible if the device does not have a mac (mac="Internet")
---
front/deviceDetails.php | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/front/deviceDetails.php b/front/deviceDetails.php
index 1faa8953..c218eb93 100755
--- a/front/deviceDetails.php
+++ b/front/deviceDetails.php
@@ -700,7 +700,10 @@
-
+
+
= lang('DevDetail_Nmap_Scans');?>
+
+
From c61caed1af04d2501ec33261674a1c503c18884a Mon Sep 17 00:00:00 2001
From: Carlos V <76731844+cvc90@users.noreply.github.com>
Date: Sat, 19 Aug 2023 14:46:37 +0200
Subject: [PATCH 62/80] Create internetinfo.php
File is created to perform "internet info" functions
---
front/php/server/internetinfo.php | 38 +++++++++++++++++++++++++++++++
1 file changed, 38 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..0f1fd1f7
--- /dev/null
+++ b/front/php/server/internetinfo.php
@@ -0,0 +1,38 @@
+";
+echo $output;
+echo "";
+
+?>
From 33e6fffd5dcb76e4d75b3acd1cbf3da296e7a7a3 Mon Sep 17 00:00:00 2001
From: Carlos V <76731844+cvc90@users.noreply.github.com>
Date: Sat, 19 Aug 2023 15:40:11 +0200
Subject: [PATCH 63/80] Update internetinfo.php
Added new function to check if there is an error
---
front/php/server/internetinfo.php | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/front/php/server/internetinfo.php b/front/php/server/internetinfo.php
index 0f1fd1f7..a9864bed 100644
--- a/front/php/server/internetinfo.php
+++ b/front/php/server/internetinfo.php
@@ -18,6 +18,17 @@ require dirname(__FILE__).'/../server/init.php';
// Perform a test with the PING command
$output = shell_exec("curl ipinfo.io");
+// Check if there is error
+if (!isset($output) || empty($output)) {
+ // Error message
+ $output = lang('DevDetail_Internet_Info_Error');
+ // Show the result
+ echo "