Source for file folder.php
Documentation is available at folder.php
-  * Displays all options relating to folders 
-  * @copyright 1999-2020 The SquirrelMail Project Team 
-  * @license http://opensource.org/licenses/gpl-license.php GNU Public License 
-  * @version $Id: folder.php 14845 2020-01-07 08:09:34Z pdontthink $ 
- /** SquirrelMail required files. */ 
- include(SM_PATH - .  'functions/imap_general.php');
 
- /* Define the group constants for the folder options page. */ 
- define('SMOPT_GRP_SPCFOLDER', 0); 
- define('SMOPT_GRP_FOLDERLIST', 1); 
- define('SMOPT_GRP_FOLDERSELECT', 2); 
-  * This function builds an array with all the information about 
-  * the options available to the user, and returns it. The options 
-  * are grouped by the groups in which they are displayed. 
-  * For each option, the following information is stored: 
-  * - name: the internal (variable) name 
-  * - caption: the description of the option in the UI 
-  * - type: one of SMOPT_TYPE_* 
-  * - refresh: one of SMOPT_REFRESH_* 
-  * - size: one of SMOPT_SIZE_* 
-  * - save: the name of a function to call when saving this option 
-  * @return array all option information 
-     /* Get some imap data we need later. */ 
-     $imapConnection - =  sqimap_login($username, false, $imapServerAddress, $imapPort, 0, $imap_stream_options);
 
-     /* Build a simple array into which we will build options. */ 
-     /******************************************************/ 
-     /* LOAD EACH GROUP OF OPTIONS INTO THE OPTIONS ARRAY. */ 
-     /******************************************************/ 
-     /*** Load the General Options into the array ***/ 
-     if (!- isset ($folder_prefix)) { $folder_prefix- =  $default_folder_prefix; }
 
-     if ($show_prefix_option) { 
-             'name'    - =>  'folder_prefix',
 
-             'caption' - =>  _("Folder Path"),
 
-     $trash_folder_values - =  array(SMPREF_NONE- =>  '[ '- . _("Do not use Trash")- . ' ]',
 
-         'name'    - =>  'trash_folder',
 
-         'caption' - =>  _("Trash Folder"),
 
-         'posvals' - =>  $trash_folder_values,
 
-         'save'    - =>  'save_option_trash_folder'
 
-     $draft_folder_values - =  array(SMPREF_NONE- =>  '[ '- . _("Do not use Drafts")- . ' ]',
 
-         'name'    - =>  'draft_folder',
 
-         'caption' - =>  _("Draft Folder"),
 
-         'posvals' - =>  $draft_folder_values,
 
-         'save'    - =>  'save_option_draft_folder'
 
-     $sent_folder_values - =  array(SMPREF_NONE- =>  '[ '- . _("Do not use Sent")- . ' ]',
 
-         'caption' - =>  _("Sent Folder"),
 
-         'posvals' - =>  $sent_folder_values,
 
-         'save'    - =>  'save_option_sent_folder'
 
-         'name'    - =>  'translate_special_folders',
 
-         'caption' - =>  _("Translate Special Folders"),
 
-         'name'    - =>  'save_reply_with_orig',
 
-         'caption' - =>  _("Save Replies with Original Message"),
 
-     /*** Load the General Options into the array ***/ 
-         'name'    - =>  'location_of_bar',
 
-         'caption' - =>  _("Location of Folder List"),
 
-     $left_size_values - =  array();
 
-     for ($lsv - =  100; $lsv- <=  300; $lsv- +=  10) {
 
-         $left_size_values[$lsv] - =  "$lsv "- .  _("pixels");
 
-         'caption' - =>  _("Width of Folder List"),
 
-         'posvals' - =>  $left_size_values
 
-     foreach (array(30,60,120,180,300,600,1200) as $lr_val) { 
-             $left_refresh_values[$lr_val] - =  "$lr_val "- .  _("Seconds");
 
-             $left_refresh_values[$lr_val] - =  sprintf(ngettext("%d Minute","%d Minutes",($lr_val- / 60)),($lr_val- / 60));
 
-         'name'    - =>  'left_refresh',
 
-         'caption' - =>  _("Auto Refresh Folder List"),
 
-         'posvals' - =>  $left_refresh_values
 
-         'name'    - =>  'unseen_notify',
 
-         'caption' - =>  _("Enable Unread Message Notification"),
 
-         'caption' - =>  _("Unread Message Notification Type"),
 
-         'name'    - =>  'collapse_folders',
 
-         'caption' - =>  _("Enable Collapsable Folders"),
 
-         'caption' - =>  _("Enable Cumulative Unread Message Notification"),
 
-         'caption' - =>  _("Show Clock on Folders Panel"),
 
-         'posvals' - =>  array( '0'- =>  _("International date and time"),
 
-                             '1' - =>  _("American date and time"),
 
-                             '2' - =>  _("European date and time"),
 
-                             '3' - =>  _("Show weekday and time"),
 
-                             '4' - =>  _("Show time with seconds"),
 
-         'name'    - =>  'search_memory',
 
-         'caption' - =>  _("Memory Search"),
 
-         'posvals' - =>  array( 0- =>  _("Disabled"),
 
-         'name'    - =>  'show_only_subscribed_folders',
 
-         'caption' - =>  _("Show only subscribed folders"),
 
-     /*** Load the General Options into the array ***/ 
-         'name'    - =>  'mailbox_select_style',
 
-         'caption' - =>  _("Selection List Style"),
 
-                 _("Long:") - .  ' "'- .  _("Folder")- .  $delim- .  _("Subfolder")- .  '"',
 
-                 _("Indented:") - .  " \"$nbsp$nbsp$nbsp$nbsp"- .  _("Subfolder")- .  '"',
 
-                 _("Delimited:") - .  " \".$nbsp"- .  _("Subfolder")- .  '"'),
 
-     /* Assemble all this together and return it as our result. */ 
- /******************************************************************/ 
- /** Define any specialized save functions for this option page. ***/ 
- /******************************************************************/ 
-  * Saves the trash folder option. 
-  * @param object $option SquirrelOption object 
-         // make sure that it is not INBOX 
-         /* Set move to trash on or off. */ 
-         setPref($data_dir, $username, 'move_to_trash', $trash_on); 
-         /* Now just save the option as normal. */ 
-  * Saves the sent folder option. 
-  * @param object $option SquirrelOption object 
-         // make sure that it is not INBOX 
-         /* Set move to sent on or off. */ 
-         setPref($data_dir, $username, 'move_to_sent', $sent_on); 
-         /* Now just save the option as normal. */ 
-  * Saves the draft folder option. 
-  * @param object $option SquirrelOption object 
-         // make sure that it is not INBOX 
-         /* Set move to draft on or off. */ 
-         setPref($data_dir, $username, 'save_as_draft', $draft_on); 
-         /* Now just save the option as normal. */ 
 
	
		Documentation generated on Mon, 13 Jan 2020 04:22:30 +0100 by phpDocumentor 1.4.3