ask an email if an auditor wants to restore

This commit is contained in:
SJ 2013-12-19 13:23:51 +01:00
parent 56d046a781
commit 6b227e6509
10 changed files with 485 additions and 475 deletions

View File

@ -14,6 +14,7 @@ class ControllerMessageBulkrestore extends Controller {
$db = Registry::get('db');
$imap_ok = 0;
$email = '';
$this->load->model('search/search');
$this->load->model('search/message');
@ -31,6 +32,7 @@ class ControllerMessageBulkrestore extends Controller {
$download = $this->request->post['download'];
if(isset($this->request->post['email'])) { $email = $this->request->post['email']; }
if($download == 1) {
$this->model_message_restore->download_files_as_zip($idlist);
@ -63,8 +65,13 @@ class ControllerMessageBulkrestore extends Controller {
/* send the email to all the recipients of the original email if you are an auditor user */
if(Registry::get('auditor_user') == 1) {
if($email) {
$rcpt[0] = $email;
}
else {
$rcpt = $this->model_search_search->get_message_recipients($id);
}
}
else {
array_push($rcpt, $session->get("email"));
}

View File

@ -470,5 +470,6 @@ $_['text_invalid_pin_code'] = "Invalid pin code";
$_['text_qr_code'] = "QR";
$_['text_refresh_qr_code'] = "Refresh QR code";
$_['text_print_message'] = "Print";
$_['text_forward_selected_emails_to'] = "Forward selected emails to";
?>

View File

@ -140,6 +140,7 @@ $_['text_failed_to_update'] = "Failed to update";
$_['text_first'] = "First";
$_['text_folder'] = "Folder";
$_['text_folders'] = "Folders";
$_['text_forward_selected_emails_to'] = "Forward selected emails to";
$_['text_from'] = "From";
$_['text_from_domain'] = "From domain";
@ -248,7 +249,7 @@ $_['text_password'] = "Password";
$_['text_password_again'] = "Password again";
$_['text_password_changed'] = "Password changed";
$_['text_password_mismatch'] = "Password mismatch";
$_['text_page_length'] = "Page length";
$_['text_page_length'] = "Results per page";
$_['text_periodic_purge'] = "Periodic purge";
$_['text_policy'] = "Policy";
$_['text_policy_group'] = "Policy group";

View File

@ -469,5 +469,6 @@ $_['text_invalid_pin_code'] = "Invalid pin code";
$_['text_qr_code'] = "QR";
$_['text_refresh_qr_code'] = "Refresh QR code";
$_['text_print_message'] = "Print";
$_['text_forward_selected_emails_to'] = "Forward selected emails to";
?>

View File

@ -141,6 +141,7 @@ $_['text_failed_to_update'] = "Nem siker
$_['text_first'] = "Első";
$_['text_folder'] = "Mappa";
$_['text_folders'] = "Mappák";
$_['text_forward_selected_emails_to'] = "Kijelölt levelek továbbítása";
$_['text_from'] = "Feladó";
$_['text_from_domain'] = "Feladó domain";
@ -249,7 +250,7 @@ $_['text_password'] = "Jelsz
$_['text_password_again'] = "Jelszó ismét";
$_['text_password_changed'] = "Jelszó megváltozott";
$_['text_password_mismatch'] = "A két jelszó nem egyezik meg";
$_['text_page_length'] = "Lap méret";
$_['text_page_length'] = "Oldalankénti találatok száma";
$_['text_periodic_purge'] = "Periódikus levéltörlés";
$_['text_policy'] = "Házirend";
$_['text_policy_group'] = "Házirend azonosító";

View File

@ -141,6 +141,7 @@ $_['text_failed_to_update'] = "Nem sikerült módosítani";
$_['text_first'] = "Első";
$_['text_folder'] = "Mappa";
$_['text_folders'] = "Mappák";
$_['text_forward_selected_emails_to'] = "Kijelölt levelek továbbítása";
$_['text_from'] = "Feladó";
$_['text_from_domain'] = "Feladó domain";
@ -249,7 +250,7 @@ $_['text_password'] = "Jelszó";
$_['text_password_again'] = "Jelszó ismét";
$_['text_password_changed'] = "Jelszó megváltozott";
$_['text_password_mismatch'] = "A két jelszó nem egyezik meg";
$_['text_page_length'] = "Lap méret";
$_['text_page_length'] = "Oldalankénti találatok száma";
$_['text_periodic_purge'] = "Periódikus levéltörlés";
$_['text_policy'] = "Házirend";
$_['text_policy_group'] = "Házirend azonosító";

View File

@ -3,11 +3,11 @@
$_['text_60_minutes'] = "60 mins";
$_['text_action'] = "Ação";
$_['text_active_incoming_queue'] = "fila activo + incoming";
$_['text_active_incoming_queue_sender'] = "fila activo + incoming queue x remetentes";
$_['text_active_incoming_queue'] = "fila ativo + incoming";
$_['text_active_incoming_queue_sender'] = "fila ativo + incoming queue x remetentes";
$_['text_ad_sync_status'] = "Status de sincronização AD";
$_['text_add'] = "Adicionar";
$_['text_add_new_email_address'] = "Novo email";
$_['text_add_new_email_address'] = "Novo e-mail";
$_['text_add_new_domain'] = "Novo domínio";
$_['text_add_new_group'] = "Adicionar grupo";
$_['text_add_new_rule'] = "Adicionar regra";
@ -16,38 +16,37 @@ $_['text_add_policy'] = "Adicionar nova política";
$_['text_administration'] = "Administração";
$_['text_admin_user'] = "Usuário admin";
$_['text_advanced'] = "Avançado";
$_['text_advanced_search'] = "Pesquisa avançada";
$_['text_advanced_search'] = "pesquisa avançada";
$_['text_all'] = "todos";
$_['text_any'] = "qualquer";
$_['text_applied'] = "Applied";
$_['text_apply_changes'] = "Apply changes";
$_['text_applied'] = "Gravado";
$_['text_apply_changes'] = "Gravar alterações";
$_['text_archive_size'] = "Tamanho do arquivo";
$_['text_archived_messages'] = "Mensagens arquivadas";
$_['text_archiving_rules'] = "Regras de não arquivamento";
$_['text_archiving_rules'] = "Regras de arquivamento";
$_['text_attachment'] = "Anexo";
$_['text_attachment_name'] = "Nome do anexo";
$_['text_attachment_size'] = "Tamanho do anexo";
$_['text_attachment_type'] = "Tipo de anexo";
$_['text_audit'] = "Auditoria";
$_['text_back'] = "Voltar";
$_['text_background_colour'] = "Background colour";
$_['text_branding_logo'] = "Branding logo";
$_['text_branding_text'] = "Branding text";
$_['text_branding_url'] = "Branding URL";
$_['text_branding_logo'] = "Logomarca";
$_['text_branding_text'] = "Site texto";
$_['text_branding_url'] = "Site URL";
$_['text_body'] = "Mensagem";
$_['text_bulk_edit_selected_uids'] = "Seleção de UIDs";
$_['text_bulk_restore_selected_emails'] = "Reenviar emails selecionados";
$_['text_bulk_restore_selected_emails'] = "Reenviar e-mails selecionados";
$_['text_bulk_update_selected_uids'] = "Atualização de UIDs selecionados ";
$_['text_cancel'] = "Cancelar";
$_['text_change_user_settings'] = "alterar configuração de usuário";
$_['text_clienthost'] = "Client host";
$_['text_clienthost'] = "Servidor do cliente";
$_['text_close'] = "Fechar";
$_['text_colour'] = "Colour";
$_['text_colour'] = "Cor";
$_['text_compressed'] = "comprimido";
$_['text_confirm_to_reset_counters'] = "Confirme para resetar os contadores";
$_['text_contact_support'] = "Contact support";
$_['text_contact_support'] = "ajuda";
$_['text_content_filter'] = "Filtro de conteúdo";
$_['text_conversation_available'] = "Conversão disponível";
$_['text_copied'] = "Copiado";
@ -60,7 +59,7 @@ $_['text_daily_quarantine_report'] = "Relatório diário de quarentena";
$_['text_daily_quarantine_report_status'] = "Status do relatório diário de quarentena";
$_['text_daily_report'] = "Relatório diário";
$_['text_daily_piler_report'] = "Relatório diário do piler";
$_['text_database_emails'] = "emails cadastrados na base de dados do piler";
$_['text_database_emails'] = "e-mails cadastrados na base de dados do piler";
$_['text_date'] = "Data";
$_['text_date_from'] = "Data de";
$_['text_date_to'] = "Data até";
@ -79,8 +78,8 @@ $_['text_deliver_selected_messages'] = "Entregar mensagens selecionadas";
$_['text_description'] = "Descrição";
$_['text_direction'] = "Direção";
$_['text_disk_usage'] = "Disco, uso de:";
$_['text_disable'] = "Desabiltar";
$_['text_disabled'] = "desabilitado";
$_['text_disable'] = "Desabilitar";
$_['text_disabled'] = "Desabilitado";
$_['text_dn_asterisk_means_skip_sync'] = "Asterisco (*) significa que este usuário não participará da sincronização AD";
$_['text_domain'] = "Domínios";
$_['text_domains'] = "Domínio(s)";
@ -95,21 +94,21 @@ $_['text_edit_group'] = "Editar grupo";
$_['text_edit_user'] = "Editar usuário";
$_['text_edit_or_view'] = "Editar / Visualizar";
$_['text_email'] = "Email";
$_['text_email_addresses'] = "Emails";
$_['text_email_aliases'] = "Emails aliases";
$_['text_email_in_unknown_domain'] = "Email pertence a um domínio desconhecido";
$_['text_email_addresses'] = "E-mails";
$_['text_email_aliases'] = "E-mail aliases";
$_['text_email_in_unknown_domain'] = "-Email pertence a um domínio desconhecido";
$_['text_empty_search_criteria'] = "'Critério vazio'";
$_['text_empty_search_result'] = "Pesquisa sem resultado. Try adding the wildcard character(*) after a word snippet, eg. duplic* to find \"duplicate\", \"duplicated\", etc.";
$_['text_empty_search_result'] = "Pesquisa sem resultado. Tente usar o caractere curinga (*) após uma palavra parcial, por exemplo duplic* para encontrar as palavras \"duplicar\", \"duplicado\", \"duplicação\", etc.";
$_['text_enable'] = "Permitir";
$_['text_enabled'] = "habilitado";
$_['text_enter_one_email_address_per_line'] = "Digite um email por linha";
$_['text_enabled'] = "Habilitado";
$_['text_enter_one_email_address_per_line'] = "Digite um e-mail por linha";
$_['text_enter_one_group_per_line'] = "Digite um grupo por linha";
$_['text_enter_search_terms'] = "Digite sua pesquisa ou clique na flecha";
$_['text_enter_search_terms'] = 'digite sua pesquisa';
$_['text_error'] = "Erro";
$_['text_exact_domain_name_or_email_address'] = "nome do domínio ou do email exato";
$_['text_exact_domain_name_or_email_address'] = "nome do domínio ou do e-mail exato";
$_['text_exclude'] = "Excluir";
$_['text_existing_domains'] = "Domínios existentes";
$_['text_existing_email'] = "Email existente";
$_['text_existing_email'] = "-Email existente";
$_['text_existing_folders'] = "Pastas existentes";
$_['text_existing_groups'] = "Grupos existentes";
$_['text_existing_policies'] = "Políticas existentes";
@ -148,16 +147,16 @@ $_['text_home'] = "Home";
$_['text_image'] = "imagem";
$_['text_import'] = "Importar";
$_['text_import_job_delete_confirm_message'] = "Do you wish to delete import job";
$_['text_import_job_delete_confirm_message'] = "Confirme para excluír a importação";
$_['text_import_users'] = "Importar usuários";
$_['text_import_users_from_LDAP'] = "Importar usuários de LDAP";
$_['text_inbound'] = "interno";
$_['text_indexer_job'] = "Indexer job";
$_['text_install_sudo_apply'] = "Add the following to /etc/sudoers: 'www-data ALL=NOPASSWD: /etc/init.d/rc.piler reload'";
$_['text_install_sudo_apply'] = "Adicione esta linha em /etc/sudoers: 'www-data ALL=NOPASSWD: /etc/init.d/rc.piler reload'";
$_['text_internal'] = "interno";
$_['text_invalid_data'] = "Dados inválidos";
$_['text_invalid_email'] = "Email inválido";
$_['text_invalid_email_or_password'] = "Email ou senha inválido";
$_['text_invalid_email_or_password'] = "E-mail ou senha inválido";
$_['text_invalid_gid'] = "GID inválido";
$_['text_invalid_password'] = "Senha inválida";
$_['text_invalid_policy_group'] = "Política de grupo inválida";
@ -169,10 +168,10 @@ $_['text_ipaddr'] = "Endereço IP";
$_['text_language'] = "Idioma";
$_['text_last'] = "Último";
$_['text_last_activity'] = "Last activity";
$_['text_last_activity'] = "Última atividade";
$_['text_last_update'] = "Última atualização";
$_['text_latest_emails'] = "Emails mais recentes";
$_['text_ldap_auditor_member_dn'] = "Auditor member DN";
$_['text_latest_emails'] = "E-mails mais recentes";
$_['text_ldap_auditor_member_dn'] = "DN do Auditor membro";
$_['text_ldap_basedn'] = "LDAP base DN";
$_['text_ldap_binddn'] = "LDAP bind DN";
$_['text_ldap_bindpw'] = "LDAP bind password";
@ -186,7 +185,7 @@ $_['text_login'] = "Login";
$_['text_login2'] = "login";
$_['text_login_failed'] = "falha de login";
$_['text_login_via_google'] = "Login via conta do Google";
$_['text_logout'] = "Logout";
$_['text_logout'] = "Sair";
$_['text_logout2'] = "logout";
$_['text_maillog_status'] = "status do coletor do log de email";
@ -197,22 +196,22 @@ $_['text_memory_usage'] = "Memoria, uso de";
$_['text_message'] = "mensagem";
$_['text_messages'] = "mensagens";
$_['text_message_text'] = "Texto da mensagem";
$_['text_min_2_chars'] = "Min. 2 characeres";
$_['text_min_2_chars'] = "Min. 2 characteres";
$_['text_missing_data'] = "Faltando dados";
$_['text_missing_password'] = "Senha faltando";
$_['text_modify'] = "Alterar";
$_['text_monitor'] = "Monitor";
$_['text_months'] = "months";
$_['text_months'] = "meses";
$_['text_monthly_report'] = "Relatório mensal";
$_['text_new_users'] = "novo";
$_['text_next'] = "Próximo";
$_['text_no_domain_found'] = 'No domain found';
$_['text_no_email_found'] = 'No email found';
$_['text_no_domain_found'] = 'Nenhum domínio encontrado';
$_['text_no_email_found'] = 'Nenhum e-mail encontado';
$_['text_no_message_in_the_quarantine'] = "Nenhuma mensagem na quarentena combinando com os critérios da pesquisa";
$_['text_no_records'] = "Sem registros";
$_['text_no_sender'] = "sem remetente";
$_['text_no_spam_message_in_the_quarantine_yet'] = "Ainda sem nenhuma mensagem de spam na quarentena";
$_['text_no_spam_message_in_the_quarantine_yet'] = "Ainda sem nenhuma mensagem de SPAM na quarentena";
$_['text_no_subject'] = "sem assunto";
$_['text_no_such_policy'] = "Política inexistente";
$_['text_non_existent_queue_directory'] = "Diretório de fila especificado não existe";
@ -220,14 +219,14 @@ $_['text_non_existing_user'] = "Usuário não existente";
$_['text_notes'] = "Notas";
$_['text_not_found'] = "Não encontrado";
$_['text_not_running'] = "não executando";
$_['text_not_spam'] = "não é spam";
$_['text_not_spam'] = "não é SPAM";
$_['title_not_found'] = "Página não encontrada";
$_['text_number_of_messages_in_quarantine'] = "Número de mensagens na quarentena combinando com os critérios da pesquisa";
$_['text_number_of_spam_messages_in_quarantine'] = "Número de mensagens spam na quarentena combinando com os critérios da pesquisa";
$_['text_number_of_spam_messages_in_quarantine'] = "Número de mensagens SPAM na quarentena combinando com os critérios da pesquisa";
$_['text_off'] = "desligado";
$_['text_on'] = "ligado";
$_['text_online_users'] = "Online users";
$_['text_online_users'] = "Usuários Online";
$_['text_other'] = "outros";
$_['text_outbound'] = "saida";
@ -241,7 +240,7 @@ $_['text_policy'] = "Política";
$_['text_policy_group'] = "Grupo de política";
$_['text_policy_name'] = "Nome da política";
$_['text_previous'] = "Anterior";
$_['text_processed_emails'] = "Emails processados";
$_['text_processed_emails'] = "E-mails processados";
$_['text_progress'] = "Progress";
$_['text_purge_all_messages_from_quarantine'] = "Expurgar todos as suas próprias mensagens da quarentena";
$_['text_purge_selected_messages'] = "Expurgar mensagens selecionadas";
@ -272,7 +271,7 @@ $_['text_restore_message'] = "reenviar mensagem";
$_['text_restore_to_mailbox'] = "Reenviar mensagem";
$_['text_restored'] = "Reenviado.";
$_['text_result'] = "Resultado";
$_['text_retention_days'] = "Retention days";
$_['text_retention_days'] = "Dias de retenção";
$_['text_retention_rules'] = "Regras de retenção";
$_['text_role'] = "Função";
$_['text_running'] = "processando";
@ -282,7 +281,7 @@ $_['text_saved'] = "Salvando";
$_['text_save_search'] = "salvar pesquisa";
$_['text_save_search_terms'] = "Salvar string de pesquisa";
$_['text_saved_search_terms'] = "String de pesquisa salvo";
$_['text_search'] = "Pesquisar";
$_['text_search'] = "pesquisar";
$_['text_search2'] = "pesquisar";
$_['text_search_emails'] = "Pesquisar emails";
$_['text_search_email_to_add'] = "Pesquisar emails para adicionar";
@ -305,7 +304,7 @@ $_['text_simple'] = "Simples";
$_['text_simple_search'] = "Pesquisa simples";
$_['text_size'] = "Tamanho";
$_['text_smtp_status'] = "SMTP status";
$_['text_spam'] = "Spam";
$_['text_spam'] = "SPAM";
$_['text_spam2'] = "spam";
$_['text_statistics'] = "Estatísticas";
$_['text_status'] = "Status";
@ -319,7 +318,7 @@ $_['text_successfully_removed'] = "Removido com sucesso";
$_['text_successfully_trained'] = "Treinado com sucesso";
$_['text_successfully_updated'] = "Atualizado com sucesso";
$_['text_support_link'] = "Support link";
$_['text_swap_usage'] = "Swap, uso de:";
$_['text_swap_usage'] = "Swap, uso de";
$_['text_tag_selected_messages'] = "Marcar(Tag) resultados de pesquisa";
$_['text_tagged'] = "Marcados";
@ -346,7 +345,7 @@ $_['text_unauthorized_view_message'] = "visualização de mensagem não autoriza
$_['text_unknown'] = "desconhecido";
$_['text_update_retention_within_this_domain'] = "Update retention values within this domain";
$_['text_update_selected_uids'] = "Atualizar UIDs selecionados";
$_['text_updated_records'] = "Updated records";
$_['text_updated_records'] = "Registros atualizados";
$_['text_uptime'] = "Uptime";
$_['text_user'] = "Usuário";
$_['text_users'] = "Usuários";
@ -368,8 +367,8 @@ $_['text_view_journal'] = "envelope";
$_['text_view_journal_envelope'] = "Visualizar envelope";
$_['text_view_message'] = "Visualizar mensagem";
$_['text_view_message2'] = "visualizar mensagem";
$_['text_view_progress'] = "visualizar progress";
$_['text_view_raw_email'] = "Visualizar email em formar RAW";
$_['text_view_progress'] = "visualizar progresso";
$_['text_view_raw_email'] = "Visualizar e-mail em formato RAW";
$_['text_view_user_quarantine'] = "Visualizar quarentena do usuário";
$_['text_warning_about_default_policy'] = "A política padrão pode ser configurado em clapf.conf";
@ -378,7 +377,7 @@ $_['text_whitelist_settings'] = "Configuração de lista branca";
$_['text_with_attachment'] = "com anexo(s)";
$_['text_without_attachment'] = "sem anexo";
$_['text_years'] = "years";
$_['text_years'] = "anos";
$_['text_you_are'] = "Você é";
$_['text_you_are_not_admin'] = "Você não é um usuário admin";
@ -393,74 +392,73 @@ $_['text_24_hours'] = "24 horas";
$_['text_1_week'] = "1 semana";
$_['text_30_days'] = "30 dias";
$_['text_access_settings'] = 'Access Settings';
$_['text_access_setting_explanation'] = "You always have access to your own email addresses. For auditor access to specific groups or domains, please contact your archive administrator.";
$_['text_display_settings'] = 'Display Settings';
$_['text_change_password'] = "Change Password";
$_['text_none_found'] = "None found";
$_['text_primary_domain'] = "Primary Domain";
$_['text_search_domains'] = "Search domains";
$_['text_search_domain_to_add'] = "Search domain to add";
$_['text_access_settings'] = 'Configuração de acesso';
$_['text_access_setting_explanation'] = "Acesso com seu próprio e-mail. Para acessar como auditor a grupos ou domínios específicos entre em contato com seu administrador.";
$_['text_display_settings'] = 'Configuração do monitor';
$_['text_change_password'] = "Alterar senha";
$_['text_none_found'] = "Nada encontrado";
$_['text_primary_domain'] = "Domínio Primário";
$_['text_search_domains'] = "Domínios de busca";
$_['text_search_domain_to_add'] = "Adicionar domínio de busca";
$_['text_space_projection'] = 'Space Projection';
$_['text_average_messages_day'] = 'Average Messages per Day';
$_['text_average_message_size'] = 'Average Message + Metadata + Index Size';
$_['text_average_size_day'] = 'Average Size per Day';
$_['text_partition_full'] = 'Partition Projected to be Full in';
$_['text_usage_trend'] = 'Usage Trend';
$_['text_usage_increasing'] = 'Increasing';
$_['text_usage_decreasing'] = 'Decreasing';
$_['text_usage_neutral'] = 'Neutral';
$_['text_accounting'] = 'Archive Accounting';
$_['text_accounting_email'] = 'By-Email Accounting';
$_['text_accounting_domain'] = 'By-Domain Accounting';
$_['text_space_projection'] = 'Projeção de espaço';
$_['text_average_messages_day'] = 'Média de mensagens por dia';
$_['text_average_message_size'] = 'Menságem média + Metadata + Tamanho do index';
$_['text_average_size_day'] = 'Tamanho médio por dia';
$_['text_partition_full'] = 'Projeção da Partição ficar lotado em';
$_['text_usage_trend'] = 'Tendência de uso';
$_['text_usage_increasing'] = 'Crescente';
$_['text_usage_decreasing'] = 'Decrescente';
$_['text_usage_neutral'] = 'Neutro';
$_['text_accounting'] = 'Contagem geral';
$_['text_accounting_email'] = 'Contagem por e-mail';
$_['text_accounting_domain'] = 'Contagem por domínio';
$_['text_options'] = 'Options';
$_['text_spam_flag'] = 'Message Flagged as SPAM';
$_['text_attachment_flag'] = 'Message has Attachment';
$_['text_notes_flag'] = 'Message has Notes';
$_['text_tag_flag'] = 'Message is Tagged';
$_['text_verified_flag'] = 'Message is Verified';
$_['text_unverified_flag'] = 'Message Failed Verification';
$_['text_bulk_download'] = 'Bulk Download Selected Emails';
$_['text_clear'] = 'Clear';
$_['text_select_letter'] = 'Select Addresses by Letter';
$_['text_working'] = 'Working...';
$_['text_options'] = 'opções';
$_['text_spam_flag'] = 'Mensagem marcada como SPAM';
$_['text_attachment_flag'] = 'Mensagem com anexo';
$_['text_notes_flag'] = 'Mensagem com nota';
$_['text_tag_flag'] = 'Mensagem com tag';
$_['text_verified_flag'] = 'Mensagem verificada';
$_['text_unverified_flag'] = 'Mensagem com falha na verificação';
$_['text_bulk_download'] = 'Download de e-mails selecionados';
$_['text_clear'] = 'limpar';
$_['text_select_letter'] = 'Selecione endereço por letra';
$_['text_working'] = 'Processando ...';
$_['text_use_browser_settings'] = 'Use browser settings';
$_['text_sent'] = 'Sent';
$_['text_received'] = 'Received';
$_['text_oldest_record'] = 'Oldest record';
$_['text_newest_record'] = 'Newest Record';
$_['text_items'] = 'Items';
$_['text_average_size'] = 'Avg size';
$_['text_sent'] = 'Enviados';
$_['text_received'] = 'Recebidos';
$_['text_oldest_record'] = 'Registro mais antigo';
$_['text_newest_record'] = 'Registro mais novo';
$_['text_items'] = 'Itens';
$_['text_average_size'] = 'Tamanho médio';
$_['text_return_to'] = 'Return to';
$_['text_error_message'] = 'Please correct the below errors and re-submit.';
$_['text_field_required'] = 'This field is required.';
$_['text_field_length'] = 'This field is required to be longer than ? characters.';
$_['text_field_domain'] = 'This field must be a valid domain (ie - domain.com).';
$_['text_field_colour'] = 'This field must be a valid color code (ie - #fcfcfc).';
$_['text_delete'] = 'Delete';
$_['text_confirm'] = 'Confirm';
$_['text_user_delete_confirm_message'] = 'Do you wish to delete the user';
$_['text_domain_delete_confirm_message'] = 'Do you wish to delete the domain';
$_['text_group_delete_confirm_message'] = 'Do you wish to delete the group';
$_['text_ldap_delete_confirm_message'] = 'Do you wish to delete the LDAP entry';
$_['text_customer_delete_confirm_message'] = 'Do you wish to delete the customer';
$_['text_with_selected'] = 'With Selected';
$_['text_return_to'] = 'Votar para';
$_['text_error_message'] = 'Favor corrige os erros abaixo listados e retransmite.';
$_['text_field_required'] = 'Este campo e obrigatório.';
$_['text_field_length'] = 'Este campo tem que ter mais do que ? caracteres.';
$_['text_field_domain'] = 'Este campo tem que conter um domínio válido (ex: meudominio.com.br).';
$_['text_field_colour'] = 'Este campo tem que conter um código de côr válido (ex: #fcfcfc).';
$_['text_delete'] = 'Excluir';
$_['text_confirm'] = 'Confirmar';
$_['text_user_delete_confirm_message'] = 'Confirme para excluir o usuário';
$_['text_domain_delete_confirm_message'] = 'Confirme para excluir o domínio';
$_['text_group_delete_confirm_message'] = 'Confirme para excluir o grupo';
$_['text_ldap_delete_confirm_message'] = 'Confirme para excluir o registro LDAP';
$_['text_customer_delete_confirm_message'] = 'Confirme para excluir o cliente';
$_['text_with_selected'] = 'ação';
$_['text_download_all_hits_as_eml'] = "Download all as EML";
$_['text_download_selected_hits_as_pdf'] = "Download selected as PDF";
$_['text_archive_size_before_compression'] = "Archive size before compression";
$_['text_create_new_secret'] = "Create new secret";
$_['text_enter_google_authenticator_code'] = "Enter Google Authenticator code";
$_['text_google_authenticator_code'] = "Google Authenticator code";
$_['text_google_authenticator_settings'] = "Google Authenticator settings";
$_['text_invalid_pin_code'] = "Invalid pin code";
$_['text_download_all_hits'] = "Download tudo";
$_['text_archive_size_before_compression'] = "Tamanho do arquivo antes da compressão";
$_['text_create_new_secret'] = "Criar nova chave";
$_['text_enter_google_authenticator_code'] = "Informe o código Google Authenticator";
$_['text_google_authenticator_code'] = "Código do Google Authenticator";
$_['text_google_authenticator_settings'] = "Configuração do Google Authenticator";
$_['text_invalid_pin_code'] = "Pin code inválido";
$_['text_qr_code'] = "QR";
$_['text_refresh_qr_code'] = "Refresh QR code";
$_['text_print_message'] = "Print";
$_['text_refresh_qr_code'] = "Renovar código QR";
$_['text_forward_selected_emails_to'] = "Forward selected emails to";
?>

View File

@ -310,16 +310,16 @@ var Piler =
},
bulk_restore_messages:function(msg)
bulk_restore_messages:function(msg, email)
{
Piler.log("[bulk_restore_messages]");
Piler.log("[bulk_restore_messages]", email);
var idlist = Piler.get_selected_messages_list();
if(!idlist) return;
jQuery.ajax('/bulkrestore.php', {
data: { download: '0', idlist: idlist },
data: { download: '0', idlist: idlist, email: email },
type: "POST"
})
.done( function( a ) {})

View File

@ -145,7 +145,7 @@
<span class="add-on"><?php print $text_with_selected; ?>:&nbsp;</span>
<?php if(SMARTHOST || ENABLE_IMAP_AUTH == 1) { ?>
<a href="#" class="btn btn-custom btn-inverse" onclick="Piler.bulk_restore_messages('<?php print $text_restored; ?>'); " title="<?php print $text_bulk_restore_selected_emails; ?>"><i class="icon-share-alt"></i></a>
<a href="#" class="btn btn-custom btn-inverse" onclick="var addr = ''; <?php if(Registry::get('auditor_user') == 1) { ?>addr = prompt('<?php print $text_forward_selected_emails_to', ''); <?php } ?>Piler.bulk_restore_messages('<?php print $text_restored; ?>', addr); " title="<?php print $text_bulk_restore_selected_emails; ?>"><i class="icon-share-alt"></i></a>
<?php } ?>
<a href="#" class="btn btn-custom btn-inverse" onclick="Piler.download_messages();" title="<?php print $text_bulk_download; ?>"><i class="icon-download-alt"></i></a>
<input type="text" id="tag_value" name="tag_value" class="tagtext" />

View File

@ -111,7 +111,7 @@
<?php } ?>
<?php if(SMARTHOST || ENABLE_IMAP_AUTH == 1) { ?>
<button class="btn piler-right-margin" onclick="Piler.bulk_restore_messages('<?php print $text_restored; ?>'); return false;"><?php print $text_bulk_restore_selected_emails; ?></button>
<button class="btn piler-right-margin" onclick="var addr = ''; <?php if(Registry::get('auditor_user') == 1) { ?>addr = prompt('<?php print $text_forward_selected_emails_to', ''); <?php } ?> Piler.bulk_restore_messages('<?php print $text_restored; ?>', addr); return false;"><?php print $text_bulk_restore_selected_emails; ?></button>
<?php } ?>
<input type="text" id="tag_value" name="tag_value" class="input-xlarge" placeholder="<?php print $text_tag_selected_messages; ?>" />