X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=config%2Fconfig_default.php;h=b5c2e4191e8eacaabdad24de1855daad0efb23db;hp=656c9ddfccb6204dcfbe0501a1f84b8cfb2ce348;hb=acd7fdf263929e876918bc434086626ec871afb1;hpb=ca85aabeaed107e6b7297c9f762428301d28839b diff --git a/config/config_default.php b/config/config_default.php index 656c9ddf..b5c2e419 100644 --- a/config/config_default.php +++ b/config/config_default.php @@ -1,110 +1,331 @@ 'memberdir.netscape.com', * 'name' => 'Netcenter Member Directory', * 'base' => 'ou=member_directory,o=netcenter.com' - * ); + * ); + * + * NOTE: please see security note at the top of this file when + * entering a password. */ -global $ldap_server; +// Add your ldap server options here +/** + * Javascript in Addressbook Control + * + * Users may search their addressbook via either a plain HTML or Javascript + * enhanced user interface. This option allows you to set the default choice. + * Set this default choice as either: + * true = javascript + * false = html + * @global bool $default_use_javascript_addr_book + */ +$default_use_javascript_addr_book = false; + +/** + * Shared filebased address book + * @global string $abook_global_file + * @since 1.5.1 and 1.4.4 + */ +$abook_global_file = ''; + +/** + * Writing into shared address book control + * @global bool $abook_global_file_writeable + * @since 1.5.1 and 1.4.4 + */ +$abook_global_file_writeable = false; + +/** + * Listing of shared address book control + * @global bool $abook_global_file_listing + * @since 1.5.1 + */ +$abook_global_file_listing = true; + +/** + * Controls file based address book entry size + * + * This setting controls space allocated to file based address book records. + * End users will be unable to save address book entry, if total entry size + * (quoted address book fields + 4 delimiters + linefeed) exceeds allowed + * address book length size. + * + * Same setting is applied to personal and global file based address books. + * + * It is strongly recommended to keep default setting value. Change it only + * if you really want to store address book entries that are bigger than two + * kilobytes (2048). + * @global integer $abook_file_line_length + * @since 1.5.2 + */ +$abook_file_line_length = 2048; + +/** + * MOTD + * + * This is a message that is displayed immediately after a user logs in. + * @global string $motd + */ +$motd = ""; + + +/** + * To install plugins, just add elements to this array that have + * the plugin directory name relative to the /plugins/ directory. + * For instance, for the 'sqclock' plugin, you'd put a line like + * the following. + * $plugins[] = 'sqclock'; + * $plugins[] = 'attachment_common'; + */ +// Add list of enabled plugins here + + +/*** Database ***/ +/** + * Read doc/database.txt in order to get more information + * about these settings. + */ /** * Database-driven private addressbooks * DSN (Data Source Name) for a database where the private @@ -399,112 +837,252 @@ global $ldap_server; * The DSN is in the format: mysql://user:pass@hostname/dbname * The table is the name of the table to use within the * specified database. + * + * NOTE: please see security note at the top of this file when + * entering a password. */ -global $addrbook_dsn, $addrbook_table; $addrbook_dsn = ''; $addrbook_table = 'address'; - -global $prefs_dsn, $prefs_table; +/** + * Database used to store user data + */ $prefs_dsn = ''; $prefs_table = 'userprefs'; - /** - * Users may search their addressbook via either a plain HTML or Javascript - * enhanced user interface. This option allows you to set the default choice. - * Set this default choice as either: - * true = javascript - * false = html + * Preference key field + * @global string $prefs_key_field */ -global $default_use_javascript_addr_book; -$default_use_javascript_addr_book = false; +$prefs_key_field = 'prefkey'; +/** + * Size of preference key field + * @global integer $prefs_key_size + * @since 1.5.1 + */ +$prefs_key_size = 64; +/** + * Preference owner field + * @global string $prefs_user_field + */ +$prefs_user_field = 'user'; +/** + * Size of preference owner field + * @global integer $prefs_user_size + * @since 1.5.1 + */ +$prefs_user_size = 128; +/** + * Preference value field + * @global string $prefs_val_field + */ +$prefs_val_field = 'prefval'; +/** + * Size of preference key field + * @global integer $prefs_val_size + * @since 1.5.1 + */ +$prefs_val_size = 65536; +/*** Global sql database options ***/ /** - * These next two options set the defaults for the way that the - * users see their folder list. - * $default_unseen_notify - * Specifies whether or not the users will see the number of - * unseen in each folder by default and also which folders to - * do this to. Valid values are: 1=none, 2=inbox, 3=all. - * $default_unseen_type - * Specifies the type of notification to give the users by - * default. Valid choice are: 1=(4), 2=(4,25). + * DSN of global address book database + * @global string $addrbook_global_dsn + * @since 1.5.1 and 1.4.4 */ -global $default_unseen_notify, $default_unseen_type; -$default_unseen_notify = 2; -$default_unseen_type = 1; - +$addrbook_global_dsn = ''; /** - * If you are running on a machine that doesn't have the tm_gmtoff - * value in your time structure and if you are in a time zone that - * has a negative offset, you need to set this value to 1. This is - * typically people in the US that are running Solaris 7. + * Table used for global database address book + * @global string $addrbook_global_table + * @since 1.5.1 and 1.4.4 */ -global $invert_time; -$invert_time = false; +$addrbook_global_table = 'global_abook'; +/** + * Control writing into global database address book + * @global boolean $addrbook_global_writeable + * @since 1.5.1 and 1.4.4 + */ +$addrbook_global_writeable = false; +/** + * Control listing of global database address book + * @global boolean $addrbook_global_listing + * @since 1.5.1 and 1.4.4 + */ +$addrbook_global_listing = false; +/*** Language settings ***/ /** - * By default SquirrelMail takes up the whole browser window, - * this allows you to embed it within sites using frames. Set - * this to the frame you want it to stay in. + * Default language + * + * This is the default language. It is used as a last resort + * if SquirrelMail can't figure out which language to display. + * Language names usually consist of language code, undercore + * symbol and country code + * @global string $squirrelmail_default_language */ +$squirrelmail_default_language = 'en_US'; -global $frame_top; -$frame_top = '_top'; +/** + * Default Charset + * + * This option controls what character set is used when sending + * mail and when sending HTML to the browser. Option works only + * with US English (en_US) translation. Other translations use + * charsets that are set in translation settings. + * + * @global string $default_charset + */ +$default_charset = 'iso-8859-1'; -global $plugins; /** - * To install plugins, just add elements to this array that have - * the plugin directory name relative to the /plugins/ directory. - * For instance, for the 'sqclock' plugin, you'd put a line like - * the following. - * $plugins[0] = 'sqclock'; - * $plugins[1] = 'attachment_common'; + * Alternative Language Names Control + * + * This options allows displaying native language names in language + * selection box. + * @global bool $show_alternative_names + * @since 1.5.0 */ +$show_alternative_names = false; /** - * If you don't want to allow users to change their email address - * then you can set $edit_identity to false, if you want them to - * not be able to change their full name too then set $edit_name - * to false as well. $edit_name has no effect unless $edit_identity - * is false; + * Aggressive Decoding Control + * + * This option enables reading of Eastern multibyte encodings. + * Functions that provide this support are very cpu and memory intensive. + * Don't enable this option unless you really need it. + * @global bool $aggressive_decoding + * @since 1.5.1 */ +$aggressive_decoding = false; -global $edit_identity, $edit_name; -$edit_identity = true; -$edit_name = true; +/** + * Lossy Encoding Control + * + * This option allows charset conversions when output charset does not support + * all symbols used in original charset. Symbols unsupported by output charset + * will be replaced with question marks. + * @global bool $lossy_encoding + * @since 1.5.1 + */ +$lossy_encoding = false; +/** + * Controls use of time zone libraries + * + * Possible values: + * + * Use of any other value switches to default SquirrelMail time zone + * handling ($time_zone_type). + * @global integer $time_zone_type + * @since 1.5.1 + */ +$time_zone_type = 0; /** - * If you want to enable server side thread sorting options - * Your IMAP server must support the THREAD extension for - * this to work. + * Location base + * + * This is used to build the URL to the SquirrelMail location. + * It should contain only the protocol and hostname/port parts + * of the URL; the full path will be appended automatically. + * + * If not specified or empty, it will be autodetected. + * + * Examples: + * http://webmail.example.org + * http://webmail.example.com:8080 + * https://webmail.example.com:6691 + * + * To be clear: do not include any of the path elements, so if + * SquirrelMail is at http://www.example.net/web/mail/src/login.php, you + * write: http://www.example.net + * + * @global string $config_location_base + * @since 1.5.2 and 1.4.8 */ +$config_location_base = ''; -global $allow_thread_sort; -$allow_thread_sort = false; +/*** Tweaks ***/ +/** + * Iframe sandbox code control + * + * Use iframe to render html emails + * (temp option used during debuging of new code) + * @global bool $use_iframe + * @since 1.5.1 + */ +$use_iframe = false; -/** - * to use server-side sorting instead of SM client side. - * Your IMAP server must support the SORT extension for this - * to work. +/** + * Message Icons control + * + * Use icons for message and folder markers + * @global bool $use_icons + * @since 1.5.1 */ +$use_icons = false; -global $allow_server_sort; -$allow_server_sort = false; +/** + * PHP recode functions control + * + * Use experimental code with php recode functions when reading messages with + * different encoding. This code is faster that original SM functions, + * but it require php with recode support. + * + * Don't enable this option if you are not sure about availability of + * recode support. + * @global bool $use_php_recode + * @since 1.5.0 + */ +$use_php_recode = false; /** - * This enables the no select fix for Cyrus when subfolders - * exist but parent folders do not + * PHP iconv functions control + * + * Use experimental code with php iconv functions when reading messages with + * different encoding. This code is faster that original SM functions, + * but it require php with iconv support and works only with some translations. + * + * Don't enable this option if you are not sure about availability of + * iconv support. + * @global bool $use_php_iconv + * @since 1.5.0 */ +$use_php_iconv = false; -global $noselect_fix_enable; -$noselect_fix_enable = false; +/** + * Controls remote configuration checks + * @global boolean $allow_remote_configtest + * @since 1.5.1 + */ +$allow_remote_configtest = false; /** - * Make sure there are no characters after the PHP closing - * tag below (including newline characters and whitespace). - * Otherwise, that character will cause the headers to be - * sent and regular output to begin, which will majorly screw - * things up when we try to send more headers later. + * Subscribe Listing Control + * + * this disables listing all of the folders on the IMAP Server to + * generate the folder subscribe listbox (this can take a long time + * when you have a lot of folders). Instead, a textbox will be + * displayed allowing users to enter a specific folder name to subscribe to + * + * This option can't be changed by conf.pl + * @global bool $no_list_for_subscribe + */ +$no_list_for_subscribe = false; + +/** + * Color in config control + * + * This option is used only by conf.pl script to generate configuration + * menu with some colors and is provided here only as reference. + * @global integer $config_use_color */ -?> +$config_use_color = 2;