2013-06-25 Miguel de Dios <miguel.dedios@artica.es>

* operation/users/user_edit.php: merge the code for made more
	easy the merges from the branch.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8398 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-06-25 11:20:13 +00:00
parent 53f98c65b3
commit c783d677cd
2 changed files with 15 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2013-06-25 Miguel de Dios <miguel.dedios@artica.es>
* operation/users/user_edit.php: merge the code for made more
easy the merges from the branch.
2013-06-25 Miguel de Dios <miguel.dedios@artica.es> 2013-06-25 Miguel de Dios <miguel.dedios@artica.es>
* extensions/vnc_view.php: added the changes from the branch of * extensions/vnc_view.php: added the changes from the branch of

View File

@ -25,7 +25,7 @@ include_once ($config['homedir'] . '/include/functions_groups.php');
include_once ($config['homedir'] . '/include/functions_visual_map.php'); include_once ($config['homedir'] . '/include/functions_visual_map.php');
$meta = false; $meta = false;
if(enterprise_installed() && defined("METACONSOLE")) { if (enterprise_installed() && defined("METACONSOLE")) {
$meta = true; $meta = true;
} }
@ -102,7 +102,7 @@ if (isset ($_GET["modified"]) && !$view_mode) {
$upd_info["id_skin"] = get_parameter ("skin", $user_info["id_skin"]); $upd_info["id_skin"] = get_parameter ("skin", $user_info["id_skin"]);
$upd_info["block_size"] = get_parameter ("block_size", $config["block_size"]); $upd_info["block_size"] = get_parameter ("block_size", $config["block_size"]);
$default_block_size = get_parameter ("default_block_size", 0); $default_block_size = get_parameter ("default_block_size", 0);
if($default_block_size) { if ($default_block_size) {
$upd_info["block_size"] = 0; $upd_info["block_size"] = 0;
} }
@ -116,6 +116,7 @@ if (isset ($_GET["modified"]) && !$view_mode) {
$is_admin = db_get_value('is_admin', 'tusuario', 'id_user', $id); $is_admin = db_get_value('is_admin', 'tusuario', 'id_user', $id);
$section = io_safe_output($upd_info["section"]); $section = io_safe_output($upd_info["section"]);
if (($section == 'Event list') || ($section == 'Group view') || ($section == 'Alert detail') || ($section == 'Tactical view') || ($section == 'Default')) { if (($section == 'Event list') || ($section == 'Group view') || ($section == 'Alert detail') || ($section == 'Tactical view') || ($section == 'Default')) {
$upd_info["data_section"] = ''; $upd_info["data_section"] = '';
} }
@ -126,7 +127,7 @@ if (isset ($_GET["modified"]) && !$view_mode) {
$upd_info["data_section"] = $visual_console; $upd_info["data_section"] = $visual_console;
} }
if ( !empty ($password_new)) { if (!empty ($password_new)) {
if ($config["user_can_update_password"] && $password_confirm == $password_new) { if ($config["user_can_update_password"] && $password_confirm == $password_new) {
if ((!$is_admin || $config['enable_pass_policy_admin']) && $config['enable_pass_policy']) { if ((!$is_admin || $config['enable_pass_policy_admin']) && $config['enable_pass_policy']) {
$pass_ok = login_validate_pass($password_new, $id, true); $pass_ok = login_validate_pass($password_new, $id, true);
@ -259,6 +260,7 @@ $data[1] .= '<br>' . html_print_select($values, 'flash_charts', $user_info["flas
$data[2] = __('Language'); $data[2] = __('Language');
$data[2] .= '<br>' . html_print_select_from_sql ('SELECT id_language, name FROM tlanguage', $data[2] .= '<br>' . html_print_select_from_sql ('SELECT id_language, name FROM tlanguage',
'language', $user_info["language"], '', __('Default'), 'default', true); 'language', $user_info["language"], '', __('Default'), 'default', true);
$table->rowclass[] = ''; $table->rowclass[] = '';
$table->rowstyle[] = 'font-weight: bold;'; $table->rowstyle[] = 'font-weight: bold;';
$table->data[] = $data; $table->data[] = $data;
@ -379,18 +381,20 @@ $(document).ready (function () {
}); });
function check_default_block_size() { function check_default_block_size() {
if($("#checkbox-default_block_size").is(':checked')) { if ($("#checkbox-default_block_size").is(':checked')) {
$("#text-block_size").attr('disabled', true); $("#text-block_size").attr('disabled', true);
} }
else { else {
$("#text-block_size").removeAttr('disabled'); $("#text-block_size").removeAttr('disabled');
} }
} }
show_data_section(); show_data_section();
}); });
function show_data_section () { function show_data_section () {
section=$("#section").val(); section = $("#section").val();
switch (section) { switch (section) {
case <?php echo "'" . __('Dashboard') . "'"; ?>: case <?php echo "'" . __('Dashboard') . "'"; ?>:
$("#text-data_section").css("display", "none"); $("#text-data_section").css("display", "none");