array('regexp' => '/^([0-9]+|all)$/'))); get_filter_request_var('local_graph_id'); get_filter_request_var('graph_end'); get_filter_request_var('graph_start'); get_filter_request_var('view_type', FILTER_VALIDATE_REGEXP, array('options' => array('regexp' => '/^([a-zA-Z0-9]+)$/'))); /* ==================================================== */ api_plugin_hook_function('graph'); include_once('./lib/html_tree.php'); top_graph_header(); if (!isset_request_var('rra_id')) { set_request_var('rra_id', 'all'); } if (get_request_var('rra_id') == 'all' || isempty_request_var('rra_id')) { $sql_where = ' AND dspr.id IS NOT NULL'; } else { $sql_where = ' AND dspr.id=' . get_request_var('rra_id'); } $exists = db_fetch_cell_prepared( 'SELECT local_graph_id FROM graph_templates_graph WHERE local_graph_id = ?', array(get_request_var('local_graph_id')) ); /* make sure the graph requested exists (sanity) */ if (!$exists) { print '' . __('GRAPH DOES NOT EXIST') . ''; bottom_footer(); exit; } /* take graph permissions into account here */ if (!is_graph_allowed(get_request_var('local_graph_id'))) { header('Location: permission_denied.php'); exit; } $rras = array(); $graph_title = null; if (get_request_var('action') != 'properties') { print "
|
' graph_id='' rra_id='' graph_width='' graph_height='' graph_start='' graph_end='' title_font_size=''>
|
' style='vertical-align:top;' class='graphDrillDown noprint'>
_util' graph_start='' graph_end='' rra_id=''> _csv' class='iconLink csv' href=''> 0) { print " '; } if (read_config_option('realtime_enabled') == 'on' || is_realm_allowed(25)) { print " ![]() \n"; } print($aggregate_url != '' ? $aggregate_url : ''); api_plugin_hook('graph_buttons', array('hook' => 'view', 'local_graph_id' => get_request_var('local_graph_id'), 'rra' => $rra['id'], 'view_type' => get_request_var('view_type'))); ?> |
|
' graph_id='' rra_id='' graph_width='= $graph_width ?>' graph_height='= $graph_height ?>' title_font_size='= $title_font_size ?>'>
" . html_escape($graph['title_cache']) . '' : ''); ?>
|
' style='vertical-align:top;' class='graphDrillDown noprint'>
_properties' class='iconLink properties'>
_csv' class='iconLink properties'> 0) { print " '; } api_plugin_hook('graph_buttons', array('hook' => 'zoom', 'local_graph_id' => get_request_var('local_graph_id'), 'rra' => get_request_var('rra_id'), 'view_type' => get_request_var('view_type'))); ?> |
|
||||