From 0808310391b8ecb5b8cdee3c922ffccc076c8daa Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Mon, 28 Dec 2009 10:59:29 +0100 Subject: replace duplicate code by function plugin_header --- host.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'host.php') diff --git a/host.php b/host.php index 17cb499..42179f3 100644 --- a/host.php +++ b/host.php @@ -22,7 +22,7 @@ if(!$plugins) { foreach($CONFIG['overview'] as $plugin) { if (in_array($plugin, $plugins)) { printf('
'."\n", $plugin); - printf("

\"[-]\" %s

\n", $host, $plugin, $CONFIG['weburl'], $plugin); + plugin_header($host, $plugin, 0); graphs_from_plugin($host, $plugin); print "
\n"; } @@ -33,10 +33,10 @@ foreach($plugins as $plugin) { if (!in_array($plugin, $CONFIG['overview'])) { printf('
'."\n", $plugin); if ($splugin == $plugin) { - printf("

\"[-]\" %s

\n", $host, $plugin, $CONFIG['weburl'], $plugin); + plugin_header($host, $plugin, 0); graphs_from_plugin($host, $plugin); } else { - printf("

\"[+]\" %s

\n", $host, $plugin, $CONFIG['weburl'], $plugin); + plugin_header($host, $plugin, 1); } print "
\n"; } -- cgit v1.1