From 35a4e5cf48ba418fd9bce4b023a1f897823aafb8 Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Sat, 13 Dec 2014 13:33:49 +0100 Subject: 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. --- routers/router.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'routers/router.php') 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 = '

Command: '.$command.'

'; + if ($this->global_config['output']['show_command']) { + $displayable = '

Command: '.$command.'

'; + } $displayable .= '
'.$output.'
'; return $displayable; -- cgit v1.2.3