2016-06-13 17:24:47 +02:00
|
|
|
<?php
|
|
|
|
|
2021-11-04 16:28:15 +01:00
|
|
|
// Pandora FMS - http://pandorafms.com
|
2016-06-13 17:24:47 +02:00
|
|
|
// ==================================================
|
2020-11-27 13:52:35 +01:00
|
|
|
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
2016-06-13 17:24:47 +02:00
|
|
|
// Please see http://pandorafms.org for full contribution list
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License
|
|
|
|
// as published by the Free Software Foundation; version 2
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @package General
|
|
|
|
*/
|
|
|
|
|
|
|
|
global $config;
|
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
require_once 'include/functions_update_manager.php';
|
2016-06-13 17:24:47 +02:00
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
$message = [];
|
2016-06-17 09:27:28 +02:00
|
|
|
|
|
|
|
if (is_ajax()) {
|
2019-01-30 16:18:44 +01:00
|
|
|
$message_id = get_parameter('message_id', false);
|
|
|
|
if ($message_id === false) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
$message = update_manger_get_single_message($message_id);
|
2016-06-17 09:27:28 +02:00
|
|
|
} else {
|
2019-01-30 16:18:44 +01:00
|
|
|
$message = update_manger_get_last_message();
|
2016-06-17 09:27:28 +02:00
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
if ($message === false) {
|
|
|
|
return false;
|
|
|
|
}
|
2016-06-17 09:27:28 +02:00
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
update_manger_set_read_message($message['svn_version'], 1);
|
|
|
|
update_manager_remote_read_messages($message['svn_version']);
|
2016-06-17 09:27:28 +02:00
|
|
|
}
|
|
|
|
|
2016-06-13 17:24:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
// Prints first step pandora registration
|
2019-01-30 16:18:44 +01:00
|
|
|
echo '<div id="message_id_dialog" title="'.io_safe_output($message['db_field_value']).'">';
|
|
|
|
|
|
|
|
echo '<div>';
|
|
|
|
echo io_safe_output_html($message['data']);
|
|
|
|
echo '</div>';
|
2016-06-13 17:24:47 +02:00
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
/* <![CDATA[ */
|
|
|
|
|
|
|
|
$(document).ready (function () {
|
2019-01-30 16:18:44 +01:00
|
|
|
|
|
|
|
$("#message_id_dialog").dialog({
|
|
|
|
resizable: true,
|
|
|
|
draggable: true,
|
|
|
|
modal: true,
|
|
|
|
width: 850
|
|
|
|
});
|
|
|
|
|
|
|
|
$(".ui-widget-overlay").css("background", "#000");
|
|
|
|
$(".ui-widget-overlay").css("opacity", 0.6);
|
|
|
|
|
2016-06-13 17:24:47 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
/* ]]> */
|
|
|
|
</script>
|