diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-12-03 04:16:39 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-12-03 04:16:39 +0000 |
commit | 0a8ab3b66a74c396705adf7db833209281d3628a (patch) | |
tree | cc10fe22deb89036a1b8a1ed68b14fea7bd76655 | |
parent | b538aa525204b7529e6f8fab0ca7d87a14b1bc82 (diff) | |
download | pfsense-packages-0a8ab3b66a74c396705adf7db833209281d3628a.tar.gz pfsense-packages-0a8ab3b66a74c396705adf7db833209281d3628a.tar.bz2 pfsense-packages-0a8ab3b66a74c396705adf7db833209281d3628a.zip |
Show header and footer.
-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() { |