diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 940038f06a..4136d0fb00 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,14 @@ +2008-10-31 Ramon Novoa + + * operation/snmpconsole/snmp_alert.php: Moved to + godmode/snmpconsole/snmp_alert.php. + + * godmode/snmpconsole: Added to repository. SNMP console godmode + subdirectory. + + * godmode/menu.php, + operation/menu.php: Updated menus to reflect the change. + 2008-10-31 Ramon Novoa * include/styles/god.css, diff --git a/pandora_console/godmode/menu.php b/pandora_console/godmode/menu.php index 7a60926b80..88cfaf3af5 100644 --- a/pandora_console/godmode/menu.php +++ b/pandora_console/godmode/menu.php @@ -127,6 +127,29 @@ if (give_acl ($config['id_user'], 0, "UM")) { echo ''; } +// SNMP console +if (give_acl($config['id_user'], 0, "AW")) { + if ($sec == "gsnmpconsole"){ + echo "
"; + } else + echo ""; + + // SNMP Console alert (submenu) + if ($sec == "gsnmpconsole") { + if ($sec2 == "godmode/snmpconsole/snmp_alert") { + echo "
"; + } else { + echo "
"; + } + echo "
"; + } + + enterprise_hook ('snmpconsole_submenu'); +} + + // Reporting if (give_acl ($config['id_user'], 0, "PM")) { echo '
'; diff --git a/pandora_console/operation/snmpconsole/snmp_alert.php b/pandora_console/godmode/snmpconsole/snmp_alert.php similarity index 96% rename from pandora_console/operation/snmpconsole/snmp_alert.php rename to pandora_console/godmode/snmpconsole/snmp_alert.php index 72ae7057e1..d7b8f17a0a 100644 --- a/pandora_console/operation/snmpconsole/snmp_alert.php +++ b/pandora_console/godmode/snmpconsole/snmp_alert.php @@ -140,7 +140,7 @@ if (isset ($_GET["update_alert"])) { } else { echo "

Pandora SNMP > ".__('Create alert')."

"; } - echo '
'; + echo ''; echo ''; // Alert type (e-mail, event etc.) @@ -325,9 +325,9 @@ if (isset ($_GET["update_alert"])) { $data[7] = __('Never'); } - $data[8] = ' + $data[8] = ' '.__('Delete').'  - + '.__('Update').''; $idx = count ($table->data); //The current index of the table is 1 less than the count of table data so we count before adding to table->data array_push ($table->data, $data); @@ -359,7 +359,7 @@ if (isset ($_GET["update_alert"])) { unset ($table); echo '
'; - echo ''; + echo ''; print_submit_button (__('Create'), "add_alert", false, 'class="sub next"'); echo "
"; diff --git a/pandora_console/operation/menu.php b/pandora_console/operation/menu.php index 9d8fb0aded..1fdc9add4e 100644 --- a/pandora_console/operation/menu.php +++ b/pandora_console/operation/menu.php @@ -234,18 +234,6 @@ if (give_acl ($config['id_user'], 0, "AR")) { echo ''; - if (give_acl($config['id_user'], 0, "AW")) { - // SNMP Console alert (submenu) - if ($sec == "snmpconsole") { - if ($sec2 == "operation/snmpconsole/snmp_alert") { - echo "