0) { $access_denied = true; } } elseif ($config["graph_policy"]["auth"] == "2") { if (! sizeof($user) > 0) { $access_denied = true; } } if ($access_denied == true) { print "ACCESS DENIED"; exit; } } /* make sure the graph requested exists (sanity) */ $gid = db_fetch_cell("select ID from rrd_graph where id=$graphid"); if (! $gid > 0) { print "GRAPH DOES NOT EXIST"; exit; } $rra_list = db_fetch_assoc("select ID,Name from rrd_rra $sql_where order by steps"); if (sizeof($rra_list) > 0) { foreach ($rra_list as $rra) { ?>
cacti/rrdtool graph
[source]