Source for file defines.php
Documentation is available at defines.php
-  * Administrator plugin - Option definitions 
-  * @copyright 1999-2020 The SquirrelMail Project Team 
-  * @license http://opensource.org/licenses/gpl-license.php GNU Public License 
-  * @version $Id: defines.php 14845 2020-01-07 08:09:34Z pdontthink $ 
-  * @subpackage administrator 
- /** Define constants for the various option types. */ 
- define('SMOPT_TYPE_UNDEFINED', - - 1);
 
- define('SMOPT_TYPE_STRING', 0); 
- define('SMOPT_TYPE_STRLIST', 1); 
- define('SMOPT_TYPE_TEXTAREA', 2); 
- define('SMOPT_TYPE_INTEGER', 3); 
- define('SMOPT_TYPE_FLOAT', 4); 
- define('SMOPT_TYPE_BOOLEAN', 5); 
- define('SMOPT_TYPE_HIDDEN', 6); 
- define('SMOPT_TYPE_COMMENT', 7); 
- define('SMOPT_TYPE_NUMLIST', 8); 
- define('SMOPT_TYPE_TITLE', 9); 
- define('SMOPT_TYPE_THEME', 10); 
- define('SMOPT_TYPE_PLUGINS', 11); 
- define('SMOPT_TYPE_LDAP', 12); 
- define('SMOPT_TYPE_CUSTOM', 13); 
- define('SMOPT_TYPE_EXTERNAL', 32); 
-  * Returns reformated aTemplateSet array data for option selection 
-  * @return array template selection options 
-     foreach ($aTemplateSet as $iTemplateID - =>  $aTemplate) {
 
-         $ret[$aTemplate['ID']] - =  $aTemplate['NAME'];
 
- $language_values - =  array( );
 
- foreach ($languages as $lang_key - =>  $lang_attributes) {
 
-     if (- isset ($lang_attributes['NAME'])) {
 
-         $language_values[$lang_key] - =  $lang_attributes['NAME'];
 
- asort( $language_values ); 
- $language_values - =  array_merge(array(''- =>  _("Default")), $language_values);
 
- $left_size_values - =  array();
 
- for ($lsv - =  100; $lsv- <=  300; $lsv- +=  10) {
 
-     $left_size_values[$lsv] - =  "$lsv "- .  _("pixels");
 
- $defcfg - =  array( '$config_version'- =>  array( 'name'- =>  _("Config File Version"),
 
-                  'SM_ver' - =>  array( 'name'- =>  _("SquirrelMail Version"),
 
-                  'PHP_ver' - =>  array( 'name'- =>  _("PHP Version"),
 
-                  /* --------------------------------------------------------*/ 
-                  'Group1' - =>  array( 'name'- =>  _("Organization Preferences"),
 
-                  '$org_name' - =>  array( 'name'- =>  _("Organization Name"),
 
-                  '$org_logo' - =>  array( 'name'- =>  _("Organization Logo"),
 
-                                        'default' - =>  '../images/sm_logo.png'),
 
-                  '$org_logo_width' - =>  array( 'name'- =>  _("Organization Logo Width"),
 
-                  '$org_logo_height' - =>  array( 'name'- =>  _("Organization Logo Height"),
 
-                  '$org_title' - =>  array( 'name'- =>  _("Organization Title"),
 
-                  '$signout_page' - =>  array( 'name'- =>  _("Signout Page"),
 
-                  '$provider_uri' - =>  array( 'name'- =>  _("Provider Link URI"),
 
-                  '$provider_name' - =>  array( 'name'- =>  _("Provider Name"),
 
-                  '$frame_top' - =>  array( 'name'- =>  _("Top Frame"),
 
-                  /* --------------------------------------------------------*/ 
-                  'Group2' - =>  array( 'name'- =>  _("Server Settings"),
 
-                  '$domain' - =>  array( 'name'- =>  _("Mail Domain"),
 
-                  '$imapServerAddress' - =>  array( 'name'- =>  _("IMAP Server Address"),
 
-                  '$imapPort' - =>  array( 'name'- =>  _("IMAP Server Port"),
 
-                  '$imap_server_type' - =>  array( 'name'- =>  _("IMAP Server Type"),
 
-                                                'posvals' - =>  array( 'cyrus'- =>  _("Cyrus IMAP server"),
 
-                                                                    'uw' - =>  _("University of Washington's IMAP server"),
 
-                                                                    'exchange' - =>  _("Microsoft Exchange IMAP server"),
 
-                                                                    'courier' - =>  _("Courier IMAP server"),
 
-                                                                    'macosx' - =>  _("Mac OS X Mailserver"),
 
-                                                                    'hmailserver' - =>  _("hMailServer IMAP server"),
 
-                                                                    'mercury32' - =>  _("Mercury/32 IMAP server"),
 
-                                                                    'bincimap' - =>  _("Binc IMAP server"),
 
-                                                                    'dovecot' - =>  _("Dovecot IMAP server"),
 
-                                                                    'other' - =>  _("Not one of the above servers") ) ),
 
-                  '$optional_delimiter' - =>  array( 'name'- =>  _("IMAP Folder Delimiter"),
 
-                                                  'comment' - =>  _("Use "detect" to auto-detect."),
 
-                  '$use_imap_tls' - =>  array( 'name'- =>  _("IMAP Connection Security"),
 
-                                            'posvals' - =>  array( 0- =>  _("Plain text connection"),
 
-                                                                1 - =>  _("Secure IMAP (TLS) connection"),
 
-                                                                2 - =>  _("IMAP STARTTLS connection")),
 
-                                            'comment' - =>  _("Requires higher PHP version and special functions. See SquirrelMail documentation."),
 
-                  '$imap_auth_mech' - =>  array( 'name'- =>  _("IMAP Authentication Type"),
 
-                                              'posvals' - =>  array('login'- =>  _("IMAP login"),
 
-                                                                 'cram-md5' - =>  'CRAM-MD5',
 
-                                                                 'digest-md5' - =>  'DIGEST-MD5'),
 
-                  '$useSendmail' - =>  array( 'name'- =>  _("Use Sendmail Binary"),
 
-                                           'comment' - =>  _("Choose "no" for SMTP") ),
 
-                  '$sendmail_path' - =>  array( 'name'- =>  _("Sendmail Path"),
 
-                  '$sendmail_args' - =>  array( 'name'- =>  _("Sendmail Arguments"),
 
-                  '$smtpServerAddress' - =>  array( 'name'- =>  _("SMTP Server Address"),
 
-                  '$smtpPort' - =>  array( 'name'- =>  _("SMTP Server Port"),
 
-                  '$use_smtp_tls' - =>  array( 'name'- =>  _("SMTP Connection Security"),
 
-                                            'posvals' - =>  array( 0- =>  _("Plain text connection"),
 
-                                                                1 - =>  _("Secure SMTP (TLS) connection"),
 
-                                                                2 - =>  _("SMTP STARTTLS connection")),
 
-                                            'comment' - =>  _("Requires higher PHP version and special functions. See SquirrelMail documentation."),
 
-                  '$smtp_auth_mech' - =>  array( 'name'- =>  _("SMTP Authentication Type"),
 
-                                              'posvals' - =>  array('none'- =>  _("No SMTP auth"),
 
-                                                                 'login' - =>  _("Login (plain text)"),
 
-                                                                 'cram-md5' - =>  'CRAM-MD5',
 
-                                                                 'digest-md5' - =>  'DIGEST-MD5'),
 
-                  '$smtp_sitewide_user' - =>  array( 'name'- =>  _("Custom SMTP AUTH username"),
 
-                  '$smtp_sitewide_pass' - =>  array( 'name'- =>  _("Custom SMTP AUTH password"),
 
-                  '$pop_before_smtp' - =>  array( 'name'- =>  _("POP3 Before SMTP?"),
 
-                  '$encode_header_key' - =>  array( 'name'- =>  _("Header Encryption Key"),
 
-                  '$invert_time' - =>  array( 'name'- =>  _("Invert Time"),
 
-                  /* --------------------------------------------------------*/ 
-                  'Group3' - =>  array( 'name'- =>  _("Folders Defaults"),
 
-                  '$default_folder_prefix' - =>  array( 'name'- =>  _("Default Folder Prefix"),
 
-                  '$show_prefix_option' - =>  array( 'name'- =>  _("Show Folder Prefix Option"),
 
-                  '$trash_folder' - =>  array( 'name'- =>  _("Trash Folder"),
 
-                  '$sent_folder' - =>  array( 'name'- =>  _("Sent Folder"),
 
-                  '$draft_folder' - =>  array( 'name'- =>  _("Draft Folder"),
 
-                  '$default_move_to_trash' - =>  array( 'name'- =>  _("By default, move to trash"),
 
-                  '$default_move_to_sent' - =>  array( 'name'- =>  _("By default, move to sent"),
 
-                  '$default_save_as_draft' - =>  array( 'name'- =>  _("By default, save as draft"),
 
-                  '$list_special_folders_first' - =>  array( 'name'- =>  _("List Special Folders First"),
 
-                  '$use_special_folder_color' - =>  array( 'name'- =>  _("Show Special Folders Color"),
 
-                  '$auto_expunge' - =>  array( 'name'- =>  _("Auto Expunge"),
 
-                  '$default_sub_of_inbox' - =>  array( 'name'- =>  _("Default Sub. of INBOX"),
 
-                  '$show_contain_subfolders_option' - =>  array( 'name'- =>  _("Show 'Contain Sub.' Option"),
 
-                  '$default_unseen_notify' - =>  array( 'name'- =>  _("Default Unseen Notify"),
 
-                  '$default_unseen_type'  - =>  array( 'name'- =>  _("Default Unseen Type"),
 
-                  '$auto_create_special' - =>  array( 'name'- =>  _("Auto Create Special Folders"),
 
-                  '$delete_folder' - =>  array( 'name'- =>  _("Auto delete folders"),
 
-                  '$noselect_fix_enable' - =>  array( 'name'- =>  _("Enable /NoSelect folder fix"),
 
-                  /* --------------------------------------------------------*/ 
-                  'Group4' - =>  array( 'name'- =>  _("General Options"),
 
-                  '$data_dir' - =>  array( 'name'- =>  _("Data Directory"),
 
-                  '$attachment_dir' - =>  array( 'name'- =>  _("Temp Directory"),
 
-                  '$dir_hash_level' - =>  array( 'name'- =>  _("Hash Level"),
 
-                                              'posvals' - =>  array( 0- =>  _("Hash Disabled"),
 
-                  '$default_left_size' - =>  array( 'name'- =>  _("Default Left Size"),
 
-                                                 'posvals' - =>  $left_size_values ),
 
-                  '$force_username_lowercase' - =>  array( 'name'- =>  _("Usernames in Lowercase"),
 
-                  '$default_use_priority'  - =>  array( 'name'- =>  _("Allow use of priority"),
 
-                  '$hide_sm_attributions' - =>  array( 'name'- =>  _("Hide SM attributions"),
 
-                  '$default_use_mdn' - =>  array( 'name'- =>  _("Enable use of delivery receipts"),
 
-                  '$edit_identity' - =>  array( 'name'- =>  _("Allow editing of identities"),
 
-                  '$edit_name' - =>  array( 'name'- =>  _("Allow editing of full name"),
 
-                  '$edit_reply_to' - =>  array( 'name'- =>  _("Allow editing of reply-to address"),
 
-                  '$hide_auth_header' - =>  array( 'name'- =>  _("Remove username from headers"),
 
-                                                'comment' - =>  _("Used only when identities can't be modified"),
 
-                  '$disable_server_sort' - =>  array( 'name'- =>  _("Disable server-side sorting"),
 
-                  '$disable_thread_sort' - =>  array( 'name'- =>  _("Disable server-side thread sorting"),
 
-                  '$allow_charset_search' - =>  array( 'name'- =>  _("Allow server charset search"),
 
-                  '$allow_advanced_search' - =>  array( 'name'- =>  _("Search functions"),
 
-                                                     'posvals' - =>  array( 0- =>  _("Only basic search"),
 
-                                                                         1 - =>  _("Only advanced search"),
 
-                                                                         2 - =>  _("Both search functions") ),
 
-                  '$session_name' - =>  array( 'name'- =>  _("PHP session name"),
 
-                  '$time_zone_type' - =>  array( 'name'- =>  _("Time Zone Configuration"),
 
-                                              'posvals' - =>  array( 0- =>  _("Standard GNU C time zones"),
 
-                                                                  1 - =>  _("Strict time zones"),
 
-                                                                  2 - =>  _("Custom GNU C time zones"),
 
-                                                                  3 - =>  _("Custom strict time zones")),
 
-                  '$config_location_base' - =>  array( 'name'- =>  _("Location base"),
 
-                  '$use_transparent_security_image' - =>  array( 'name'- =>  _("Use transparent security image"),
 
-                  '$display_imap_login_error' - =>  array( 'name'- =>  _("Show login error message directly from IMAP server instead of generic one"),
 
-                  /* --------------------------------------------------------*/ 
-                  'Group5' - =>  array( 'name'- =>  _("Message of the Day"),
 
-                  '$motd' - =>  array( 'name'- =>  _("Message of the Day"),
 
-                  /* ---- Database settings ---- */ 
-                  'Group6' - =>  array( 'name'- =>  _("Database"),
 
-                  '$addrbook_dsn' - =>  array( 'name'- =>  _("Address book DSN"),
 
-                  '$addrbook_table' - =>  array( 'name'- =>  _("Address book table"),
 
-                                              'default' - =>  'address' ),
 
-                  '$prefs_dsn' - =>  array( 'name'- =>  _("Preferences DSN"),
 
-                  '$prefs_table' - =>  array( 'name'- =>  _("Preferences table"),
 
-                                           'default' - =>  'userprefs' ),
 
-                  '$prefs_user_field' - =>  array('name'- =>  _("Preferences username field"),
 
-                  '$prefs_user_size' - =>  array( 'name'- =>  _("Size of username field"),
 
-                  '$prefs_key_field' - =>  array('name'- =>  _("Preferences key field"),
 
-                                              'default' - =>  'prefkey' ),
 
-                  '$prefs_key_size' - =>  array( 'name'- =>  _("Size of key field"),
 
-                  '$prefs_val_field' - =>  array('name'- =>  _("Preferences value field"),
 
-                                              'default' - =>  'prefval' ),
 
-                  '$prefs_val_size' - =>  array( 'name'- =>  _("Size of value field"),
 
-                  '$addrbook_global_dsn' - =>  array( 'name'- =>  _("Global address book DSN"),
 
-                  '$addrbook_global_table' - =>  array( 'name'- =>  _("Global address book table"),
 
-                                              'default' - =>  'global_abook' ),
 
-                  '$addrbook_global_writeable' - =>  array( 'name'- =>  _("Allow writing into global address book"),
 
-                  '$addrbook_global_listing' - =>  array( 'name'- =>  _("Allow listing of global address book"),
 
-                  /* ---- Language settings ---- */ 
-                  'Group9' - =>  array( 'name'- =>  _("Language settings"),
 
-                  '$squirrelmail_default_language' - =>  array( 'name'- =>  _("Default Language"),
 
-                                                             'posvals' - =>  $language_values ),
 
-                  '$default_charset' - =>  array( 'name'- =>  _("Default Charset"),
 
-                                               'posvals' - =>  array( 'iso-8859-1'- =>  'iso-8859-1',
 
-                                                                   'iso-8859-2' - =>  'iso-8859-2',
 
-                                                                   'iso-8859-7' - =>  'iso-8859-7',
 
-                                                                   'iso-8859-9' - =>  'iso-8859-9',
 
-                                                                   'iso-8859-15' - =>  'iso-8859-15',
 
-                                                                   'windows-1251' - =>  'windows-1251',
 
-                                                                   'windows-1255' - =>  'windows-1255',
 
-                                                                   'windows-1256' - =>  'windows-1256',
 
-                                                                   'iso-2022-jp' - =>  'iso-2022-jp' ) ),
 
-                  '$show_alternative_names'  - =>  array( 'name'- =>  _("Show alternative language names"),
 
-                  '$aggressive_decoding'  - =>  array( 'name'- =>  _("Enable aggressive decoding"),
 
-                  '$lossy_encoding'  - =>  array( 'name'- =>  _("Enable lossy encoding"),
 
-                  'Group10' - =>  array( 'name'- =>  _("Tweaks"),
 
-                  '$use_icons'  - =>  array( 'name'- =>  _("Use icons"),
 
-                  '$use_iframe' - =>  array( 'name'- =>  _("Use inline frames with HTML mails"),
 
-                  '$use_php_recode'  - =>  array( 'name'- =>  _("Use PHP recode functions"),
 
-                  '$use_php_iconv'  - =>  array( 'name'- =>  _("Use PHP iconv functions"),
 
-                  '$allow_remote_configtest' - =>  array( 'name'- =>  _("Allow remote configuration test"),
 
-                  /* ---- Settings of address books ---- */ 
-                  'Group11' - =>  array( 'name'- =>  _("Address Books"),
 
-                  '$default_use_javascript_addr_book' - =>  array( 'name'- =>  _("Default Javascript Addressbook"),
 
-                  '$abook_global_file'           - =>  array( 'name'- =>  _("Global address book file"),
 
-                  '$abook_global_file_writeable' - =>  array( 'name'- =>  _("Allow writing into global address book file"),
 
-                  '$abook_global_file_listing'   - =>  array( 'name'- =>  _("Allow listing of global address book"),
 
-                  '$abook_file_line_length' - =>  array( 'name'- =>  _("Address book file line length"),
 
-                  /* --------------------------------------------------------*/ 
-                  'Group7' - =>  array( 'name'- =>  _("Templates"),
 
-                  '$theme_css' - =>  array( 'name'- =>  _("Style Sheet URL (css)"),
 
-                  '$default_fontsize' - =>  array( 'name'- =>  _("Default font size"),
 
-                  '$default_fontset' - =>  array( 'name'- =>  _("Default font set"),
 
-                  '$templateset_default' - =>  array( 'name'- =>  _("Default template"),
 
-                  '$templateset_fallback' - =>  array( 'name'- =>  _("Fallback template"),
 
-                  '$theme_default' - =>  array( 'name'- =>  _("Default theme"),
 
-                                             'comment' - =>  _("Use index number of theme") ),
 
-                  /* --------------------------------------------------------*/ 
-                  '$config_use_color' - =>  array( 'name'- =>  '',
 
-                  '$no_list_for_subscribe' - =>  array( 'name'- =>  '',
 
-                  /* --------------------------------------------------------*/ 
 
	
		Documentation generated on Mon, 13 Jan 2020 04:22:19 +0100 by phpDocumentor 1.4.3