"); print_vars($ma); echo(""); } if (is_array($ma)) { if ($auth || port_permitted($ma['port_id'])) { $device = device_by_id_cache($ma['device_id']); $rrd_filename = get_rrd_path($device, "mac_acc-" . $ma['ifIndex'] . "-" . $ma['vlan_id'] ."-" . $ma['mac'] . ".rrd"); if (rrd_is_file($rrd_filename)) { $port = get_port_by_id($ma['port_id']); $device = device_by_id_cache($port['device_id']); $title = generate_device_link($device); $title .= " :: Port ".generate_port_link($port); $title .= " :: Mac Accounting"; $title .= " :: " . format_mac($ma['mac']); $auth = TRUE; } else { # graph_error("file not found"); } } else { # graph_error("unauthenticated"); } } else { # graph_error("entry not found"); } } else { # graph_error("invalid id"); } // EOF