2013-07-31 Sergio Martin <sergio.martin@artica.es>
* include/functions_agents.php: Fix a if condition broken for a previous test code * godmode/groups/group_list.php: Fix propagate ACL field when create group * godmode/groups/configure_group.php: Fixed pure parameter * godmode/users/configure_user.php: Fixed autohidding of fields in user edition due return avoiding javascript code git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8606 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
af0a970cea
commit
77b944b6e1
|
@ -1,3 +1,16 @@
|
||||||
|
2013-07-31 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* include/functions_agents.php: Fix a if condition
|
||||||
|
broken for a previous test code
|
||||||
|
|
||||||
|
* godmode/groups/group_list.php: Fix propagate ACL
|
||||||
|
field when create group
|
||||||
|
|
||||||
|
* godmode/groups/configure_group.php: Fixed pure parameter
|
||||||
|
|
||||||
|
* godmode/users/configure_user.php: Fixed autohidding of fields in
|
||||||
|
user edition due return avoiding javascript code
|
||||||
|
|
||||||
2013-07-31 Miguel de Dios <miguel.dedios@artica.es>
|
2013-07-31 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* operation/agentes/networkmap.php: added dinamic tab.
|
* operation/agentes/networkmap.php: added dinamic tab.
|
||||||
|
|
|
@ -153,7 +153,7 @@ if ($isFunctionSkins !== ENTERPRISE_NOT_HOOK) {
|
||||||
$table->data[9][1] = skins_print_select($config["id_user"], 'skin', $skin, '', __('None'), 0, true);
|
$table->data[9][1] = skins_print_select($config["id_user"], 'skin', $skin, '', __('None'), 0, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<form name="grupo" method="post" action="index.php?sec=gagente&sec2=godmode/groups/group_list">';
|
echo '<form name="grupo" method="post" action="index.php?sec=gagente&sec2=godmode/groups/group_list&pure=' . $config['pure'] . '">';
|
||||||
html_print_table ($table);
|
html_print_table ($table);
|
||||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||||
if ($id_group) {
|
if ($id_group) {
|
||||||
|
@ -186,7 +186,7 @@ function icon_changed () {
|
||||||
jQuery.ajax ({
|
jQuery.ajax ({
|
||||||
data: params.join ("&"),
|
data: params.join ("&"),
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: action="ajax.php",
|
url: action="<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
||||||
async: false,
|
async: false,
|
||||||
timeout: 10000,
|
timeout: 10000,
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
|
@ -206,7 +206,7 @@ function parent_changed () {
|
||||||
jQuery.ajax ({
|
jQuery.ajax ({
|
||||||
data: inputs.join ("&"),
|
data: inputs.join ("&"),
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
url: action="ajax.php",
|
url: action="<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
||||||
timeout: 10000,
|
timeout: 10000,
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
|
@ -225,7 +225,7 @@ function parent_changed () {
|
||||||
jQuery.ajax ({
|
jQuery.ajax ({
|
||||||
data: params.join ("&"),
|
data: params.join ("&"),
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: action="ajax.php",
|
url: action="<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
||||||
async: false,
|
async: false,
|
||||||
timeout: 10000,
|
timeout: 10000,
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
|
|
|
@ -137,20 +137,21 @@ if (($create_group) && (check_acl($config['id_user'], 0, "PM"))) {
|
||||||
$contact = (string) get_parameter ('contact');
|
$contact = (string) get_parameter ('contact');
|
||||||
$other = (string) get_parameter ('other');
|
$other = (string) get_parameter ('other');
|
||||||
$check = db_get_value('nombre', 'tgrupo', 'nombre', $name);
|
$check = db_get_value('nombre', 'tgrupo', 'nombre', $name);
|
||||||
|
$propagate = (bool) get_parameter('propagate');
|
||||||
|
|
||||||
/*Check if name field is empty*/
|
/*Check if name field is empty*/
|
||||||
if ($name != "") {
|
if ($name != "") {
|
||||||
if (!$check) {
|
if (!$check) {
|
||||||
$values = array(
|
$values = array(
|
||||||
'nombre' => $name,
|
'nombre' => $name,
|
||||||
'icon' => substr ($icon, 0, -4),
|
'icon' => empty($icon) ? '' : substr ($icon, 0, -4),
|
||||||
'parent' => $id_parent,
|
'parent' => $id_parent,
|
||||||
'disabled' => $alerts_disabled,
|
'disabled' => $alerts_disabled,
|
||||||
'custom_id' => $custom_id,
|
'custom_id' => $custom_id,
|
||||||
'id_skin' => $skin,
|
'id_skin' => $skin,
|
||||||
'description' => $description,
|
'description' => $description,
|
||||||
'contact' => $contact,
|
'contact' => $contact,
|
||||||
|
'propagate' => $propagate,
|
||||||
'other' => $other
|
'other' => $other
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -194,7 +195,7 @@ if ($update_group) {
|
||||||
$sql = sprintf ('UPDATE tgrupo SET nombre = "%s",
|
$sql = sprintf ('UPDATE tgrupo SET nombre = "%s",
|
||||||
icon = "%s", disabled = %d, parent = %d, custom_id = "%s", propagate = %d, id_skin = %d, description = "%s", contact = "%s", other = "%s"
|
icon = "%s", disabled = %d, parent = %d, custom_id = "%s", propagate = %d, id_skin = %d, description = "%s", contact = "%s", other = "%s"
|
||||||
WHERE id_grupo = %d',
|
WHERE id_grupo = %d',
|
||||||
$name, substr ($icon, 0, -4), !$alerts_enabled, $id_parent, $custom_id, $propagate, $skin, $description, $contact, $other, $id_group);
|
$name, empty($icon) ? '' : substr ($icon, 0, -4), !$alerts_enabled, $id_parent, $custom_id, $propagate, $skin, $description, $contact, $other, $id_group);
|
||||||
break;
|
break;
|
||||||
case "postgresql":
|
case "postgresql":
|
||||||
case "oracle":
|
case "oracle":
|
||||||
|
|
|
@ -547,9 +547,7 @@ echo '</form>';
|
||||||
echo '<br />';
|
echo '<br />';
|
||||||
|
|
||||||
/* Don't show anything else if we're creating an user */
|
/* Don't show anything else if we're creating an user */
|
||||||
if (empty ($id) || $new_user)
|
if (!empty ($id) && !$new_user) {
|
||||||
return;
|
|
||||||
|
|
||||||
echo '<h4>'. __('Profiles/Groups assigned to this user') . '</h4>';
|
echo '<h4>'. __('Profiles/Groups assigned to this user') . '</h4>';
|
||||||
|
|
||||||
$table->width = '98%';
|
$table->width = '98%';
|
||||||
|
@ -643,6 +641,8 @@ array_push ($table->data, $data);
|
||||||
html_print_table ($table);
|
html_print_table ($table);
|
||||||
unset ($table);
|
unset ($table);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
enterprise_hook('close_meta_frame');
|
enterprise_hook('close_meta_frame');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -167,7 +167,7 @@ function agents_get_alerts_simple ($id_agent = false, $filter = '', $options = f
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there are any errors add imposible condition
|
// If there are any errors add imposible condition
|
||||||
if(in_array($where_tags, array(ERR_WRONG_PARAMETERS, ERR_ACL)) || TRUE) {
|
if(in_array($where_tags, array(ERR_WRONG_PARAMETERS, ERR_ACL))) {
|
||||||
$subQuery .= ' AND 1 = 0';
|
$subQuery .= ' AND 1 = 0';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue