0) { $access_denied = true; } }elseif ($current_user["graph_policy"] == "2") { if (sizeof($user_auth) == 0) { $access_denied = true; } } if ($access_denied == true) { print "ACCESS DENIED"; exit; } } /* make sure the graph requested exists (sanity) */ if (!(db_fetch_cell("select local_graph_id from graph_templates_graph where local_graph_id=" . $_GET["local_graph_id"]))) { print "GRAPH DOES NOT EXIST"; exit; } $rras = db_fetch_assoc("select id,name from rra $sql_where order by steps"); $graph_title = db_fetch_cell("select title from graph_templates_graph where local_graph_id=" . $_GET["local_graph_id"]); if (sizeof($rras) > 0) { foreach ($rras as $rra) { print "
$graph_title
\n
" . $rra["name"] . " [source]

\n"; } } include_once ("include/bottom_footer.php"); ?>