mv enterprise templates visual console
This commit is contained in:
parent
4968ff3878
commit
d5f0429390
|
@ -22,6 +22,8 @@ $vconsoles_read = check_acl ($config['id_user'], 0, "VR");
|
|||
$vconsoles_write = check_acl ($config['id_user'], 0, "VW");
|
||||
$vconsoles_manage = check_acl ($config['id_user'], 0, "VM");
|
||||
|
||||
$is_enterprise = enterprise_include_once('include/functions_policies.php');
|
||||
|
||||
if (!$vconsoles_read && !$vconsoles_write && !$vconsoles_manage) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
"Trying to access map builder");
|
||||
|
@ -46,17 +48,19 @@ $buttons['visual_console_favorite'] = array(
|
|||
html_print_image ("images/list.png", true, array ("title" => __('Visual Favourite Console'))) .'</a>'
|
||||
);
|
||||
|
||||
$buttons['visual_console_template'] = array(
|
||||
'active' => false,
|
||||
'text' => '<a href="index.php?sec=network&sec2=godmode/reporting/visual_console_template">' .
|
||||
html_print_image ("images/templates.png", true, array ("title" => __('Visual Console Template'))) .'</a>'
|
||||
);
|
||||
if($is_enterprise){
|
||||
$buttons['visual_console_template'] = array(
|
||||
'active' => false,
|
||||
'text' => '<a href="index.php?sec=network&sec2=godmode/reporting/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="index.php?sec=network&sec2=godmode/reporting/visual_console_template_wizard">' .
|
||||
html_print_image ("images/wand.png", true, array ("title" => __('Visual Console Template Wizard'))) .'</a>'
|
||||
);
|
||||
$buttons['visual_console_template_wizard'] = array(
|
||||
'active' => false,
|
||||
'text' => '<a href="index.php?sec=network&sec2=godmode/reporting/visual_console_template_wizard">' .
|
||||
html_print_image ("images/wand.png", true, array ("title" => __('Visual Console Template Wizard'))) .'</a>'
|
||||
);
|
||||
}
|
||||
|
||||
if (!defined('METACONSOLE')) {
|
||||
ui_print_page_header(
|
||||
|
@ -87,7 +91,7 @@ if ($delete_layout || $copy_layout) {
|
|||
require ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
$group_id = db_get_value("id_group", "tlayout", "id", $id_layout);
|
||||
if ($group_id === false) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
|
|
|
@ -17,10 +17,12 @@ global $config;
|
|||
require_once ($config['homedir'] . '/include/functions_visual_map.php');
|
||||
|
||||
// ACL for the general permission
|
||||
$vconsoles_read = check_acl ($config['id_user'], 0, "VR");
|
||||
$vconsoles_write = check_acl ($config['id_user'], 0, "VW");
|
||||
$vconsoles_read = check_acl ($config['id_user'], 0, "VR");
|
||||
$vconsoles_write = check_acl ($config['id_user'], 0, "VW");
|
||||
$vconsoles_manage = check_acl ($config['id_user'], 0, "VM");
|
||||
|
||||
$is_enterprise = enterprise_include_once('include/functions_policies.php');
|
||||
|
||||
if (!$vconsoles_read && !$vconsoles_write && !$vconsoles_manage) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
"Trying to access map builder");
|
||||
|
@ -40,17 +42,19 @@ $buttons['visual_console_favorite'] = array(
|
|||
html_print_image ("images/list.png", true, array ("title" => __('Visual Favourite Console'))) .'</a>'
|
||||
);
|
||||
|
||||
$buttons['visual_console_template'] = array(
|
||||
'active' => false,
|
||||
'text' => '<a href="index.php?sec=network&sec2=godmode/reporting/visual_console_template">' .
|
||||
html_print_image ("images/templates.png", true, array ("title" => __('Visual Console Template'))) .'</a>'
|
||||
);
|
||||
if($is_enterprise){
|
||||
$buttons['visual_console_template'] = array(
|
||||
'active' => false,
|
||||
'text' => '<a href="index.php?sec=network&sec2=godmode/reporting/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="index.php?sec=network&sec2=godmode/reporting/visual_console_template_wizard">' .
|
||||
html_print_image ("images/wand.png", true, array ("title" => __('Visual Console Template Wizard'))) .'</a>'
|
||||
);
|
||||
$buttons['visual_console_template_wizard'] = array(
|
||||
'active' => false,
|
||||
'text' => '<a href="index.php?sec=network&sec2=godmode/reporting/visual_console_template_wizard">' .
|
||||
html_print_image ("images/wand.png", true, array ("title" => __('Visual Console Template Wizard'))) .'</a>'
|
||||
);
|
||||
}
|
||||
|
||||
if (!defined('METACONSOLE')) {
|
||||
ui_print_page_header(
|
||||
|
|
|
@ -24,6 +24,8 @@ $vconsoles_read = check_acl ($config['id_user'], 0, "VR");
|
|||
$vconsoles_write = check_acl ($config['id_user'], 0, "VW");
|
||||
$vconsoles_manage = check_acl ($config['id_user'], 0, "VM");
|
||||
|
||||
$is_enterprise = enterprise_include_once('include/functions_policies.php');
|
||||
|
||||
if (!$vconsoles_read && !$vconsoles_write && !$vconsoles_manage) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
"Trying to access map builder");
|
||||
|
@ -48,17 +50,19 @@ $buttons['visual_console_favorite'] = array(
|
|||
html_print_image ("images/list.png", true, array ("title" => __('Visual Favourite Console'))) .'</a>'
|
||||
);
|
||||
|
||||
$buttons['visual_console_template'] = array(
|
||||
'active' => true,
|
||||
'text' => '<a href="index.php?sec=network&sec2=godmode/reporting/visual_console_template">' .
|
||||
html_print_image ("images/templates.png", true, array ("title" => __('Visual Console Template'))) .'</a>'
|
||||
);
|
||||
if($is_enterprise){
|
||||
$buttons['visual_console_template'] = array(
|
||||
'active' => true,
|
||||
'text' => '<a href="index.php?sec=network&sec2=enterprise/godmode/reporting/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="index.php?sec=network&sec2=godmode/reporting/visual_console_template_wizard">' .
|
||||
html_print_image ("images/wand.png", true, array ("title" => __('Visual Console Template Wizard'))) .'</a>'
|
||||
);
|
||||
$buttons['visual_console_template_wizard'] = array(
|
||||
'active' => false,
|
||||
'text' => '<a href="index.php?sec=network&sec2=enterprise/godmode/reporting/visual_console_template_wizard">' .
|
||||
html_print_image ("images/wand.png", true, array ("title" => __('Visual Console Template Wizard'))) .'</a>'
|
||||
);
|
||||
}
|
||||
|
||||
if (!defined('METACONSOLE')) {
|
||||
ui_print_page_header(
|
||||
|
@ -178,7 +182,7 @@ if($array_template_visual_console && is_array($array_template_visual_console)){
|
|||
$data[0] = $value['name'];
|
||||
$data[1] = $value['id_group'];
|
||||
$data[2] = $value['is_favourite'];
|
||||
$data[3] = '<a class="delete_visualmap" href="index.php?sec=network&sec2=godmode/reporting/visual_console_template&action=delete_template&id_layout='.$value['id'].'">'.html_print_image ("images/cross.png", true).'</a>';
|
||||
$data[3] = '<a class="delete_visualmap" href="index.php?sec=network&sec2=enterprise/godmode/reporting/visual_console_template&action=delete_template&id_layout='.$value['id'].'">'.html_print_image ("images/cross.png", true).'</a>';
|
||||
array_push ($table->data, $data);
|
||||
}
|
||||
|
||||
|
|
|
@ -19,10 +19,12 @@ require_once ($config['homedir'] . '/include/functions_visual_map.php');
|
|||
enterprise_include_once('/include/functions_visual_map.php');
|
||||
|
||||
// ACL for the general permission
|
||||
$vconsoles_read = check_acl ($config['id_user'], 0, "VR");
|
||||
$vconsoles_write = check_acl ($config['id_user'], 0, "VW");
|
||||
$vconsoles_read = check_acl ($config['id_user'], 0, "VR");
|
||||
$vconsoles_write = check_acl ($config['id_user'], 0, "VW");
|
||||
$vconsoles_manage = check_acl ($config['id_user'], 0, "VM");
|
||||
|
||||
$is_enterprise = enterprise_include_once('include/functions_policies.php');
|
||||
|
||||
if (!$vconsoles_read && !$vconsoles_write && !$vconsoles_manage) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
"Trying to access map builder");
|
||||
|
@ -47,17 +49,19 @@ $buttons['visual_console_favorite'] = array(
|
|||
html_print_image ("images/list.png", true, array ("title" => __('Visual Favourite Console'))) .'</a>'
|
||||
);
|
||||
|
||||
$buttons['visual_console_template'] = array(
|
||||
'active' => false,
|
||||
'text' => '<a href="index.php?sec=network&sec2=godmode/reporting/visual_console_template">' .
|
||||
html_print_image ("images/templates.png", true, array ("title" => __('Visual Console Template'))) .'</a>'
|
||||
);
|
||||
if($is_enterprise){
|
||||
$buttons['visual_console_template'] = array(
|
||||
'active' => false,
|
||||
'text' => '<a href="index.php?sec=network&sec2=godmode/reporting/visual_console_template">' .
|
||||
html_print_image ("images/templates.png", true, array ("title" => __('Visual Console Template'))) .'</a>'
|
||||
);
|
||||
|
||||
$buttons['visual_console_template_wizard'] = array(
|
||||
'active' => true,
|
||||
'text' => '<a href="index.php?sec=network&sec2=godmode/reporting/visual_console_template_wizard">' .
|
||||
html_print_image ("images/wand.png", true, array ("title" => __('Visual Console Template Wizard'))) .'</a>'
|
||||
);
|
||||
$buttons['visual_console_template_wizard'] = array(
|
||||
'active' => true,
|
||||
'text' => '<a href="index.php?sec=network&sec2=godmode/reporting/visual_console_template_wizard">' .
|
||||
html_print_image ("images/wand.png", true, array ("title" => __('Visual Console Template Wizard'))) .'</a>'
|
||||
);
|
||||
}
|
||||
|
||||
if (!defined('METACONSOLE')) {
|
||||
ui_print_page_header(
|
||||
|
|
Loading…
Reference in New Issue