- Added 'show_images' option, removed 'addrbook_show_images' (#1485597)
| | |
| | | CHANGELOG RoundCube Webmail |
| | | --------------------------- |
| | | |
| | | 2008/12/04 (alec) |
| | | ---------- |
| | | - Added 'show_images' option, removed 'addrbook_show_images' (#1485597) |
| | | |
| | | 2008/11/28 (thomasb) |
| | | ---------- |
| | | - Option to check for new mails in all folders (#1484374) |
| | |
| | | // prefer displaying HTML messages |
| | | $rcmail_config['prefer_html'] = TRUE; |
| | | |
| | | // display images in mail from known senders |
| | | $rcmail_config['addrbook_show_images'] = FALSE; |
| | | // display remote inline images |
| | | // 0 - Never, always ask |
| | | // 1 - Ask if sender is not in address book |
| | | // 2 - Always show inline images |
| | | $rcmail_config['show_images'] = 0; |
| | | |
| | | // compose html formatted messages by default |
| | | $rcmail_config['htmleditor'] = FALSE; |
| | |
| | | 'skin_path' => 'skin', |
| | | 'locale_string' => 'language', |
| | | 'multiple_identities' => 'identities_level', |
| | | 'addrbook_show_images' => 'show_images', |
| | | ); |
| | | |
| | | // these config options are optional or can be set to null |
| | |
| | | $labels['filesize'] = 'حجم الملف'; |
| | | $labels['preferhtml'] = 'تفضيل صيغة HTML'; |
| | | $labels['htmlmessage'] = 'رسالة بنسق HTML'; |
| | | $labels['showknownimages'] = 'أظهر الصّور من المرسلين المعروفين'; |
| | | $labels['prettydate'] = 'تواريخ منمقة'; |
| | | $labels['addtoaddressbook'] = 'إضافة إلى دفتر العناوين'; |
| | | $labels['sun'] = 'أح'; |
| | |
| | | $labels['filesize'] = 'Fayl Ölçüsü'; |
| | | $labels['preferhtml'] = 'HTML göstərməyi dəstəklə'; |
| | | $labels['htmlmessage'] = 'HTML Mesaj'; |
| | | $labels['showknownimages'] = 'Tanınmış qrafikləri göstər'; |
| | | $labels['prettydate'] = 'Tarixi qısaltaraq göstər'; |
| | | $labels['addtoaddressbook'] = 'Ünvan Kitabçasına Əlavə Et'; |
| | | $labels['sun'] = 'B'; |
| | |
| | | $labels['filesize'] = 'Размер на файла'; |
| | | $labels['preferhtml'] = 'Показвай първо HTML версия'; |
| | | $labels['htmlmessage'] = 'HTML съобщение'; |
| | | $labels['showknownimages'] = 'Показвай изображения от известни податели'; |
| | | $labels['prettydate'] = 'Кратки дати'; |
| | | $labels['addtoaddressbook'] = 'Добави в адресната книга'; |
| | | $labels['sun'] = 'Нед'; |
| | |
| | | $labels['filesize'] = 'Grandària de fitxer'; |
| | | $labels['preferhtml'] = 'Preferisc HTML'; |
| | | $labels['htmlmessage'] = 'Missatge HTML'; |
| | | $labels['showknownimages'] = 'Mostrar imatges dels remitents coneguts'; |
| | | $labels['prettydate'] = 'Dates curtes'; |
| | | $labels['addtoaddressbook'] = 'Afegir a contactes'; |
| | | $labels['sun'] = 'DG'; |
| | |
| | | $labels['filesize'] = 'Velikost přílohy'; |
| | | $labels['preferhtml'] = 'Upřednostňovat HTML zobrazení'; |
| | | $labels['htmlmessage'] = 'HTML zpráva'; |
| | | $labels['showknownimages'] = 'Ukazovat obrázky v mailech od neznámých odesilatelů'; |
| | | $labels['prettydate'] = 'Hezčí datum'; |
| | | $labels['addtoaddressbook'] = 'Přidat do adresáře'; |
| | | $labels['sun'] = 'Ne'; |
| | |
| | | $labels['filesize'] = 'Maint ffeil'; |
| | | $labels['preferhtml'] = 'Dangos HTML'; |
| | | $labels['htmlmessage'] = 'Neges HTML'; |
| | | $labels['showknownimages'] = 'Dangos lluniau gan anfonwyr cyfarwydd'; |
| | | $labels['prettydate'] = 'Dyddiadau pert'; |
| | | $labels['addtoaddressbook'] = 'Ychwanegu i\'r llyfr cyfeiriadau'; |
| | | $labels['sun'] = 'Sul'; |
| | |
| | | $labels['filesize'] = 'Filstørrelse'; |
| | | $labels['preferhtml'] = 'Foretræk HTML'; |
| | | $labels['htmlmessage'] = 'HTML-besked'; |
| | | $labels['showknownimages'] = 'Vis billeder fra kendte afsendere'; |
| | | $labels['prettydate'] = 'Pæn datovisning'; |
| | | $labels['addtoaddressbook'] = 'Tilføj til adressebogen'; |
| | | $labels['sun'] = 'Søn'; |
| | |
| | | $labels['filesize'] = 'Dateigrösse'; |
| | | $labels['preferhtml'] = 'HTML bevorzugen'; |
| | | $labels['htmlmessage'] = 'HTML Nachricht'; |
| | | $labels['showknownimages'] = 'Zeige Bilder von bekannten Absendern an'; |
| | | $labels['prettydate'] = 'Kurze Datumsanzeige'; |
| | | $labels['addtoaddressbook'] = 'Ins Adressbuch übernehmen'; |
| | | $labels['sun'] = 'So'; |
| | |
| | | $labels['filesize'] = 'Dateigröße'; |
| | | $labels['preferhtml'] = 'HTML anzeigen'; |
| | | $labels['htmlmessage'] = 'HTML-Nachricht'; |
| | | $labels['showknownimages'] = 'Zeige Bilder von bekannten Absendern an'; |
| | | $labels['prettydate'] = 'Kurze Datumsanzeige'; |
| | | $labels['addtoaddressbook'] = 'Ins Adressbuch übernehmen'; |
| | | $labels['sun'] = 'So'; |
| | |
| | | $labels['filesize'] = 'File size'; |
| | | $labels['preferhtml'] = 'Display HTML'; |
| | | $labels['htmlmessage'] = 'HTML Message'; |
| | | $labels['showknownimages'] = 'Show images from known senders'; |
| | | $labels['prettydate'] = 'Pretty dates'; |
| | | $labels['addtoaddressbook'] = 'Add to address book'; |
| | | $labels['sun'] = 'Sun'; |
| | |
| | | |
| | | $labels['preferhtml'] = 'Display HTML'; |
| | | $labels['htmlmessage'] = 'HTML Message'; |
| | | $labels['showknownimages'] = 'Show images from known senders'; |
| | | $labels['prettydate'] = 'Pretty dates'; |
| | | |
| | | $labels['addtoaddressbook'] = 'Add to address book'; |
| | |
| | | $labels['readwhendeleted'] = 'Mark the message as read on delete'; |
| | | $labels['flagfordeletion'] = 'Flag the message for deletion instead of delete'; |
| | | $labels['skipdeleted'] = 'Do not show deleted messages'; |
| | | $labels['showremoteimages'] = 'Display remote inline images'; |
| | | $labels['fromknownsenders'] = 'from known senders'; |
| | | $labels['always'] = 'always'; |
| | | $labels['showinlineimages'] = 'Display attached images below the message'; |
| | | $labels['autosavedraft'] = 'Automatically save draft'; |
| | | $labels['everynminutes'] = 'every $n minutes'; |
| | |
| | | $labels['filesize'] = 'Dosiergrando'; |
| | | $labels['preferhtml'] = 'Montru HTML'; |
| | | $labels['htmlmessage'] = 'HTML Mesaĝo'; |
| | | $labels['showknownimages'] = 'Montru bildojn de konataj sendantoj'; |
| | | $labels['prettydate'] = 'Agrablaj Datoj'; |
| | | $labels['addtoaddressbook'] = 'Aldonu al adresaro'; |
| | | $labels['sun'] = 'Dim'; |
| | |
| | | $labels['filesize'] = 'Tamaño del archivo'; |
| | | $labels['preferhtml'] = 'Prefiero HTML'; |
| | | $labels['htmlmessage'] = 'Mensaje HTML'; |
| | | $labels['showknownimages'] = 'Muestra imágenes de remitentes conocidos'; |
| | | $labels['prettydate'] = 'Fecha detallada'; |
| | | $labels['addtoaddressbook'] = 'Añadir a contactos'; |
| | | $labels['sun'] = 'Dom'; |
| | |
| | | $labels['filesize'] = 'Faili suurus'; |
| | | $labels['preferhtml'] = 'Eelista HTMLi'; |
| | | $labels['htmlmessage'] = 'HTML kirjad'; |
| | | $labels['showknownimages'] = 'Näita tuntud saatjate kirjades pilte'; |
| | | $labels['prettydate'] = 'Kenad kuupäevad'; |
| | | $labels['addtoaddressbook'] = 'Lisa aadressiraamatusse'; |
| | | $labels['sun'] = 'P'; |
| | |
| | | $labels['filesize'] = 'Fitxategi Tamaina'; |
| | | $labels['preferhtml'] = 'HTML nahiago'; |
| | | $labels['htmlmessage'] = 'HTML Mezua'; |
| | | $labels['showknownimages'] = 'Bidaltzaile ezagunen imajinak ikusi'; |
| | | $labels['prettydate'] = 'Data politak'; |
| | | $labels['addtoaddressbook'] = 'Helbide liburura gehitu'; |
| | | $labels['sun'] = 'Iga'; |
| | |
| | | $labels['filesize'] = 'اندازهی پرونده'; |
| | | $labels['preferhtml'] = 'HTML نمایش'; |
| | | $labels['htmlmessage'] = 'HTML پیغام'; |
| | | $labels['showknownimages'] = 'نمایش عکسها از فرستندگان شناخته شده'; |
| | | $labels['prettydate'] = 'تاریخهای زیبا'; |
| | | $labels['addtoaddressbook'] = 'افزودن به دفتر نشانیها'; |
| | | $labels['sun'] = 'یکشنبه'; |
| | |
| | | $labels['filesize'] = 'Tiedoston koko'; |
| | | $labels['preferhtml'] = 'Käytä HTML:aa'; |
| | | $labels['htmlmessage'] = 'HTML-viesti'; |
| | | $labels['showknownimages'] = 'Näytä tunnetuilta lähettäjiltä saapuneet kuvat'; |
| | | $labels['prettydate'] = 'Nätit päiväykset'; |
| | | $labels['addtoaddressbook'] = 'Lisää osoitekirjaan'; |
| | | $labels['sun'] = 'Su'; |
| | |
| | | $labels['filesize'] = 'Taille du fichier'; |
| | | $labels['preferhtml'] = 'Afficher en HTML'; |
| | | $labels['htmlmessage'] = 'Message en HTML'; |
| | | $labels['showknownimages'] = 'Afficher les images des expéditeurs connus'; |
| | | $labels['prettydate'] = 'Affichage court des dates'; |
| | | $labels['addtoaddressbook'] = 'Ajouter au carnet d\'adresses'; |
| | | $labels['sun'] = 'Dim'; |
| | |
| | | $labels['filesize'] = 'Tamaño de ficheiro'; |
| | | $labels['preferhtml'] = 'Prefiro HTML'; |
| | | $labels['htmlmessage'] = 'Mensaxe HTML'; |
| | | $labels['showknownimages'] = 'Mostrar as imaxes nos correos de remitentes coñecidos.'; |
| | | $labels['prettydate'] = 'Data decorada'; |
| | | $labels['addtoaddressbook'] = 'Engadir ao caderno de enderezos'; |
| | | $labels['sun'] = 'Dom'; |
| | |
| | | $labels['filesize'] = 'גודל קובץ'; |
| | | $labels['preferhtml'] = 'הצגת HTML'; |
| | | $labels['htmlmessage'] = 'תוכן HTML'; |
| | | $labels['showknownimages'] = 'הצגת תמונות ממקור ידוע'; |
| | | $labels['prettydate'] = 'תאריכים מעוצבים'; |
| | | $labels['addtoaddressbook'] = 'הוספה לפנקס כתובות'; |
| | | $labels['sun'] = 'יום א'; |
| | |
| | | $labels['filesize'] = 'Veličina datoteke'; |
| | | $labels['preferhtml'] = 'HTML format u prednosti'; |
| | | $labels['htmlmessage'] = 'HTML format poruke'; |
| | | $labels['showknownimages'] = 'Prikaži poruke od poznatih pošiljatelja'; |
| | | $labels['prettydate'] = 'Formatiran datum'; |
| | | $labels['addtoaddressbook'] = 'Dodaj u imenik'; |
| | | $labels['sun'] = 'Ned'; |
| | |
| | | $labels['filesize'] = 'File mérete'; |
| | | $labels['preferhtml'] = 'HTML megjelenítés'; |
| | | $labels['htmlmessage'] = 'HTML üzenet'; |
| | | $labels['showknownimages'] = 'Képek megjelenítése ismert Feladó esetén'; |
| | | $labels['prettydate'] = 'Rövid dátumok'; |
| | | $labels['addtoaddressbook'] = 'Hozzáadás a címjegyzékhez'; |
| | | $labels['sun'] = 'Vas'; |
| | |
| | | $labels['filesize'] = 'Ukuran berkas'; |
| | | $labels['preferhtml'] = 'Lebih suka HTML'; |
| | | $labels['htmlmessage'] = 'Pesan HTML'; |
| | | $labels['showknownimages'] = 'Tampilakn gambar dari pengirim yang dikenal'; |
| | | $labels['prettydate'] = 'Tanggal cantik'; |
| | | $labels['addtoaddressbook'] = 'Tambahkan ke buku tamu'; |
| | | $labels['sun'] = 'Min'; |
| | |
| | | $labels['filesize'] = 'Dimensione file'; |
| | | $labels['preferhtml'] = 'Mostra HTML'; |
| | | $labels['htmlmessage'] = 'Messaggio HTML'; |
| | | $labels['showknownimages'] = 'Mostra immagini da mittenti conosciuti'; |
| | | $labels['prettydate'] = 'Date più leggibili'; |
| | | $labels['addtoaddressbook'] = 'Aggiungi alla rubrica'; |
| | | $labels['sun'] = 'Dom'; |
| | |
| | | $labels['filesize'] = 'ファイルサイズ'; |
| | | $labels['preferhtml'] = 'HTMLを表示'; |
| | | $labels['htmlmessage'] = 'HTMLメール'; |
| | | $labels['showknownimages'] = ' 登録済み送信者の画像を表示'; |
| | | $labels['prettydate'] = '簡易な日付表示'; |
| | | $labels['addtoaddressbook'] = 'アドレス帳に追加'; |
| | | $labels['sun'] = '日'; |
| | |
| | | $labels['filesize'] = 'Bylos dydis'; |
| | | $labels['preferhtml'] = 'Rodyti HTML'; |
| | | $labels['htmlmessage'] = 'HTML Laiškas'; |
| | | $labels['showknownimages'] = 'Rodyti žinomų siuntėjų paveikslėlius'; |
| | | $labels['prettydate'] = 'Gražios datos'; |
| | | $labels['addtoaddressbook'] = 'Įtraukti į adresų knygą'; |
| | | $labels['sun'] = 'Sek'; |
| | |
| | | $labels['filesize'] = 'Големина на датотеката'; |
| | | $labels['preferhtml'] = 'Прикажи во HTML'; |
| | | $labels['htmlmessage'] = 'HTML Порака'; |
| | | $labels['showknownimages'] = 'Прикажи ги сликите од непознат праќач'; |
| | | $labels['prettydate'] = 'Убави дати'; |
| | | $labels['addtoaddressbook'] = 'Додади во именик'; |
| | | $labels['sun'] = 'Нед'; |
| | |
| | | $labels['filesize'] = 'Bestandsgrootte'; |
| | | $labels['preferhtml'] = 'Toon HTML'; |
| | | $labels['htmlmessage'] = 'HTML-Bericht'; |
| | | $labels['showknownimages'] = 'Toon afbeeldingen van bekende afzenders'; |
| | | $labels['prettydate'] = 'Gebruiksvriendelijke data'; |
| | | $labels['addtoaddressbook'] = 'Toevoegen aan adresboek'; |
| | | $labels['sun'] = 'Zo'; |
| | |
| | | $labels['filesize'] = 'Filstorleik'; |
| | | $labels['preferhtml'] = 'Føretrekk HTML'; |
| | | $labels['htmlmessage'] = 'HTML-melding'; |
| | | $labels['showknownimages'] = 'Vis bilete frå kjende sendarar'; |
| | | $labels['prettydate'] = 'Pene datoar'; |
| | | $labels['addtoaddressbook'] = 'Legg til i adressebok'; |
| | | $labels['sun'] = 'Sun'; |
| | |
| | | $labels['filesize'] = 'Rozmiar pliku'; |
| | | $labels['preferhtml'] = 'Domyślny HTML'; |
| | | $labels['htmlmessage'] = 'Wiadomość HTML'; |
| | | $labels['showknownimages'] = 'Wyświetlaj obrazki od znanych nadawców'; |
| | | $labels['showremoteimages'] = 'Wyświetlaj obrazki w wiadomościach'; |
| | | $labels['fromknownsenders'] = 'od znanych nadawców'; |
| | | $labels['always'] = 'zawsze'; |
| | | $labels['prettydate'] = 'Ładne daty'; |
| | | $labels['showinlineimages'] = 'Wyświetlaj załączone obrazki pod treścią wiadomości'; |
| | | $labels['messagesdisplaying'] = 'Wyświetlanie wiadomości'; |
| | |
| | | |
| | | $labels['preferhtml'] = 'Exibir mensagens em HTML'; |
| | | $labels['htmlmessage'] = 'Mensagem HTML'; |
| | | $labels['showknownimages'] = 'Exibir imagens de remetentes conhecidos'; |
| | | $labels['prettydate'] = 'Exibir datas amigáveis'; |
| | | |
| | | $labels['addtoaddressbook'] = 'Incluir no catálogo de endereços'; |
| | |
| | | $labels['filesize'] = 'Tamanho'; |
| | | $labels['preferhtml'] = 'Prefere HTML'; |
| | | $labels['htmlmessage'] = 'Mensagem HTML'; |
| | | $labels['showknownimages'] = 'Mostrar imagens de remetentes conhecidos'; |
| | | $labels['prettydate'] = 'Formatar datas'; |
| | | $labels['addtoaddressbook'] = 'Adicionar à lista de contactos'; |
| | | $labels['sun'] = 'Dom'; |
| | |
| | | $labels['filesize'] = 'Размер файла'; |
| | | $labels['preferhtml'] = 'Предпочитать HTML'; |
| | | $labels['htmlmessage'] = 'Сообщение HTML'; |
| | | $labels['showknownimages'] = 'Показывать изображения от известных отправителей'; |
| | | $labels['prettydate'] = 'Красивые даты'; |
| | | $labels['addtoaddressbook'] = 'Добавить в контакты'; |
| | | $labels['sun'] = 'Вс'; |
| | |
| | | $labels['filesize'] = 'Veľkosť súboru'; |
| | | $labels['preferhtml'] = 'Uprednostniť HTML zobrazenie'; |
| | | $labels['htmlmessage'] = 'HTML správa'; |
| | | $labels['showknownimages'] = 'Zobraziť obrázky v správach od známych odosielateľov'; |
| | | $labels['prettydate'] = 'Krajší dátum'; |
| | | $labels['addtoaddressbook'] = 'Pridať do adresára'; |
| | | $labels['sun'] = 'Ne'; |
| | |
| | | $labels['filesize'] = 'Dosya Boyutu'; |
| | | $labels['preferhtml'] = 'HTML görüntüle'; |
| | | $labels['htmlmessage'] = 'HTML Posta'; |
| | | $labels['showknownimages'] = 'Bilinen göndericilerden gelen resimleri göster'; |
| | | $labels['prettydate'] = 'Tarihi kısaltarak göster'; |
| | | $labels['addtoaddressbook'] = 'Adres Defterine Ekle'; |
| | | $labels['sun'] = 'Paz'; |
| | |
| | | $labels['filesize'] = '文件大小'; |
| | | $labels['preferhtml'] = '以 HTML 格式显示'; |
| | | $labels['htmlmessage'] = 'HTML 邮件'; |
| | | $labels['showknownimages'] = '显示已知的发件人的邮件中的图片'; |
| | | $labels['prettydate'] = '短日期格式'; |
| | | $labels['addtoaddressbook'] = '添加到通讯录'; |
| | | $labels['sun'] = '日'; |
| | |
| | | |
| | | $labels['preferhtml'] = '使用 HTML 顯示'; |
| | | $labels['htmlmessage'] = 'HTML 郵件'; |
| | | $labels['showknownimages'] = '已知的寄件者顯示圖片'; |
| | | $labels['prettydate'] = '簡短日期顯示'; |
| | | |
| | | $labels['addtoaddressbook'] = '新增至通訊錄'; |
| | |
| | | |
| | | $mbox_name = $IMAP->get_mailbox_name(); |
| | | |
| | | // check known senders to display images |
| | | if (!$MESSAGE->is_safe |
| | | && !empty($MESSAGE->sender['mailto']) |
| | | && $RCMAIL->config->get('addrbook_show_images') |
| | | && $MESSAGE->has_html_part()) { |
| | | $CONTACTS = new rcube_contacts($DB, $_SESSION['user_id']); |
| | | |
| | | if ($CONTACTS->search('email', $MESSAGE->sender['mailto'], true, false)->count) { |
| | | $MESSAGE->set_safe(true); |
| | | // show images? |
| | | $show_images = $RCMAIL->config->get('show_images'); |
| | | if(!$MESSAGE->is_safe |
| | | && !empty($show_images) |
| | | && $MESSAGE->has_html_part()) |
| | | { |
| | | switch($show_images) { |
| | | case '1': // known senders only |
| | | $CONTACTS = new rcube_contacts($DB, $_SESSION['user_id']); |
| | | if ($CONTACTS->search('email', $MESSAGE->sender['mailto'], true, false)->count) { |
| | | $MESSAGE->set_safe(true); |
| | | } |
| | | break; |
| | | case '2': // always |
| | | $MESSAGE->set_safe(true); |
| | | break; |
| | | } |
| | | } |
| | | |
| | |
| | | $msg .= html::a(array('href' => "#loadimages", 'onclick' => JS_OBJECT_NAME.".command('load-images')"), Q(rcube_label('showimages'))); |
| | | |
| | | // add link to save sender in addressbook and reload message |
| | | if ($MESSAGE->sender['mailto'] && $RCMAIL->config->get('addrbook_show_images')) { |
| | | if ($MESSAGE->sender['mailto'] && $RCMAIL->config->get('show_images') == 1) { |
| | | $msg .= ' ' . html::a(array('href' => "#alwaysload", 'onclick' => JS_OBJECT_NAME.".command('always-load')", 'style' => "white-space:nowrap"), |
| | | Q(rcube_label(array('name' => 'alwaysshow', 'vars' => array('sender' => $MESSAGE->sender['mailto']))))); |
| | | } |
| | |
| | | $table->add(null, $input_preferhtml->show($config['prefer_html']?1:0)); |
| | | } |
| | | |
| | | // show checkbox for displaying images from people in the addressbook |
| | | if (!isset($no_override['addrbook_show_images'])) { |
| | | $field_id = 'rcmfd_addrbook_show_images'; |
| | | $input_addrbook_show_images = new html_checkbox(array('name' => '_addrbook_show_images', 'id' => $field_id, |
| | | 'value' => 1, 'disabled' => $config['prefer_html']?0:1)); |
| | | if (!isset($no_override['show_images'])) { |
| | | $field_id = 'rcmfd_show_images'; |
| | | $input_show_images = new html_select(array('name' => '_show_images', 'id' => $field_id)); |
| | | $input_show_images->add(rcube_label('never'), 0); |
| | | $input_show_images->add(rcube_label('fromknownsenders'), 1); |
| | | $input_show_images->add(rcube_label('always'), 2); |
| | | |
| | | $table->add('title', html::label($field_id, Q(rcube_label('showknownimages')))); |
| | | $table->add(null, $input_addrbook_show_images->show($config['addrbook_show_images']?1:0)); |
| | | $table->add('title', html::label($field_id, Q(rcube_label('showremoteimages')))); |
| | | $table->add(null, $input_show_images->show($config['show_images'])); |
| | | } |
| | | |
| | | if (!isset($no_override['inline_images'])) { |
| | |
| | | 'pagesize' => is_numeric($_POST['_pagesize']) ? max(2, intval($_POST['_pagesize'])) : $CONFIG['pagesize'], |
| | | 'prettydate' => isset($_POST['_pretty_date']) ? TRUE : FALSE, |
| | | 'prefer_html' => isset($_POST['_prefer_html']) ? TRUE : FALSE, |
| | | 'addrbook_show_images' => isset($_POST['_addrbook_show_images']) ? TRUE : FALSE, |
| | | 'htmleditor' => isset($_POST['_htmleditor']) ? TRUE : FALSE, |
| | | 'inline_images' => isset($_POST['_inline_images']) ? TRUE : FALSE, |
| | | 'preview_pane' => isset($_POST['_preview_pane']) ? TRUE : FALSE, |
| | |
| | | 'logout_purge' => isset($_POST['_logout_purge']) ? TRUE : FALSE, |
| | | 'logout_expunge' => isset($_POST['_logout_expunge']) ? TRUE : FALSE, |
| | | 'draft_autosave' => isset($_POST['_draft_autosave']) ? intval($_POST['_draft_autosave']) : 0, |
| | | 'show_images' => isset($_POST['_show_images']) ? intval($_POST['_show_images']) : 0, |
| | | 'keep_alive' => isset($_POST['_keep_alive']) ? intval($_POST['_keep_alive'])*60 : $CONFIG['keep_alive'], |
| | | 'check_all_folders' => isset($_POST['_check_all_folders']) ? TRUE : FALSE, |
| | | 'mime_param_folding' => isset($_POST['_mime_param_folding']) ? intval($_POST['_mime_param_folding']) : 0, |
| | |
| | | $a_user_prefs['keep_alive'] = min($CONFIG['session_lifetime']*60, $a_user_prefs['keep_alive']); |
| | | } |
| | | |
| | | |
| | | if ($USER->save_prefs($a_user_prefs)) |
| | | $OUTPUT->show_message('successfullysaved', 'confirmation'); |
| | | |
| | | |
| | | // go to next step |
| | | rcmail_overwrite_action('preferences'); |