diff options
-rw-r--r-- | packages/arping/arping.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/arping/arping.inc b/packages/arping/arping.inc index 22520209..193d031d 100644 --- a/packages/arping/arping.inc +++ b/packages/arping/arping.inc @@ -35,9 +35,17 @@ function arping_package_reinstall() { } function arping_package_php_command() { + $pgtitle = "Services: Arping"; + include("head.inc"); + + echo "<body link=\"#0000CC\" vlink=\"#0000CC\" alink=\"#0000CC\">"; + include("fbegin.inc"); + echo "<p class=\"pgtitle\">{$pgtitle}</p>"; + echo "<pre>"; - exec("arping {$hostip}"); + system("arping -c3 " . $_POST['hostip']); echo "</pre>"; + exit; } function arping_package_resync() { |