mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-15 22:51:37 -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:
@@ -20,7 +20,12 @@ $ip = $_GET['ip'];
|
||||
|
||||
// Check if IP is valid
|
||||
if (!filter_var($ip, FILTER_VALIDATE_IP)) {
|
||||
echo '' . lang('DevDetail_Tab_Tools_Ping_Error') . '';
|
||||
// Error message
|
||||
$output = lang('DevDetail_Tab_Tools_Ping_Error');
|
||||
// Show the result
|
||||
echo "<pre>";
|
||||
echo $output;
|
||||
echo "</pre>";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user