diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index bbe35894f8..9fca4bd2c5 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-05-10 Sergio Martin + + * operation/messages/message.php: Fixed the messages + over the header for bug: 2993495 + 2010-05-10 Sergio Martin * godmode/agentes/massive_edit_modules.php: Fixed the diff --git a/pandora_console/operation/messages/message.php b/pandora_console/operation/messages/message.php index c6e4af68bc..97d225275e 100644 --- a/pandora_console/operation/messages/message.php +++ b/pandora_console/operation/messages/message.php @@ -25,6 +25,14 @@ $dest_group = get_parameter ("dest_group"); $subject = get_parameter ("subject"); $message = get_parameter ("mensaje"); +if (isset ($_GET["new_msg"])) + print_page_header (__('Messages'). " » ".__('New message'), "images/email.png", false, "", false, "" ); +elseif (isset ($_GET["read_message"])) + print_page_header (__('Messages'). " » ".__('Read message'), "images/email.png", false, "", false, "" ); +if (isset ($_GET["read_message"]) || !isset ($_GET["new_msg"])) + if (empty ($config["pure"]) && !is_ajax ()) + print_page_header (__('Messages'). " » ".__('Message overview'), "images/email.png", false, "", false, "" ); + if (isset ($_POST["delete_message"])) { $id = (int) get_parameter_post ("delete_message"); $result = delete_message ($id); //Delete message function will actually check the credentials @@ -65,7 +73,7 @@ if (isset ($_GET["mark_read"]) || isset ($_GET["mark_unread"])) { if (isset ($_GET["new_msg"])) { //create message // Header - print_page_header (__('Messages'). " » ".__('New message'), "images/email.png", false, "", false, "" ); +// print_page_header (__('Messages'). " » ".__('New message'), "images/email.png", false, "", false, "" ); echo '
@@ -98,7 +106,7 @@ if (isset ($_GET["new_msg"])) { //create message } elseif (isset ($_GET["read_message"])) { - print_page_header (__('Messages'). " » ".__('Read message'), "images/email.png", false, "", false, "" ); +// print_page_header (__('Messages'). " » ".__('Read message'), "images/email.png", false, "", false, "" ); $message_id = (int) get_parameter ("read_message"); $message = get_message ($message_id); @@ -150,9 +158,9 @@ if (isset ($_GET["new_msg"])) { //create message } if (isset ($_GET["read_message"]) || !isset ($_GET["new_msg"])) { - if (empty ($config["pure"]) && !is_ajax ()) { - print_page_header (__('Messages'). " » ".__('Message overview'), "images/email.png", false, "", false, "" ); - } +// if (empty ($config["pure"]) && !is_ajax ()) { +// print_page_header (__('Messages'). " » ".__('Message overview'), "images/email.png", false, "", false, "" ); +// } //Get number of messages $num_messages = get_message_count ($config["id_user"]);