2013-03-13 Ramon Novoa <rnovoa@artica.es>

* godmode/servers/modificar_server.php: Let an Enterprise SNMP server
	  claim back modules that were moved to the Network server.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7849 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
ramonn 2013-03-13 18:20:32 +00:00
parent b1b095e11a
commit adc0dceb05
2 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-03-13 Ramon Novoa <rnovoa@artica.es>
* godmode/servers/modificar_server.php: Let an Enterprise SNMP server
claim back modules that were moved to the Network server.
2013-03-13 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_modules.php: fixed the notices PHP.

View File

@ -55,6 +55,11 @@ if (isset($_GET["server"])) {
else {
// Header
ui_print_page_header (__('Pandora servers'), "", false, "servers", true);
// Move SNMP modules back to the enterprise server
if (isset($_GET["server_reset_snmp_enterprise"])) {
db_process_sql ("UPDATE tagente_estado SET last_error=0 WHERE last_error=1");
}
if (isset ($_GET["delete"])) {
$id_server = get_parameter_get ("server_del");
@ -161,7 +166,16 @@ else {
//Only Pandora Administrator can delete servers
if (check_acl ($config["id_user"], 0, "PM")) {
$data[8] = '<a href="index.php?sec=gservers&sec2=godmode/servers/modificar_server&server='.$server["id_server"].'">';
$data[8] = '';
if ($server['type'] == 'enterprise snmp') {
$data[8] .= '<a href="index.php?sec=gservers&sec2=godmode/servers/modificar_server&server_reset_snmp_enterprise='.$server["id_server"].'">';
$data[8] .= html_print_image ('images/target.png', true,
array('title' => __('Claim back SNMP modules')));
$data[8] .= '</a>&nbsp;&nbsp;';
}
$data[8] .= '<a href="index.php?sec=gservers&sec2=godmode/servers/modificar_server&server='.$server["id_server"].'">';
$data[8] .= html_print_image ('images/config.png', true,
array('title' => __('Edit')));
$data[8] .= '</a>';