mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
Merge branch '2415-Plantillas_de_Consola_visual' into 'develop'
2415 plantillas de consola visual See merge request artica/pandorafms!1652
This commit is contained in:
commit
fdedc78b24
56
pandora_console/extras/mr/19.sql
Normal file
56
pandora_console/extras/mr/19.sql
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
START TRANSACTION;
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table `tlayout_template`
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS `tlayout_template` (
|
||||||
|
`id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
|
`name` varchar(50) NOT NULL,
|
||||||
|
`id_group` INTEGER UNSIGNED NOT NULL,
|
||||||
|
`background` varchar(200) NOT NULL,
|
||||||
|
`height` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`width` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`background_color` varchar(50) NOT NULL default '#FFF',
|
||||||
|
`is_favourite` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
PRIMARY KEY(`id`)
|
||||||
|
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table `tlayout_template_data`
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS `tlayout_template_data` (
|
||||||
|
`id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
|
`id_layout_template` INTEGER UNSIGNED NOT NULL,
|
||||||
|
`pos_x` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`pos_y` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`height` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`width` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`label` TEXT,
|
||||||
|
`image` varchar(200) DEFAULT "",
|
||||||
|
`type` tinyint(1) UNSIGNED NOT NULL default 0,
|
||||||
|
`period` INTEGER UNSIGNED NOT NULL default 3600,
|
||||||
|
`module_name` text NOT NULL,
|
||||||
|
`agent_name` varchar(600) BINARY NOT NULL default '',
|
||||||
|
`id_layout_linked` INTEGER unsigned NOT NULL default '0',
|
||||||
|
`parent_item` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`enable_link` tinyint(1) UNSIGNED NOT NULL default 1,
|
||||||
|
`id_metaconsole` int(10) NOT NULL default 0,
|
||||||
|
`id_group` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`id_custom_graph` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`border_width` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`type_graph` varchar(50) NOT NULL default 'area',
|
||||||
|
`label_position` varchar(50) NOT NULL default 'down',
|
||||||
|
`border_color` varchar(200) DEFAULT "",
|
||||||
|
`fill_color` varchar(200) DEFAULT "",
|
||||||
|
`show_statistics` tinyint(2) NOT NULL default '0',
|
||||||
|
`id_layout_linked_weight` int(10) NOT NULL default '0',
|
||||||
|
`element_group` int(10) NOT NULL default '0',
|
||||||
|
`show_on_top` tinyint(1) NOT NULL default '0',
|
||||||
|
`clock_animation` varchar(60) NOT NULL default "analogic_1",
|
||||||
|
`time_format` varchar(60) NOT NULL default "time",
|
||||||
|
`timezone` varchar(60) NOT NULL default "Europe/Madrid",
|
||||||
|
PRIMARY KEY(`id`),
|
||||||
|
FOREIGN KEY (`id_layout_template`) REFERENCES tlayout_template(`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
COMMIT;
|
@ -1175,13 +1175,13 @@ ALTER TABLE titem MODIFY `source_data` int(10) unsigned;
|
|||||||
INSERT INTO `tconfig` (`token`, `value`) VALUES ('big_operation_step_datos_purge', '100');
|
INSERT INTO `tconfig` (`token`, `value`) VALUES ('big_operation_step_datos_purge', '100');
|
||||||
INSERT INTO `tconfig` (`token`, `value`) VALUES ('small_operation_step_datos_purge', '1000');
|
INSERT INTO `tconfig` (`token`, `value`) VALUES ('small_operation_step_datos_purge', '1000');
|
||||||
INSERT INTO `tconfig` (`token`, `value`) VALUES ('days_autodisable_deletion', '30');
|
INSERT INTO `tconfig` (`token`, `value`) VALUES ('days_autodisable_deletion', '30');
|
||||||
INSERT INTO `tconfig` (`token`, `value`) VALUES ('MR', 18);
|
INSERT INTO `tconfig` (`token`, `value`) VALUES ('MR', 19);
|
||||||
INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_docs_logo', 'default_docs.png');
|
INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_docs_logo', 'default_docs.png');
|
||||||
INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_support_logo', 'default_support.png');
|
INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_support_logo', 'default_support.png');
|
||||||
INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_logo_white_bg_preview', 'pandora_logo_head_white_bg.png');
|
INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_logo_white_bg_preview', 'pandora_logo_head_white_bg.png');
|
||||||
UPDATE tconfig SET value = 'https://licensing.artica.es/pandoraupdate7/server.php' WHERE token='url_update_manager';
|
UPDATE tconfig SET value = 'https://licensing.artica.es/pandoraupdate7/server.php' WHERE token='url_update_manager';
|
||||||
DELETE FROM `tconfig` WHERE `token` = 'current_package_enterprise';
|
DELETE FROM `tconfig` WHERE `token` = 'current_package_enterprise';
|
||||||
INSERT INTO `tconfig` (`token`, `value`) VALUES ('current_package_enterprise', '724');
|
INSERT INTO `tconfig` (`token`, `value`) VALUES ('current_package_enterprise', '726');
|
||||||
|
|
||||||
-- ---------------------------------------------------------------------
|
-- ---------------------------------------------------------------------
|
||||||
-- Table `tconfig_os`
|
-- Table `tconfig_os`
|
||||||
@ -1712,4 +1712,55 @@ CREATE TABLE IF NOT EXISTS `tautoconfig_actions` (
|
|||||||
CONSTRAINT `tautoconfig_action_ibfk_1` FOREIGN KEY (`id_autoconfig`) REFERENCES `tautoconfig` (`id`) ON DELETE CASCADE
|
CONSTRAINT `tautoconfig_action_ibfk_1` FOREIGN KEY (`id_autoconfig`) REFERENCES `tautoconfig` (`id`) ON DELETE CASCADE
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table `tlayout_template`
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS `tlayout_template` (
|
||||||
|
`id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
|
`name` varchar(50) NOT NULL,
|
||||||
|
`id_group` INTEGER UNSIGNED NOT NULL,
|
||||||
|
`background` varchar(200) NOT NULL,
|
||||||
|
`height` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`width` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`background_color` varchar(50) NOT NULL default '#FFF',
|
||||||
|
`is_favourite` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
PRIMARY KEY(`id`)
|
||||||
|
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table `tlayout_template_data`
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS `tlayout_template_data` (
|
||||||
|
`id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
|
`id_layout_template` INTEGER UNSIGNED NOT NULL,
|
||||||
|
`pos_x` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`pos_y` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`height` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`width` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`label` TEXT,
|
||||||
|
`image` varchar(200) DEFAULT "",
|
||||||
|
`type` tinyint(1) UNSIGNED NOT NULL default 0,
|
||||||
|
`period` INTEGER UNSIGNED NOT NULL default 3600,
|
||||||
|
`module_name` text NOT NULL,
|
||||||
|
`agent_name` varchar(600) BINARY NOT NULL default '',
|
||||||
|
`id_layout_linked` INTEGER unsigned NOT NULL default '0',
|
||||||
|
`parent_item` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`enable_link` tinyint(1) UNSIGNED NOT NULL default 1,
|
||||||
|
`id_metaconsole` int(10) NOT NULL default 0,
|
||||||
|
`id_group` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`id_custom_graph` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`border_width` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`type_graph` varchar(50) NOT NULL default 'area',
|
||||||
|
`label_position` varchar(50) NOT NULL default 'down',
|
||||||
|
`border_color` varchar(200) DEFAULT "",
|
||||||
|
`fill_color` varchar(200) DEFAULT "",
|
||||||
|
`show_statistics` tinyint(2) NOT NULL default '0',
|
||||||
|
`id_layout_linked_weight` int(10) NOT NULL default '0',
|
||||||
|
`element_group` int(10) NOT NULL default '0',
|
||||||
|
`show_on_top` tinyint(1) NOT NULL default '0',
|
||||||
|
`clock_animation` varchar(60) NOT NULL default "analogic_1",
|
||||||
|
`time_format` varchar(60) NOT NULL default "time",
|
||||||
|
`timezone` varchar(60) NOT NULL default "Europe/Madrid",
|
||||||
|
PRIMARY KEY(`id`),
|
||||||
|
FOREIGN KEY (`id_layout_template`) REFERENCES tlayout_template(`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
@ -22,6 +22,9 @@ $vconsoles_read = check_acl ($config['id_user'], 0, "VR");
|
|||||||
$vconsoles_write = check_acl ($config['id_user'], 0, "VW");
|
$vconsoles_write = check_acl ($config['id_user'], 0, "VW");
|
||||||
$vconsoles_manage = check_acl ($config['id_user'], 0, "VM");
|
$vconsoles_manage = check_acl ($config['id_user'], 0, "VM");
|
||||||
|
|
||||||
|
$is_enterprise = enterprise_include_once('include/functions_policies.php');
|
||||||
|
$is_metaconsole = is_metaconsole();
|
||||||
|
|
||||||
if (!$vconsoles_read && !$vconsoles_write && !$vconsoles_manage) {
|
if (!$vconsoles_read && !$vconsoles_write && !$vconsoles_manage) {
|
||||||
db_pandora_audit("ACL Violation",
|
db_pandora_audit("ACL Violation",
|
||||||
"Trying to access map builder");
|
"Trying to access map builder");
|
||||||
@ -29,19 +32,64 @@ if (!$vconsoles_read && !$vconsoles_write && !$vconsoles_manage) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!$is_metaconsole){
|
||||||
|
$url_visual_console = 'index.php?sec=network&sec2=godmode/reporting/map_builder';
|
||||||
|
$url_visual_console_favorite = 'index.php?sec=network&sec2=godmode/reporting/visual_console_favorite';
|
||||||
|
$url_visual_console_template = 'index.php?sec=network&sec2=enterprise/godmode/reporting/visual_console_template';
|
||||||
|
$url_visual_console_template_wizard = 'index.php?sec=network&sec2=enterprise/godmode/reporting/visual_console_template_wizard';
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$url_visual_console = 'index.php?sec=screen&sec2=screens/screens&action=visualmap';
|
||||||
|
$url_visual_console_favorite = 'index.php?sec=screen&sec2=screens/screens&action=visualmap_favorite';
|
||||||
|
$url_visual_console_template = 'index.php?sec=screen&sec2=screens/screens&action=visualmap_template';
|
||||||
|
$url_visual_console_template_wizard = 'index.php?sec=screen&sec2=screens/screens&action=visualmap_wizard';
|
||||||
|
}
|
||||||
|
|
||||||
$pure = (int)get_parameter('pure', 0);
|
$pure = (int)get_parameter('pure', 0);
|
||||||
$hack_metaconsole = '';
|
$hack_metaconsole = '';
|
||||||
if (defined('METACONSOLE'))
|
if (defined('METACONSOLE'))
|
||||||
$hack_metaconsole = '../../';
|
$hack_metaconsole = '../../';
|
||||||
|
|
||||||
$buttons['visual_console_favorite'] = array('active' => false,
|
$buttons['visual_console'] = array(
|
||||||
'text' => '<a href="index.php?sec=network&sec2=godmode/reporting/visual_console_favorite">' .
|
'active' => true,
|
||||||
html_print_image ("images/list.png", true, array ("title" => __('Visual Favourite Console'))) .'</a>');
|
'text' => '<a href="'.$url_visual_console.'">' .
|
||||||
|
html_print_image ("images/visual_console.png", true, array ("title" => __('Visual Console List'))) .'</a>'
|
||||||
|
);
|
||||||
|
|
||||||
if (!defined('METACONSOLE')) {
|
$buttons['visual_console_favorite'] = array(
|
||||||
|
'active' => false,
|
||||||
|
'text' => '<a href="'.$url_visual_console_favorite.'">' .
|
||||||
|
html_print_image ("images/list.png", true, array ("title" => __('Visual Favourite Console'))) .'</a>'
|
||||||
|
);
|
||||||
|
|
||||||
|
if($is_enterprise){
|
||||||
|
$buttons['visual_console_template'] = array(
|
||||||
|
'active' => false,
|
||||||
|
'text' => '<a href="'.$url_visual_console_template.'">' .
|
||||||
|
html_print_image ("images/templates.png", true, array ("title" => __('Visual Console Template'))) .'</a>'
|
||||||
|
);
|
||||||
|
|
||||||
|
$buttons['visual_console_template_wizard'] = array(
|
||||||
|
'active' => false,
|
||||||
|
'text' => '<a href="'.$url_visual_console_template_wizard.'">' .
|
||||||
|
html_print_image ("images/wand.png", true, array ("title" => __('Visual Console Template Wizard'))) .'</a>'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$is_metaconsole) {
|
||||||
ui_print_page_header(
|
ui_print_page_header(
|
||||||
__('Reporting') .' » ' . __('Visual Console'),
|
__('Reporting') .' » ' . __('Visual Console'),
|
||||||
"images/op_reporting.png", false, "map_builder", false, $buttons);
|
"images/op_reporting.png",
|
||||||
|
false,
|
||||||
|
"map_builder",
|
||||||
|
false,
|
||||||
|
$buttons
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
ui_meta_print_header(
|
||||||
|
__('Visual console') . " » " . $visualConsoleName, "",
|
||||||
|
$buttons);
|
||||||
}
|
}
|
||||||
|
|
||||||
$id_layout = (int) get_parameter ('id_layout');
|
$id_layout = (int) get_parameter ('id_layout');
|
||||||
|
@ -21,6 +21,9 @@ $vconsoles_read = check_acl ($config['id_user'], 0, "VR");
|
|||||||
$vconsoles_write = check_acl ($config['id_user'], 0, "VW");
|
$vconsoles_write = check_acl ($config['id_user'], 0, "VW");
|
||||||
$vconsoles_manage = check_acl ($config['id_user'], 0, "VM");
|
$vconsoles_manage = check_acl ($config['id_user'], 0, "VM");
|
||||||
|
|
||||||
|
$is_enterprise = enterprise_include_once('include/functions_policies.php');
|
||||||
|
$is_metaconsole = is_metaconsole();
|
||||||
|
|
||||||
if (!$vconsoles_read && !$vconsoles_write && !$vconsoles_manage) {
|
if (!$vconsoles_read && !$vconsoles_write && !$vconsoles_manage) {
|
||||||
db_pandora_audit("ACL Violation",
|
db_pandora_audit("ACL Violation",
|
||||||
"Trying to access map builder");
|
"Trying to access map builder");
|
||||||
@ -28,15 +31,55 @@ if (!$vconsoles_read && !$vconsoles_write && !$vconsoles_manage) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$buttons['map_builder'] = array('active' => false,
|
if(!$is_metaconsole){
|
||||||
'text' => '<a href="index.php?sec=network&sec2=godmode/reporting/map_builder">' .
|
$url_visual_console = 'index.php?sec=network&sec2=godmode/reporting/map_builder';
|
||||||
html_print_image ("images/visual_console.png", true, array ("title" => __('Visual Console'))) .'</a>');
|
$url_visual_console_favorite = 'index.php?sec=network&sec2=godmode/reporting/visual_console_favorite';
|
||||||
|
$url_visual_console_template = 'index.php?sec=network&sec2=enterprise/godmode/reporting/visual_console_template';
|
||||||
|
$url_visual_console_template_wizard = 'index.php?sec=network&sec2=enterprise/godmode/reporting/visual_console_template_wizard';
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$url_visual_console = 'index.php?sec=screen&sec2=screens/screens&action=visualmap';
|
||||||
|
$url_visual_console_favorite = 'index.php?sec=screen&sec2=screens/screens&action=visualmap_favorite';
|
||||||
|
$url_visual_console_template = 'index.php?sec=screen&sec2=screens/screens&action=visualmap_template';
|
||||||
|
$url_visual_console_template_wizard = 'index.php?sec=screen&sec2=screens/screens&action=visualmap_wizard';
|
||||||
|
}
|
||||||
|
|
||||||
if (!defined('METACONSOLE')) {
|
$buttons['visual_console'] = array(
|
||||||
|
'active' => false,
|
||||||
|
'text' => '<a href="'.$url_visual_console.'">' .
|
||||||
|
html_print_image ("images/visual_console.png", true, array ("title" => __('Visual Console List'))) .'</a>'
|
||||||
|
);
|
||||||
|
|
||||||
|
$buttons['visual_console_favorite'] = array(
|
||||||
|
'active' => true,
|
||||||
|
'text' => '<a href="'.$url_visual_console_favorite.'">' .
|
||||||
|
html_print_image ("images/list.png", true, array ("title" => __('Visual Favourite Console'))) .'</a>'
|
||||||
|
);
|
||||||
|
|
||||||
|
if($is_enterprise){
|
||||||
|
$buttons['visual_console_template'] = array(
|
||||||
|
'active' => false,
|
||||||
|
'text' => '<a href="'.$url_visual_console_template.'">' .
|
||||||
|
html_print_image ("images/templates.png", true, array ("title" => __('Visual Console Template'))) .'</a>'
|
||||||
|
);
|
||||||
|
|
||||||
|
$buttons['visual_console_template_wizard'] = array(
|
||||||
|
'active' => false,
|
||||||
|
'text' => '<a href="'.$url_visual_console_template_wizard.'">' .
|
||||||
|
html_print_image ("images/wand.png", true, array ("title" => __('Visual Console Template Wizard'))) .'</a>'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$is_metaconsole) {
|
||||||
ui_print_page_header(
|
ui_print_page_header(
|
||||||
__('Reporting') .' » ' . __('Visual Favourite Console'),
|
__('Reporting') .' » ' . __('Visual Favourite Console'),
|
||||||
"images/op_reporting.png", false, "map_builder", false, $buttons);
|
"images/op_reporting.png", false, "map_builder", false, $buttons);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
ui_meta_print_header(
|
||||||
|
__('Visual console') . " » " . $visualConsoleName, "",
|
||||||
|
$buttons);
|
||||||
|
}
|
||||||
|
|
||||||
$search = (string) get_parameter("search","");
|
$search = (string) get_parameter("search","");
|
||||||
$ag_group = (int) get_parameter("ag_group",0);
|
$ag_group = (int) get_parameter("ag_group",0);
|
||||||
@ -48,7 +91,7 @@ if(!is_metaconsole()){
|
|||||||
action='index.php?sec=network&sec2=godmode/reporting/visual_console_favorite'>";
|
action='index.php?sec=network&sec2=godmode/reporting/visual_console_favorite'>";
|
||||||
} else {
|
} else {
|
||||||
echo "<form method='post'
|
echo "<form method='post'
|
||||||
action='index.php?sec=screen&sec2=screens/screens&action=visualmap'>";
|
action='index.php?sec=screen&sec2=screens/screens&action=visualmap_favorite'>";
|
||||||
}
|
}
|
||||||
echo "<ul class='form_flex'><li class='first_elements'>";
|
echo "<ul class='form_flex'><li class='first_elements'>";
|
||||||
echo "<ul><li>";
|
echo "<ul><li>";
|
||||||
@ -104,8 +147,13 @@ echo "<div id='is_favourite'>";
|
|||||||
else{
|
else{
|
||||||
echo "<ul class='container'>";
|
echo "<ul class='container'>";
|
||||||
foreach( $favorite_array as $favorite_k => $favourite_v ){
|
foreach( $favorite_array as $favorite_k => $favourite_v ){
|
||||||
echo "<a href='index.php?sec=network&sec2=operation/visual_console/render_view&id=" . $favourite_v["id"] .
|
if($is_metaconsole){
|
||||||
"' title='Visual console". $favourite_v["name"] ."' alt='". $favourite_v["name"] ."'><li>";
|
$url = 'index.php?sec=screen&sec2=screens/screens&action=visualmap&pure=0&id_visualmap='. $favourite_v["id"];
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$url = 'index.php?sec=network&sec2=operation/visual_console/render_view&id='. $favourite_v["id"];
|
||||||
|
}
|
||||||
|
echo "<a href='". $url ."' title='Visual console". $favourite_v["name"] ."' alt='". $favourite_v["name"] ."'><li>";
|
||||||
echo "<div class='icon_img'>";
|
echo "<div class='icon_img'>";
|
||||||
echo html_print_image ("images/groups_small/" . groups_get_icon($favourite_v["id_group"]).".png",
|
echo html_print_image ("images/groups_small/" . groups_get_icon($favourite_v["id_group"]).".png",
|
||||||
true,
|
true,
|
||||||
|
@ -4087,4 +4087,5 @@ function visual_map_macro($label,$module){
|
|||||||
return $label;
|
return $label;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
@ -3246,4 +3246,55 @@ CREATE TABLE IF NOT EXISTS `tautoconfig_actions` (
|
|||||||
CONSTRAINT `tautoconfig_action_ibfk_1` FOREIGN KEY (`id_autoconfig`) REFERENCES `tautoconfig` (`id`) ON DELETE CASCADE
|
CONSTRAINT `tautoconfig_action_ibfk_1` FOREIGN KEY (`id_autoconfig`) REFERENCES `tautoconfig` (`id`) ON DELETE CASCADE
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table `tlayout_template`
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS `tlayout_template` (
|
||||||
|
`id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
|
`name` varchar(50) NOT NULL,
|
||||||
|
`id_group` INTEGER UNSIGNED NOT NULL,
|
||||||
|
`background` varchar(200) NOT NULL,
|
||||||
|
`height` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`width` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`background_color` varchar(50) NOT NULL default '#FFF',
|
||||||
|
`is_favourite` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
PRIMARY KEY(`id`)
|
||||||
|
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table `tlayout_template_data`
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS `tlayout_template_data` (
|
||||||
|
`id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
|
`id_layout_template` INTEGER UNSIGNED NOT NULL,
|
||||||
|
`pos_x` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`pos_y` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`height` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`width` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`label` TEXT,
|
||||||
|
`image` varchar(200) DEFAULT "",
|
||||||
|
`type` tinyint(1) UNSIGNED NOT NULL default 0,
|
||||||
|
`period` INTEGER UNSIGNED NOT NULL default 3600,
|
||||||
|
`module_name` text NOT NULL,
|
||||||
|
`agent_name` varchar(600) BINARY NOT NULL default '',
|
||||||
|
`id_layout_linked` INTEGER unsigned NOT NULL default '0',
|
||||||
|
`parent_item` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`enable_link` tinyint(1) UNSIGNED NOT NULL default 1,
|
||||||
|
`id_metaconsole` int(10) NOT NULL default 0,
|
||||||
|
`id_group` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`id_custom_graph` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`border_width` INTEGER UNSIGNED NOT NULL default 0,
|
||||||
|
`type_graph` varchar(50) NOT NULL default 'area',
|
||||||
|
`label_position` varchar(50) NOT NULL default 'down',
|
||||||
|
`border_color` varchar(200) DEFAULT "",
|
||||||
|
`fill_color` varchar(200) DEFAULT "",
|
||||||
|
`show_statistics` tinyint(2) NOT NULL default '0',
|
||||||
|
`id_layout_linked_weight` int(10) NOT NULL default '0',
|
||||||
|
`element_group` int(10) NOT NULL default '0',
|
||||||
|
`show_on_top` tinyint(1) NOT NULL default '0',
|
||||||
|
`clock_animation` varchar(60) NOT NULL default "analogic_1",
|
||||||
|
`time_format` varchar(60) NOT NULL default "time",
|
||||||
|
`timezone` varchar(60) NOT NULL default "Europe/Madrid",
|
||||||
|
PRIMARY KEY(`id`),
|
||||||
|
FOREIGN KEY (`id_layout_template`) REFERENCES tlayout_template(`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
@ -109,10 +109,10 @@ INSERT INTO `tconfig` (`token`, `value`) VALUES
|
|||||||
('custom_report_front_logo', 'images/pandora_logo_white.jpg'),
|
('custom_report_front_logo', 'images/pandora_logo_white.jpg'),
|
||||||
('custom_report_front_header', ''),
|
('custom_report_front_header', ''),
|
||||||
('custom_report_front_footer', ''),
|
('custom_report_front_footer', ''),
|
||||||
('MR', 18),
|
('MR', 19),
|
||||||
('identification_reminder', 1),
|
('identification_reminder', 1),
|
||||||
('identification_reminder_timestamp', 0),
|
('identification_reminder_timestamp', 0),
|
||||||
('current_package_enterprise', '725'),
|
('current_package_enterprise', '726'),
|
||||||
('post_process_custom_values', '{"0.00000038580247":"Seconds to months","0.00000165343915":"Seconds to weeks","0.00001157407407":"Seconds to days","0.01666666666667":"Seconds to minutes","0.00000000093132":"Bytes to Gigabytes","0.00000095367432":"Bytes to Megabytes","0.0009765625":"Bytes to Kilobytes","0.00000001653439":"Timeticks to weeks","0.00000011574074":"Timeticks to days"}'),
|
('post_process_custom_values', '{"0.00000038580247":"Seconds to months","0.00000165343915":"Seconds to weeks","0.00001157407407":"Seconds to days","0.01666666666667":"Seconds to minutes","0.00000000093132":"Bytes to Gigabytes","0.00000095367432":"Bytes to Megabytes","0.0009765625":"Bytes to Kilobytes","0.00000001653439":"Timeticks to weeks","0.00000011574074":"Timeticks to days"}'),
|
||||||
('custom_docs_logo', 'default_docs.png'),
|
('custom_docs_logo', 'default_docs.png'),
|
||||||
('custom_support_logo', 'default_support.png'),
|
('custom_support_logo', 'default_support.png'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user