From 0f3717a26870ec62f71307401765d34224c2d7e7 Mon Sep 17 00:00:00 2001 From: samucarc Date: Fri, 2 Nov 2018 12:57:52 +0100 Subject: [PATCH] Be able to change the subject and body of the report message when necessary --- pandora_console/godmode/reporting/reporting_builder.php | 4 +++- pandora_console/include/functions_html.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/reporting/reporting_builder.php b/pandora_console/godmode/reporting/reporting_builder.php index 229c5ab56f..ed503f0eae 100755 --- a/pandora_console/godmode/reporting/reporting_builder.php +++ b/pandora_console/godmode/reporting/reporting_builder.php @@ -119,7 +119,9 @@ if ($schedule_report != '') { $time = date(TIME_FORMAT); $parameters[0] = get_parameter('id_schedule_report'); //$parameters[1] = db_get_value('schedule_email', 'treport', 'id_report', $id_report); - $parameters[1] = get_parameter('schedule_email'); + $parameters[1] = get_parameter('schedule_email_address'); + $parameters[2] = get_parameter('schedule_subject', ''); + $parameters[3] = get_parameter('schedule_email', ''); $parameters['first_execution'] = strtotime ($date.' '.$time); $values = array( diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 932e8a3457..213c475cc7 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -1008,7 +1008,7 @@ function html_print_input_text_extended ($name, $value, $id, $alt, $size, $maxle ++$idcounter; $valid_attrs = array ("accept", "disabled", "maxlength", - "name", "readonly", "size", "value", "accesskey", + "name", "readonly", "placeholder", "size", "value", "accesskey", "class", "dir", "id", "lang", "style", "tabindex", "title", "xml:lang", "onfocus", "onblur", "onselect", "onchange", "onclick", "ondblclick", "onmousedown",