Merge remote-tracking branch 'origin/develop' into ent-6302-proyectos-anadir-un-campo-de-numero-de-ticket-para-modulos
This commit is contained in:
commit
5c511bb88e
|
@ -0,0 +1 @@
|
|||
pandora_console/attachment/agents
|
|
@ -472,24 +472,16 @@ $(document).ready (function () {
|
|||
$table_macros_field.show();
|
||||
}
|
||||
|
||||
tinyMCE.init({
|
||||
selector: 'textarea.tiny-mce-editor',
|
||||
theme : "advanced",
|
||||
plugins : "preview, print, table, searchreplace, nonbreaking, xhtmlxtras, noneditable",
|
||||
theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsize,select",
|
||||
theme_advanced_buttons2 : "search,replace,|,bullist,numlist,|,undo,redo,|,link,unlink,image,|,cleanup,code,preview,|,forecolor,backcolor",
|
||||
theme_advanced_buttons3 : "",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_resizing : true,
|
||||
theme_advanced_statusbar_location : "bottom",
|
||||
force_p_newlines : false,
|
||||
forced_root_block : '',
|
||||
inline_styles : true,
|
||||
valid_children : "+body[style]",
|
||||
element_format : "html"
|
||||
});
|
||||
|
||||
var added_config = {
|
||||
"selector": "textarea.tiny-mce-editor",
|
||||
"plugins": "preview, print, table, searchreplace, nonbreaking, xhtmlxtras, noneditable",
|
||||
"theme_advanced_buttons1": "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect",
|
||||
"theme_advanced_buttons2": "search,replace,|,bullist,numlist,|,undo,redo,|,link,unlink,image,|,cleanup,code,preview,|,forecolor,backcolor",
|
||||
"valid_children": "+body[style]",
|
||||
"width": "90%",
|
||||
}
|
||||
defineTinyMCE(added_config);
|
||||
|
||||
render_command_preview(original_command);
|
||||
render_command_recovery_preview(original_command);
|
||||
|
||||
|
|
|
@ -1507,23 +1507,19 @@ if ($step == 2) {
|
|||
}
|
||||
});
|
||||
|
||||
tinyMCE.init({
|
||||
selector: 'textarea.tiny-mce-editor',
|
||||
theme : "advanced",
|
||||
plugins : "preview, print, table, searchreplace, nonbreaking, xhtmlxtras, noneditable",
|
||||
theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsize,select",
|
||||
theme_advanced_buttons2 : "search,replace,|,bullist,numlist,|,undo,redo,|,link,unlink,image,|,cleanup,code,preview,|,forecolor,backcolor",
|
||||
theme_advanced_buttons3 : "",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_resizing : true,
|
||||
theme_advanced_statusbar_location : "bottom",
|
||||
force_p_newlines : false,
|
||||
forced_root_block : '',
|
||||
inline_styles : true,
|
||||
valid_children : "+body[style]",
|
||||
element_format : "html"
|
||||
});
|
||||
var added_config = {
|
||||
"selector": 'textarea.tiny-mce-editor',
|
||||
"plugins": "preview, print, table, searchreplace, nonbreaking, xhtmlxtras, noneditable",
|
||||
"theme_advanced_buttons1": "bold,italic,underline,|,cut,copy,paste,|,justifyleft,justifycenter,justifyright,|,forecolor,backcolor,|,formatselect,fontselect,fontsizeselect",
|
||||
"theme_advanced_buttons2": "search,replace,|,bullist,numlist,|,undo,redo,|,link,unlink,image,|,cleanup,code,preview",
|
||||
"force_p_newlines" : false,
|
||||
"forced_root_block" : '',
|
||||
"inline_styles": true,
|
||||
"valid_children": "+body[style]",
|
||||
}
|
||||
|
||||
defineTinyMCE(added_config);
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -3891,7 +3891,6 @@ $(document).ready (function () {
|
|||
case 'historical_data':
|
||||
case 'agent_configuration':
|
||||
case 'module_histogram_graph':
|
||||
case 'event_report_log':
|
||||
case 'increment':
|
||||
if ($("#hidden-id_agent").val() == 0) {
|
||||
dialog_message('#message_no_agent');
|
||||
|
@ -3911,6 +3910,12 @@ $(document).ready (function () {
|
|||
return false;
|
||||
}
|
||||
break;
|
||||
case 'event_report_log':
|
||||
if ($("#id_agents3").val() == '') {
|
||||
dialog_message('#message_no_agent');
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -195,54 +195,21 @@ ui_require_javascript_file('encode_decode_base64');
|
|||
id_visual_console = <?php echo $visualConsole['id']; ?>;
|
||||
visual_map_main();
|
||||
|
||||
tinyMCE.init({
|
||||
mode : "exact",
|
||||
elements: "text-label",
|
||||
convert_urls: false,
|
||||
theme : "advanced",
|
||||
<?php
|
||||
if ($config['style'] == 'pandora_legacy') {
|
||||
echo 'content_css: "'.ui_get_full_url('include/styles/pandora_legacy.css', false, false, false).'",'."\n";
|
||||
} else {
|
||||
echo 'content_css: "'.ui_get_full_url('include/styles/pandora.css', false, false, false).'",'."\n";
|
||||
}
|
||||
?>
|
||||
theme_advanced_font_sizes :
|
||||
"4pt=.visual_font_size_4pt, " +
|
||||
"6pt=.visual_font_size_6pt, " +
|
||||
"8pt=.visual_font_size_8pt, " +
|
||||
"10pt=.visual_font_size_10pt, " +
|
||||
"12pt=.visual_font_size_12pt, " +
|
||||
"14pt=.visual_font_size_14pt, " +
|
||||
"18pt=.visual_font_size_18pt, " +
|
||||
"24pt=.visual_font_size_24pt, " +
|
||||
"28pt=.visual_font_size_28pt, " +
|
||||
"36pt=.visual_font_size_36pt, " +
|
||||
"48pt=.visual_font_size_48pt, " +
|
||||
"60pt=.visual_font_size_60pt, " +
|
||||
"72pt=.visual_font_size_72pt, " +
|
||||
"84pt=.visual_font_size_84pt, " +
|
||||
"96pt=.visual_font_size_96pt, " +
|
||||
"116pt=.visual_font_size_116pt, " +
|
||||
"128pt=.visual_font_size_128pt, " +
|
||||
"140pt=.visual_font_size_140pt, " +
|
||||
"154pt=.visual_font_size_154pt, " +
|
||||
"196pt=.visual_font_size_196pt",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_buttons1 : "bold,italic, |, justifyleft, justifycenter, justifyright, |,undo, redo, |, image, link, |, fontselect, |, forecolor, fontsizeselect, |, code",
|
||||
theme_advanced_buttons2 : "",
|
||||
theme_advanced_buttons3 : "",
|
||||
theme_advanced_statusbar_location : "none",
|
||||
width: "400",
|
||||
height: "200",
|
||||
nowrap: true,
|
||||
plugins : "noneditable",
|
||||
inline_styles : true,
|
||||
valid_children : "+body[style]",
|
||||
element_format : "html",
|
||||
editor_deselector : "noselected"
|
||||
});
|
||||
var added_config = {
|
||||
"plugins": "noneditable",
|
||||
"elements": "text-label",
|
||||
"theme_advanced_buttons1":
|
||||
"bold,italic,|,justifyleft,justifycenter,justifyright,|,undo,redo,|,image,link,|,fontselect,|,forecolor,fontsizeselect,|,code",
|
||||
"valid_children": "+body[style]",
|
||||
"theme_advanced_font_sizes": "true",
|
||||
"content_css": <?php echo '"'.ui_get_full_url('include/styles/pandora.css', false, false, false).'"'; ?>,
|
||||
"editor_deselector": "noselected",
|
||||
"inline_styles": true,
|
||||
"nowrap": true,
|
||||
"width": "50%",
|
||||
"height": "100%",
|
||||
}
|
||||
defineTinyMCE(added_config);
|
||||
|
||||
$('.item img').each(function(){
|
||||
|
||||
|
|
|
@ -710,48 +710,25 @@ ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/');
|
|||
|
||||
<script type="text/javascript">
|
||||
$(document).ready (function () {
|
||||
|
||||
tinymce.init({
|
||||
selector: "#tinyMCE_editor",
|
||||
theme : "advanced",
|
||||
<?php
|
||||
if ($config['style'] == 'pandora_legacy') {
|
||||
echo 'content_css: "'.ui_get_full_url('include/styles/pandora_legacy.css', false, false, false).'",'."\n";
|
||||
} else {
|
||||
echo 'content_css: "'.ui_get_full_url('include/styles/pandora.css', false, false, false).'",'."\n";
|
||||
}
|
||||
?>
|
||||
theme_advanced_font_sizes :
|
||||
"4pt=.visual_font_size_4pt, " +
|
||||
"6pt=.visual_font_size_6pt, " +
|
||||
"8pt=.visual_font_size_8pt, " +
|
||||
"10pt=.visual_font_size_10pt, " +
|
||||
"12pt=.visual_font_size_12pt, " +
|
||||
"14pt=.visual_font_size_14pt, " +
|
||||
"18pt=.visual_font_size_18pt, " +
|
||||
"24pt=.visual_font_size_24pt, " +
|
||||
"28pt=.visual_font_size_28pt, " +
|
||||
"36pt=.visual_font_size_36pt, " +
|
||||
"48pt=.visual_font_size_48pt, " +
|
||||
"60pt=.visual_font_size_60pt, " +
|
||||
"72pt=.visual_font_size_72pt, " +
|
||||
"84pt=.visual_font_size_84pt, " +
|
||||
"96pt=.visual_font_size_96pt, " +
|
||||
"116pt=.visual_font_size_116pt, " +
|
||||
"128pt=.visual_font_size_128pt, " +
|
||||
"140pt=.visual_font_size_140pt, " +
|
||||
"154pt=.visual_font_size_154pt, " +
|
||||
"196pt=.visual_font_size_196pt",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_buttons1 : "bold,italic, |, image, link, |, forecolor, fontsizeselect",
|
||||
theme_advanced_buttons2 : "",
|
||||
theme_advanced_buttons3 : "",
|
||||
theme_advanced_statusbar_location : "none",
|
||||
width: "400",
|
||||
height: "200",
|
||||
nowrap: true
|
||||
});
|
||||
|
||||
var added_config = {
|
||||
"selector": "#tinyMCE_editor",
|
||||
"elements": "text-label",
|
||||
"plugins": "noneditable",
|
||||
"theme_advanced_buttons1":
|
||||
"bold,italic,|,justifyleft,justifycenter,justifyright,|,undo,redo,|,image,link,|,fontselect,|,forecolor,fontsizeselect,|,code",
|
||||
"valid_children": "+body[style]",
|
||||
"theme_advanced_font_sizes": "true",
|
||||
"content_css":
|
||||
<?php echo '"'.ui_get_full_url('include/styles/pandora.css', false, false, false).'"'; ?>,
|
||||
"editor_deselector": "noselected",
|
||||
"inline_styles": true,
|
||||
"nowrap": true,
|
||||
"width": "400",
|
||||
"height": "200",
|
||||
}
|
||||
|
||||
defineTinyMCE(added_config);
|
||||
|
||||
$("#dialog_label_editor").hide ()
|
||||
.dialog ({
|
||||
|
|
|
@ -300,6 +300,7 @@ ui_require_jquery_file('ui.datepicker-'.get_user_language(), 'include/javascript
|
|||
|
||||
// Include tiny for wysiwyg editor
|
||||
ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/');
|
||||
ui_require_javascript_file('pandora');
|
||||
|
||||
?>
|
||||
<script language="javascript" type="text/javascript">
|
||||
|
@ -323,20 +324,8 @@ ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/');
|
|||
changeMonth: true,
|
||||
changeYear: true,
|
||||
showAnim: "slideDown"});
|
||||
|
||||
|
||||
tinyMCE.init({
|
||||
mode : "exact",
|
||||
elements: "textarea_text",
|
||||
theme : "advanced",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_buttons1 : "bold,italic, |, image, link, |, cut, copy, paste, |, undo, redo, |, forecolor, |, fontsizeselect, |, justifyleft, justifycenter, justifyright, | ,code",
|
||||
theme_advanced_buttons2 : "",
|
||||
theme_advanced_buttons3 : "",
|
||||
convert_urls : false,
|
||||
theme_advanced_statusbar_location : "none"
|
||||
});
|
||||
|
||||
defineTinyMCE({"elements": "textarea_text",});
|
||||
|
||||
$("#checkbox-expire").click(function() {
|
||||
check_expire();
|
||||
|
|
|
@ -1474,30 +1474,17 @@ function change_servicetree_nodes_padding () {
|
|||
}
|
||||
}
|
||||
|
||||
tinyMCE.init({
|
||||
mode : "exact",
|
||||
elements: "textarea_custom_report_front_header, textarea_custom_report_front_footer",
|
||||
theme : "advanced",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_buttons1 : "bold,italic, |, image, |, cut, copy, paste, |, undo, redo, |, forecolor, |, fontsizeselect, |, justifyleft, justifycenter, justifyright",
|
||||
theme_advanced_buttons2 : "",
|
||||
theme_advanced_buttons3 : "",
|
||||
theme_advanced_statusbar_location : "none"
|
||||
});
|
||||
var added_config1 = {
|
||||
"elements":"textarea_custom_report_front_header, textarea_custom_report_front_footer",
|
||||
}
|
||||
|
||||
tinyMCE.init({
|
||||
mode : "exact",
|
||||
elements: "textarea_custom_report_front_firstpage",
|
||||
theme : "advanced",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_buttons1 : "bold,italic, |, image, |, cut, copy, paste, |, undo, redo, |, forecolor, |, fontsizeselect, |, justifyleft, justifycenter, justifyright",
|
||||
theme_advanced_buttons2 : "",
|
||||
theme_advanced_buttons3 : "",
|
||||
convert_urls : false,
|
||||
theme_advanced_statusbar_location : "none"
|
||||
});
|
||||
defineTinyMCE(added_config1);
|
||||
|
||||
var added_config2 = {
|
||||
"elements":"textarea_custom_report_front_firstpage",
|
||||
}
|
||||
|
||||
defineTinyMCE(added_config2);
|
||||
|
||||
$(document).ready (function () {
|
||||
|
||||
|
|
|
@ -1468,6 +1468,7 @@ if ($create_alert || $update_alert) {
|
|||
unset($table);
|
||||
}
|
||||
|
||||
ui_require_javascript_file('pandora', 'include/javascript/', true);
|
||||
ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/');
|
||||
?>
|
||||
<script language="javascript" type="text/javascript">
|
||||
|
@ -1573,24 +1574,19 @@ $(document).ready (function () {
|
|||
}
|
||||
});
|
||||
|
||||
tinyMCE.init({
|
||||
selector: 'textarea.tiny-mce-editor',
|
||||
theme : "advanced",
|
||||
plugins : "preview, print, table, searchreplace, nonbreaking, xhtmlxtras, noneditable",
|
||||
theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsize,select",
|
||||
theme_advanced_buttons2 : "search,replace,|,bullist,numlist,|,undo,redo,|,link,unlink,image,|,cleanup,code,preview,|,forecolor,backcolor",
|
||||
theme_advanced_buttons3 : "",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_resizing : true,
|
||||
theme_advanced_statusbar_location : "bottom",
|
||||
force_p_newlines : false,
|
||||
forced_root_block : '',
|
||||
inline_styles : true,
|
||||
valid_children : "+body[style]",
|
||||
element_format : "html"
|
||||
});
|
||||
var added_config = {
|
||||
"selector": "textarea.tiny-mce-editor",
|
||||
"plugins": "preview, print, table, searchreplace, nonbreaking, xhtmlxtras, noneditable",
|
||||
"theme_advanced_buttons1" : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsize,select",
|
||||
"theme_advanced_buttons2" : "search,replace,|,bullist,numlist,|,undo,redo,|,link,unlink,image,|,cleanup,code,preview,|,forecolor,backcolor",
|
||||
"force_p_newlines": false,
|
||||
"forced_root_block": '',
|
||||
"inline_styles": true,
|
||||
"valid_children": "+body[style]",
|
||||
"element_format": "html",
|
||||
}
|
||||
|
||||
defineTinyMCE(added_config);
|
||||
});
|
||||
|
||||
function show_add_action_snmp(id_alert_snmp) {
|
||||
|
|
|
@ -571,6 +571,11 @@ class CredentialStore extends Wizard
|
|||
$error = __('You must specify a username and/or password');
|
||||
}
|
||||
|
||||
if (isset($error)) {
|
||||
$this->ajaxMsg('error', $error);
|
||||
exit;
|
||||
}
|
||||
|
||||
// Encrypt content (if needed).
|
||||
$values = [
|
||||
'identifier' => $identifier,
|
||||
|
|
|
@ -541,11 +541,9 @@ function ui_print_timestamp($unixtime, $return=false, $option=[])
|
|||
pandora_setlocale();
|
||||
|
||||
$title = human_time_comparation($unixtime);
|
||||
$strf_format = date2strftime_format($config['date_format'], $unixtime);
|
||||
$data = strftime(
|
||||
$strf_format,
|
||||
$unixtime
|
||||
);
|
||||
$date = new DateTime();
|
||||
$date->setTimestamp($unixtime);
|
||||
$data = $date->format($config['date_format']);
|
||||
} else if ($prominent == 'compact') {
|
||||
$units = 'tiny';
|
||||
$title = date($config['date_format'], $unixtime);
|
||||
|
|
|
@ -1294,6 +1294,72 @@ function openURLTagWindow(url) {
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Inicialize tinyMCE with customized parameters
|
||||
*
|
||||
* @param added_config Associative Array. Config to add adding default.
|
||||
*/
|
||||
|
||||
function defineTinyMCE(added_config) {
|
||||
// Default values
|
||||
var buttons1 =
|
||||
"bold,italic,underline,|,link,image,|,cut,copy,paste,|,undo,redo,|,forecolor,fontselect,fontsizeselect,|,justifyleft,justifycenter,justifyright";
|
||||
var elements = added_config["elements"];
|
||||
var plugins = added_config["plugins"];
|
||||
// Initialize with fixed parameters. Some parameters must be initialized too.
|
||||
tinyMCE.init({
|
||||
mode: "exact",
|
||||
theme: "advanced",
|
||||
elements: elements,
|
||||
plugins: plugins,
|
||||
theme_advanced_buttons1: buttons1,
|
||||
theme_advanced_toolbar_location: "top",
|
||||
theme_advanced_toolbar_align: "left",
|
||||
theme_advanced_statusbar_location: "none",
|
||||
convert_urls: false,
|
||||
element_format: "html"
|
||||
});
|
||||
|
||||
if (!isEmptyObject(added_config)) {
|
||||
// If use asterisk mask, you can add at end of buttons new buttons.
|
||||
for (var key in added_config) {
|
||||
switch (key) {
|
||||
case "theme_advanced_buttons1*":
|
||||
tinyMCE.settings.theme_advanced_buttons1 =
|
||||
buttons1 + ",|," + added_config[key];
|
||||
break;
|
||||
case "theme_advanced_font_sizes":
|
||||
tinyMCE.settings.theme_advanced_font_sizes =
|
||||
"4pt=.visual_font_size_4pt, " +
|
||||
"6pt=.visual_font_size_6pt, " +
|
||||
"8pt=.visual_font_size_8pt, " +
|
||||
"10pt=.visual_font_size_10pt, " +
|
||||
"12pt=.visual_font_size_12pt, " +
|
||||
"14pt=.visual_font_size_14pt, " +
|
||||
"18pt=.visual_font_size_18pt, " +
|
||||
"24pt=.visual_font_size_24pt, " +
|
||||
"28pt=.visual_font_size_28pt, " +
|
||||
"36pt=.visual_font_size_36pt, " +
|
||||
"48pt=.visual_font_size_48pt, " +
|
||||
"60pt=.visual_font_size_60pt, " +
|
||||
"72pt=.visual_font_size_72pt, " +
|
||||
"84pt=.visual_font_size_84pt, " +
|
||||
"96pt=.visual_font_size_96pt, " +
|
||||
"116pt=.visual_font_size_116pt, " +
|
||||
"128pt=.visual_font_size_128pt, " +
|
||||
"140pt=.visual_font_size_140pt, " +
|
||||
"154pt=.visual_font_size_154pt, " +
|
||||
"196pt=.visual_font_size_196pt";
|
||||
break;
|
||||
default:
|
||||
tinyMCE.settings[key] = added_config[key];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function removeTinyMCE(elementID) {
|
||||
if (elementID.length > 0 && !isEmptyObject(tinyMCE))
|
||||
tinyMCE.EditorManager.execCommand("mceRemoveControl", true, elementID);
|
||||
|
|
|
@ -219,7 +219,7 @@ class Manager
|
|||
$this->stringGroups = \io_safe_output(
|
||||
implode(
|
||||
', ',
|
||||
array_keys($this->groups)
|
||||
array_values($this->groups)
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -907,6 +907,11 @@ class Manager
|
|||
{
|
||||
global $config;
|
||||
|
||||
if (check_acl($config['id_user'], 0, 'RW') === 0) {
|
||||
include 'general/noaccess.php';
|
||||
return;
|
||||
}
|
||||
|
||||
$name = \get_parameter('name', '');
|
||||
$private = \get_parameter_switch('private');
|
||||
$id_group = \get_parameter('id_group');
|
||||
|
|
|
@ -194,25 +194,45 @@ if ($config['public_dashboard'] === true) {
|
|||
// 'slides' => $slides,
|
||||
];
|
||||
} else if ($config['pure']) {
|
||||
$buttons = [
|
||||
'back_to_dashboard_list' => $back_to_dashboard_list,
|
||||
'save_layout' => $save_layout_dashboard,
|
||||
'normalscreen' => $normalscreen,
|
||||
'combo_refresh_one_dashboard' => $comboRefresh,
|
||||
'slides' => $slides,
|
||||
'options' => $options,
|
||||
];
|
||||
if (check_acl($config['id_user'], 0, 'RW') === 0) {
|
||||
$buttons = [
|
||||
'back_to_dashboard_list' => $back_to_dashboard_list,
|
||||
'normalscreen' => $normalscreen,
|
||||
'combo_refresh_one_dashboard' => $comboRefresh,
|
||||
'slides' => $slides,
|
||||
];
|
||||
} else {
|
||||
$buttons = [
|
||||
'back_to_dashboard_list' => $back_to_dashboard_list,
|
||||
'save_layout' => $save_layout_dashboard,
|
||||
'normalscreen' => $normalscreen,
|
||||
'combo_refresh_one_dashboard' => $comboRefresh,
|
||||
'slides' => $slides,
|
||||
'options' => $options,
|
||||
];
|
||||
}
|
||||
} else {
|
||||
$buttons = [
|
||||
'enable_disable' => $enable_disable,
|
||||
'back_to_dashboard_list' => $back_to_dashboard_list,
|
||||
'fullscreen' => $fullscreen,
|
||||
'slides' => $slides,
|
||||
'public_link' => $publiclink,
|
||||
'combo_dashboard' => $combo_dashboard,
|
||||
'options' => $options,
|
||||
'newWidget' => $newWidget,
|
||||
];
|
||||
if (check_acl($config['id_user'], 0, 'RW') === 0) {
|
||||
$buttons = [
|
||||
'back_to_dashboard_list' => $back_to_dashboard_list,
|
||||
'fullscreen' => $fullscreen,
|
||||
'slides' => $slides,
|
||||
'public_link' => $publiclink,
|
||||
'combo_dashboard' => $combo_dashboard,
|
||||
'newWidget' => $newWidget,
|
||||
];
|
||||
} else {
|
||||
$buttons = [
|
||||
'enable_disable' => $enable_disable,
|
||||
'back_to_dashboard_list' => $back_to_dashboard_list,
|
||||
'fullscreen' => $fullscreen,
|
||||
'slides' => $slides,
|
||||
'public_link' => $publiclink,
|
||||
'combo_dashboard' => $combo_dashboard,
|
||||
'options' => $options,
|
||||
'newWidget' => $newWidget,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
ui_print_page_header(
|
||||
|
|
|
@ -1396,6 +1396,8 @@ sub db_concat ($$) {
|
|||
########################################################################
|
||||
sub get_priority_name ($) {
|
||||
my ($priority_id) = @_;
|
||||
|
||||
return '' unless defined($priority_id);
|
||||
|
||||
if ($priority_id == 0) {
|
||||
return 'Maintenance';
|
||||
|
|
|
@ -672,22 +672,22 @@ sub print_module {
|
|||
if (! (empty ($data->{warning_inverse}))) {
|
||||
$xml_module .= "\t<warning_inverse><![CDATA[" . $data->{warning_inverse} . "]]></warning_inverse>\n";
|
||||
}
|
||||
if (! (empty($data->{min_warning})) ) {
|
||||
if (! (empty($data->{min_warning_forced})) ) {
|
||||
$xml_module .= "\t<min_warning_forced><![CDATA[" . $data->{min_warning_forced} . "]]></min_warning_forced>\n";
|
||||
}
|
||||
if (! (empty($data->{max_warning})) ) {
|
||||
if (! (empty($data->{max_warning_forced})) ) {
|
||||
$xml_module .= "\t<max_warning_forced><![CDATA[" . $data->{max_warning_forced} . "]]></max_warning_forced>\n";
|
||||
}
|
||||
if (! (empty ($data->{min_critical})) ) {
|
||||
if (! (empty ($data->{min_critical_forced})) ) {
|
||||
$xml_module .= "\t<min_critical_forced><![CDATA[" . $data->{min_critical_forced} . "]]></min_critical_forced>\n";
|
||||
}
|
||||
if (! (empty ($data->{max_critical})) ){
|
||||
if (! (empty ($data->{max_critical_forced})) ){
|
||||
$xml_module .= "\t<max_critical_forced><![CDATA[" . $data->{max_critical_forced} . "]]></max_critical_forced>\n";
|
||||
}
|
||||
if (! (empty ($data->{str_warning}))) {
|
||||
if (! (empty ($data->{str_warning_forced}))) {
|
||||
$xml_module .= "\t<str_warning_forced><![CDATA[" . $data->{str_warning_forced} . "]]></str_warning_forced>\n";
|
||||
}
|
||||
if (! (empty ($data->{str_critical}))) {
|
||||
if (! (empty ($data->{str_critical_forced}))) {
|
||||
$xml_module .= "\t<str_critical_forced><![CDATA[" . $data->{str_critical_forced} . "]]></str_critical_forced>\n";
|
||||
}
|
||||
if (! (empty ($data->{max}))) {
|
||||
|
|
Loading…
Reference in New Issue