EOT;
	if ($CONFIG['graph_type'] == 'canvas') {
		echo <<
	
	
	
	
	
	
	
	
	
EOT;
	}
echo <<
EOT;
}
function html_end() {
	global $CONFIG;
	$git = '/usr/bin/git';
	$changelog = $CONFIG['webdir'].'/doc/CHANGELOG';
	$version = 'v?';
	if (file_exists($git) && is_dir($CONFIG['webdir'].'/.git')) {
		chdir($CONFIG['webdir']);
		$version = exec($git.' describe --tags');
	} elseif (file_exists($changelog)) {
		$changelog = file($changelog);
		$version = explode(' ', $changelog[0]);
		$version = 'v'.$version[0];
	}
	echo <<
EOT;
	if ($CONFIG['graph_type'] == 'canvas') {
		echo <<
EOT;
	}
echo <<
EOT;
}
function plugin_header($host, $plugin) {
	global $CONFIG;
	return printf("\n", $CONFIG['weburl'], $host, $plugin, $plugin);
}
function plugins_list($host, $selected_plugins = array()) {
	global $CONFIG;
	$plugins = collectd_plugins($host);
	echo '';
	echo '
Plugins ';
	echo '
';
	printf("overview %4\$s %4\$s  ';
	echo '
', $cat);
	printf('%s ', $cat);
	echo "\n";
	$row_style = array(0 => "even", 1 => "odd");
	$host_counter = 0;
	foreach($hosts as $host) {
		$host_counter++;
		$cores = count(group_plugindata(collectd_plugindata($host, 'cpu')));
		printf('', $row_style[$host_counter % 2]);
		printf('%s %.2f ', $class, $rrd_info[$info]);
				}
			}
		}
		print " \n";
	}
	echo "
\n";
	echo " \n";
}
function breadcrumbs() {
	$path = '';
	if (validate_get(GET('h'), 'host'))
		$path .= ' - '.ucfirst(GET('h'));
	if (validate_get(GET('p'), 'plugin'))
		$path .= ' - '.ucfirst(GET('p'));
	if (validate_get(GET('pi'), 'pinstance'))
		$path .= ' - '.GET('pi');
	if (validate_get(GET('t'), 'type') && validate_get(GET('p'), 'plugin') && GET('t') != GET('p'))
		$path .= ' - '.GET('t');
	if (validate_get(GET('ti'), 'tinstance'))
		$path .= ' - '.GET('ti');
	return $path;
}
?>