mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-11 12:41:36 -07:00
Update ping.php
Updated error message style Added new comments to facilitate development Optimized white spaces Optimized style
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
# Pi.Alert #
|
# Pi.Alert #
|
||||||
# Open Source Network Guard / WIFI & LAN intrusion detector #
|
# Open Source Network Guard / WIFI & LAN intrusion detector #
|
||||||
# #
|
# #
|
||||||
# ping.php # Front module. Server side. System Information #
|
# ping.php # Front module. Server side. System Information #
|
||||||
###################################################################################
|
###################################################################################
|
||||||
# Puche 2021 pi.alert.application@gmail.com GNU GPLv3 #
|
# Puche 2021 pi.alert.application@gmail.com GNU GPLv3 #
|
||||||
# jokob#sk 2022 jokob.sk@gmail.com GNU GPLv3 #
|
# jokob#sk 2022 jokob.sk@gmail.com GNU GPLv3 #
|
||||||
@@ -20,8 +20,13 @@ $ip = $_GET['ip'];
|
|||||||
|
|
||||||
// Check if IP is valid
|
// Check if IP is valid
|
||||||
if (!filter_var($ip, FILTER_VALIDATE_IP)) {
|
if (!filter_var($ip, FILTER_VALIDATE_IP)) {
|
||||||
echo '' . lang('DevDetail_Tab_Tools_Ping_Error') . '';
|
// Error message
|
||||||
exit;
|
$output = lang('DevDetail_Tab_Tools_Ping_Error');
|
||||||
|
// Show the result
|
||||||
|
echo "<pre>";
|
||||||
|
echo $output;
|
||||||
|
echo "</pre>";
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Perform a test with the PING command
|
// Perform a test with the PING command
|
||||||
|
|||||||
Reference in New Issue
Block a user