Fixed pdf netflow reports

This commit is contained in:
fermin831 2017-03-23 11:54:04 +01:00
parent a57cf46179
commit 0660d28ed3
2 changed files with 13 additions and 8 deletions

View File

@ -4242,7 +4242,7 @@ function graph_netflow_aggregate_area ($data, $period, $width, $height, $unit =
$sources, array (), ui_get_full_url("images/image_problem.opaque.png", false, false, false),
"", $unit, $homeurl,
$config['homedir'] . "/images/logo_vertical_water.png",
$config['fontpath'], $config['font_size'], $unit, 2);
$config['fontpath'], $config['font_size'], $unit, $ttl);
}

View File

@ -311,7 +311,8 @@ function reporting_make_reporting_data($report = null, $id_report,
$type,
$force_width_chart,
$force_height_chart,
'netflow_area');
'netflow_area',
$pdf);
break;
case 'netflow_pie':
$report['contents'][] = reporting_netflow(
@ -320,7 +321,8 @@ function reporting_make_reporting_data($report = null, $id_report,
$type,
$force_width_chart,
$force_height_chart,
'netflow_pie');
'netflow_pie',
$pdf);
break;
case 'netflow_data':
$report['contents'][] = reporting_netflow(
@ -329,7 +331,8 @@ function reporting_make_reporting_data($report = null, $id_report,
$type,
$force_width_chart,
$force_height_chart,
'netflow_data');
'netflow_data',
$pdf);
break;
case 'netflow_statistics':
$report['contents'][] = reporting_netflow(
@ -338,7 +341,8 @@ function reporting_make_reporting_data($report = null, $id_report,
$type,
$force_width_chart,
$force_height_chart,
'netflow_statistics');
'netflow_statistics',
$pdf);
break;
case 'netflow_summary':
$report['contents'][] = reporting_netflow(
@ -347,7 +351,8 @@ function reporting_make_reporting_data($report = null, $id_report,
$type,
$force_width_chart,
$force_height_chart,
'netflow_summary');
'netflow_summary',
$pdf);
break;
case 'monitor_report':
$report['contents'][] = reporting_monitor_report(
@ -3241,7 +3246,7 @@ function reporting_monitor_report($report, $content) {
}
function reporting_netflow($report, $content, $type,
$force_width_chart, $force_height_chart, $type_netflow = null) {
$force_width_chart, $force_height_chart, $type_netflow = null, $pdf = false) {
global $config;
@ -3315,7 +3320,7 @@ function reporting_netflow($report, $content, $type,
$filter,
$content['top_n_value'],
$content ['server_name'],
'HTML');
$pdf ? 'PDF' : 'HTML');
break;
case 'data':
break;