'expressoMail1_2', 'nonavbar' => true, 'noheader' => true ); } require_once '../header.inc.php'; /**************************************************************************\ * eGroupWare - ExpressoMail Preferences * * http://www.expressolivre.org * * Modified by Alexandre Felipe Muller de Souza * * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * \**************************************************************************/ include_once("fckeditor.php"); $type = $_GET['type']; // FIX ME //if ($type == 'user' || $type == ''){ create_script('function exibir_ocultar() { var type = ("'.$type.'" == "") ? "user" : "'.$type.'"; var use_signature_digital_cripto = document.getElementsByName(type+"[use_signature_digital_cripto]")[0]; var default_signature_digital_cripto = "'.$GLOBALS['phpgw_info']['default']['preferences']['expressoMail']['use_signature_digital_cripto'].'"; if (use_signature_digital_cripto) { var element_signature_digital = document.getElementById(type+"[use_signature_digital]"); var element_signature_cripto = document.getElementById(type+"[use_signature_cripto]"); switch (use_signature_digital_cripto[use_signature_digital_cripto.selectedIndex].value){ case "1": element_signature_digital.style.display=""; element_signature_cripto.style.display=""; break; case "0": element_signature_digital.style.display="none"; element_signature_cripto.style.display="none"; break; case "": if (default_signature_digital_cripto){ element_signature_digital.style.display=""; element_signature_cripto.style.display=""; } else { element_signature_digital.style.display="none"; element_signature_cripto.style.display="none"; } } } }'); //} $default = array( '25' => '25', '50' => '50', '75' => '75', '100' => '100' ); create_select_box('What is the maximum number of messages per page?','max_email_per_page',$default,'This is the number of messages shown in your mailbox per page'); create_check_box('Save deleted messages in trash folder?','save_deleted_msg','When delete message, send it automatically to trash folder'); $default = array( '1' => lang('1 day'), '2' => lang('2 days'), '3' => lang('3 days'), '4' => lang('4 days'), '5' => lang('5 days') ); create_select_box('Delete trash messages after how many days?','delete_trash_messages_after_n_days',$default,'Delete automatically the messages in trash folder in how many days'); create_check_box('Would you like to use local messages?','use_local_messages','Enabling this options you will be able to store messages in your local computer'); create_check_box('Would you like to keep archived messages?','keep_archived_messages','After store email in your local computer delete it from server'); create_check_box('Show previous message, after delete actual message?','delete_and_show_previous_message','Enable this option if you want to read the next message everytime you delete a message'); create_check_box('Do you wanna receive an alert for new messages?','alert_new_msg','Everytime you receive new messages you will be informed'); create_check_box('Show default view on main screen?','mainscreen_showmail','Show unread messages in your home page'); create_check_box('Do you want to use remove attachments function?','remove_attachments_function','It allow you to remove attachments from messages'); create_check_box('Do you want to use important flag in email editor?','use_important_flag','It allow you to send emails with important flag, but you can receive unwanted messages with important flag'); //Use user folders from email if ($type != "" && $type != "user"){ $trash = $_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultTrashFolder']; $drafts = $_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultDraftsFolder']; $spam = $_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultSpamFolder']; $sent = $_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultSentFolder']; $default = Array( 'INBOX' => lang('INBOX'), 'INBOX/'.$trash => lang($trash), 'INBOX/'.$drafts => lang($drafts), 'INBOX/'.$spam => lang($spam), 'INBOX/'.$sent => lang($sent) ); } else { require_once('class.imap_functions.inc.php'); $boemailadmin = CreateObject('emailadmin.bo'); $emailadmin_profile = $boemailadmin->getProfileList(); $_SESSION['phpgw_info']['expressomail']['email_server'] = $boemailadmin->getProfile($emailadmin_profile[0]['profileID']); $_SESSION['phpgw_info']['expressomail']['user'] = $GLOBALS['phpgw_info']['user']; $e_server = $_SESSION['phpgw_info']['expressomail']['email_server']; $imap = CreateObject('expressoMail1_2.imap_functions'); $save_in_folder_selected = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['save_in_folder']; // Load Special Folders (Sent, Trash, Draft, Spam) from EmailAdmin (if exists, else get_lang) $specialFolders = array ("Trash" => lang("Trash"), "Drafts" => lang("Drafts"), "Spam" => lang("Spam"), "Sent" => lang("Sent")); foreach ($specialFolders as $key => $value){ if($e_server['imapDefault'.$key.'Folder']) $specialFolders[$key] = $e_server['imapDefault'.$key.'Folder']; } unset($default); $default[-1] = lang('Select on send'); foreach($imap -> get_folders_list(array('noSharedFolders' => true)) as $id => $folder){ if(!is_numeric($id)) continue; else{ // Translate INBOX (root folder) if (strtolower($folder['folder_name']) == "inbox") $folder['folder_name'] = lang("Inbox"); // Translate Special Folders elseif (($keyFolder = array_search($folder['folder_name'], $specialFolders)) !== false) $folder['folder_name'] = lang($keyFolder); // Identation for subfolders $folder_id = explode($e_server['imapDelimiter'],$folder['folder_id']); $level = count($folder_id); $ident = ''; for($i = 2; $level > 2 && $i < $level;$i++) $ident .= ' - '; $default[$folder['folder_id']] = $ident.$folder['folder_name']; } } } create_select_box('Save sent messages in folder','save_in_folder',$default,'Save automatically sent messages in selected folder'); create_check_box('Hide menu folders?','hide_folders','You can use it if your screen does not have good resolution'); $default = array( '20' => lang('normal'), '30' => lang('medium'), '40' => lang('big') ); create_select_box('What is the height of the lines in the list of messages?','line_height',$default,''); create_check_box('Use dynamic contacts?','use_dynamic_contacts','Store your\'s most used contacts'); create_check_box('Use shortcuts?','use_shortcuts','n key (Open new message)
ESC key (Close tab)
i key (print)
e key (forward)
r key (reply)
DELETE key (delete the current message)
Ctrl + up (go to previous message)
Ctrl + down (go to next message)
Shift + up or down (select multiple messages)
F9 key (search at catalog)
'); create_check_box('Auto save draft','auto_save_draft','When you are away from computer it saves automatically the message you are writing'); $default = array( '65536' => lang('unlimited'), '640' => '640', '768' => '768', '800' => '800', '1024' => '1024', '1080' => '1080' ); create_select_box('What is the maximum size of embedded images?','image_size',$default,'When user send an email with image in body message, it changes the size'); if($GLOBALS['phpgw_info']['server']['use_assinar_criptografar']) { create_check_box('Enable digitally sign/cipher the message?','use_signature_digital_cripto','','',True,'onchange="javascript:exibir_ocultar();"'); if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_signature_digital_cripto']) { create_check_box('Always sign message digitally?','use_signature_digital',''); create_check_box('Always cipher message digitally?','use_signature_cripto',''); } else { create_check_box('Always sign message digitally?','use_signature_digital','','',True,'',False); create_check_box('Always cipher message digitally?','use_signature_cripto','','',True,'',False); } } $default = array( 'text' => lang('simple text'), 'html' => lang('rich text') ); create_check_box('Insert signature automatically in new messages?','use_signature',''); create_select_box('Signature Type','type_signature',$default,'','','','onchange="javascript:changeType(this.value);" onload="javascript:alert(this.value);"'); if ($type == 'user' || $type == ''){ $oFCKeditor = new FCKeditor('html_signature'); $oFCKeditor->BasePath = '../expressoMail1_2/js/fckeditor/'; $oFCKeditor->ToolbarSet = 'ExpressoLivre'; $vars = $GLOBALS['phpgw']->preferences->user[$appname]; create_html_code("signature","
"); } ?>