diff --git a/html/pages/graphs.inc.php b/html/pages/graphs.inc.php index 7fc9384c66..3b2ac44187 100644 --- a/html/pages/graphs.inc.php +++ b/html/pages/graphs.inc.php @@ -38,6 +38,20 @@ if (!$auth) $title .= " :: ".ucfirst($subtype); } + # Load our list of available graphtypes for this object + # Fixme not all of these are going to be valid + if ($handle = opendir($config['install_dir'] . "/html/includes/graphs/".$type."/")) + { + while (false !== ($file = readdir($handle))) + { + if ($file != "." && $file != ".." && strstr($file, ".inc.php")) + { + $types[] = str_replace(".inc.php", "", $file); + } + } + closedir($handle); + } + $graph_array = $vars; $graph_array['height'] = "60"; $graph_array['width'] = $thumb_width; @@ -46,6 +60,25 @@ if (!$auth) print_optionbar_start(); echo($title); + + echo('