summaryrefslogtreecommitdiff
path: root/routers/router.php
diff options
context:
space:
mode:
authorGuillaume Mazoyer <respawneral@gmail.com>2014-12-13 13:33:49 +0100
committerGuillaume Mazoyer <respawneral@gmail.com>2014-12-13 13:33:49 +0100
commit35a4e5cf48ba418fd9bce4b023a1f897823aafb8 (patch)
tree3d92f44cb985c350deb17940dfd343e5157faa9c /routers/router.php
parent7ac5011098f3c717f14c8059754a9b654798db85 (diff)
Option to hide commands.
Set $config\['output'\]\['show_command'\] to true or false to show or hide the command in the output. Also fix ping/traceroute without FQDN on BIRD, Quagga and Cisco.
Diffstat (limited to 'routers/router.php')
-rw-r--r--routers/router.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/routers/router.php b/routers/router.php
index d68c2f4..c11db5c 100644
--- a/routers/router.php
+++ b/routers/router.php
@@ -71,7 +71,9 @@ abstract class Router {
}
protected function format_output($command, $output) {
- $displayable = '<p><kbd>Command: '.$command.'</kdb></p>';
+ if ($this->global_config['output']['show_command']) {
+ $displayable = '<p><kbd>Command: '.$command.'</kdb></p>';
+ }
$displayable .= '<pre class="pre-scrollable">'.$output.'</pre>';
return $displayable;