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"]); print "
| Viewing Graph '$graph_title' | ||
| ";
print " " . $rra["name"] . " [source] \n"; print " | ||