diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-07-23 22:17:46 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-07-23 22:17:46 -0300 |
commit | 43ef01f466bec747facbf250037c3b467dd8547e (patch) | |
tree | 12fd68151b58f35197b48901c983d8fbd1894c4d /config | |
parent | c3bf54d6587ce03f15931aa0a1c8b32f0a9dc27b (diff) | |
download | pfsense-packages-43ef01f466bec747facbf250037c3b467dd8547e.tar.gz pfsense-packages-43ef01f466bec747facbf250037c3b467dd8547e.tar.bz2 pfsense-packages-43ef01f466bec747facbf250037c3b467dd8547e.zip |
Add an ajax call to get command result
Diffstat (limited to 'config')
-rw-r--r-- | config/openbgpd/openbgpd_status.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/openbgpd/openbgpd_status.php b/config/openbgpd/openbgpd_status.php index f5930db0..245ed1c9 100644 --- a/config/openbgpd/openbgpd_status.php +++ b/config/openbgpd/openbgpd_status.php @@ -41,6 +41,12 @@ defCmdT("nexthops", "OpenBGPD Nexthops", "bgpctl show nexthop"); defCmdT("ip", "OpenBGPD IP", "bgpctl show ip bgp"); defCmdT("neighbors", "OpenBGPD Neighbors", "bgpctl show neighbor"); +if (isset($_REQUEST['isAjax'])) { + if (isset($_REQUEST['cmd']) && isset($commands[$_REQUEST['cmd']])) + echo htmlspecialchars_decode(doCmdT($commands[$_REQUEST['cmd']][1], $_REQUEST['limit']. $_REQUEST['filter'])); + exit; +} + if ($config['version'] >= 6) $pgtitle = array("OpenBGPD", "Status"); else |