72 lines
2.1 KiB
PHP
72 lines
2.1 KiB
PHP
|
<?php
|
||
|
|
||
|
// Pandora FMS - http://pandorafms.com
|
||
|
// ==================================================
|
||
|
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
|
||
|
// 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 for 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.
|
||
|
|
||
|
|
||
|
// Load global vars
|
||
|
global $config;
|
||
|
|
||
|
check_login ();
|
||
|
|
||
|
// ACL for the general permission
|
||
|
$networkmaps_read = check_acl ($config['id_user'], 0, "MR");
|
||
|
$networkmaps_write = check_acl ($config['id_user'], 0, "MW");
|
||
|
$networkmaps_manage = check_acl ($config['id_user'], 0, "MM");
|
||
|
|
||
|
if (!$networkmaps_read && !$networkmaps_write && !$networkmaps_manage) {
|
||
|
db_pandora_audit("ACL Violation",
|
||
|
"Trying to access Networkmap builder");
|
||
|
if (is_ajax()) {
|
||
|
return;
|
||
|
}
|
||
|
else {
|
||
|
include ("general/noaccess.php");
|
||
|
exit;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$id = (int)get_parameter('id', 0);
|
||
|
|
||
|
require_once('include/functions_migration.php');
|
||
|
|
||
|
$buttons['list'] = array('active' => false,
|
||
|
'text' => '<a href="index.php?sec=network&sec2=operation/maps/networkmap_list">' .
|
||
|
html_print_image("images/list.png", true,
|
||
|
array ('title' => __('List of networkmaps'))) .
|
||
|
'</a>');
|
||
|
$buttons['edit'] = array('active' => false,
|
||
|
'text' => '<a href="index.php?sec=maps&sec2=operation/maps/networkmap_editor&edit_networkmap=1&id_networkmap=' . $id . '">' .
|
||
|
html_print_image("images/cog.png", true,
|
||
|
array ('title' => __('Edit networkmap'))) .
|
||
|
'</a>');
|
||
|
$buttons['networkmap'] = array('active' => true,
|
||
|
'text' => '<a href="index.php?sec=network&sec2=operation/maps/networkmap&id=' . $id . '">' .
|
||
|
html_print_image("images/op_network.png", true,
|
||
|
array ('title' => __('View networkmap'))) .
|
||
|
'</a>');
|
||
|
|
||
|
ui_print_page_header(
|
||
|
__('Network map'),
|
||
|
"images/op_network.png",
|
||
|
false,
|
||
|
"network_map",
|
||
|
false,
|
||
|
$buttons);
|
||
|
|
||
|
?>
|
||
|
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
</script>
|