| | |
| | | |
| | | if ($rename && $REMOTE_REQUEST) |
| | | { |
| | | $commands = sprintf("this.replace_folder_row('%s','%s','%s');", |
| | | rep_specialchars_output($_GET['_folder_oldname'], 'js'), |
| | | $commands = sprintf("this.replace_folder_row('%s','%s','%s');\n", |
| | | rep_specialchars_output(get_input_value('_folder_oldname', RCUBE_INPUT_GET), 'js'), |
| | | rep_specialchars_output($rename, 'js'), |
| | | rep_specialchars_output(rcube_charset_convert($rename, 'UTF-7'), 'js')); |
| | | |
| | | $commands .= "this.reset_folder_rename();\n"; |
| | | |
| | | rcube_remote_response($commands); |
| | | } |
| | |
| | | $subscribed = in_array($folder, $a_subscribed); |
| | | $protected = ($CONFIG['protect_default_folders'] == TRUE && in_array($folder,$CONFIG['default_imap_folders'])); |
| | | $zebra_class = $i%2 ? 'even' : 'odd'; |
| | | if (in_array($folder, $CONFIG['default_imap_folders'])) |
| | | $folder = rcube_label(strtolower($folder)); |
| | | $folder_js = rep_specialchars_output($folder, 'js'); |
| | | $folder_js_enc = rep_specialchars_output(rcube_charset_convert($folder, 'UTF-7'), 'js'); |
| | | |