diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 84c3bca650..f7626ed6f9 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2013-06-07 Miguel de Dios + + * godmode/reporting/reporting_builder.php: fixed the link of the + image in the first page into the PDF reports. + 2013-06-07 Sergio Martin * godmode/servers/plugin.php: Fixed disabled textarea diff --git a/pandora_console/godmode/reporting/reporting_builder.php b/pandora_console/godmode/reporting/reporting_builder.php index e5ac3bc2c4..0b11834693 100644 --- a/pandora_console/godmode/reporting/reporting_builder.php +++ b/pandora_console/godmode/reporting/reporting_builder.php @@ -553,9 +553,11 @@ switch ($action) { 'treport', $new_values, array('id_report' => $idReport)); if ($resultOperationDB !== false) - db_pandora_audit( "Report management", "Update report #$idReport"); + db_pandora_audit( "Report management", + "Update report #$idReport"); else - db_pandora_audit( "Report management", "Fail try to update report #$idReport"); + db_pandora_audit( "Report management", + "Fail try to update report #$idReport"); } else { $resultOperationDB = false; @@ -571,8 +573,8 @@ switch ($action) { else $metaconsole_report = 0; - $start_url = ui_get_full_url(false); - $first_page = "<p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;"><img src="".$start_url."/images/pandora_report_logo.png" alt="" width="800" /></p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;"><span style="font-size: xx-large;">(_REPORT_NAME_)</span></p> <p style="text-align: center;"><span style="font-size: large;">(_DATETIME_)</span></p>"; + $start_url = ui_get_full_url(false, false, false, false); + $first_page = "<p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;"><img src="" . $start_url . "/images/pandora_report_logo.png" alt="" width="800" /></p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;"><span style="font-size: xx-large;">(_REPORT_NAME_)</span></p> <p style="text-align: center;"><span style="font-size: large;">(_DATETIME_)</span></p>"; $idOrResult = db_process_sql_insert('treport', array('name' => $reportName,