X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=config%2Fconfig_default.php;h=bbe4389b7c884a97606859e8f160441893edcb82;hp=a5ae959a7265f7784c5c37062a36b112a8f57dc2;hb=6395c46db0a732860324fa43886b6ca806ad2588;hpb=52ed2f8826e0497d4683280183feb98f805a78e4 diff --git a/config/config_default.php b/config/config_default.php index a5ae959a..bbe4389b 100644 --- a/config/config_default.php +++ b/config/config_default.php @@ -1,4 +1,5 @@ 'ou=member_directory,o=netcenter.com' * ); */ -global $ldap_server; - -/** - * Database-driven private addressbooks - * DSN (Data Source Name) for a database where the private - * addressbooks are stored. See doc/db-backend.txt for more info. - * If it is not set, the addressbooks are stored in files - * in the data dir. - * 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. - */ -global $addrbook_dsn, $addrbook_table; -$addrbook_dsn = ''; -$addrbook_table = 'address'; - -global $prefs_dsn, $prefs_table; -$prefs_dsn = ''; -$prefs_table = 'userprefs'; +// Add your ldap server options here /** * Users may search their addressbook via either a plain HTML or Javascript @@ -415,43 +542,16 @@ $prefs_table = 'userprefs'; * true = javascript * false = html */ -global $default_use_javascript_addr_book; $default_use_javascript_addr_book = false; -/** - * 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). - */ -global $default_unseen_notify, $default_unseen_type; -$default_unseen_notify = 2; -$default_unseen_type = 1; - -/** - * 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. - */ -global $invert_time; -$invert_time = false; /** - * 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. + * MOTD + * This is a message that is displayed immediately after a user logs in. */ +$motd = ""; -global $frame_top; -$frame_top = '_top'; -global $plugins; /** * To install plugins, just add elements to this array that have * the plugin directory name relative to the /plugins/ directory. @@ -460,54 +560,138 @@ global $plugins; * $plugins[0] = 'sqclock'; * $plugins[1] = 'attachment_common'; */ +// Add list of enabled plugins here + +/*** Database ***/ /** - * 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; + * 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 + * addressbooks are stored. See doc/db-backend.txt for more info. + * If it is not set, the addressbooks are stored in files + * in the data dir. + * 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. + */ +$addrbook_dsn = ''; +$addrbook_table = 'address'; +/** + * Database used to store user data + */ +$prefs_dsn = ''; +$prefs_table = 'userprefs'; +$prefs_key_field = 'prefkey'; +$prefs_user_field = 'user'; +$prefs_val_field = 'prefval'; +/** + * Global sql database options + */ +$addrbook_global_dsn = ''; +$addrbook_global_table = 'global_abook'; +$addrbook_global_writeable = false; +$addrbook_global_listing = false; -global $edit_identity, $edit_name; -$edit_identity = true; -$edit_name = true; - - +/*** Language settings ***/ /** - * If you want to enable server side thread sorting options - * Your IMAP server must support the THREAD extension for - * this to work. + * 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 */ +$squirrelmail_default_language = 'en_US'; -global $allow_thread_sort; -$allow_thread_sort = false; +/** + * This option controls what character set is used when sending mail + * and when sending HTML to the browser. Do not set this to US-ASCII, + * use ISO-8859-1 instead. + * + * You can set this option, only if $squirrelmail_default_language setting + * contains 'en_US' string. In any other case system does not allow + * making mistakes with incorrect language and charset combinations. + */ +$default_charset = 'iso-8859-1'; -/** - * to use server-side sorting instead of SM client side. - * Your IMAP server must support the SORT extension for this - * to work. +/** + * This option controls number of languages available to end user in + * language selection preferences. You can use space separated list + * of translations installed in locale/ directory or special keys + * 'all' (all languages are available) and 'none' (language selection + * is disabled, interface is set to $squirrelmail_default_language */ +$available_languages = 'all'; -global $allow_server_sort; -$allow_server_sort = false; +/** + * This options allows displaying native language names in language + * selection box. + */ +$show_alternative_names = false; /** - * This enables the no select fix for Cyrus when subfolders - * exist but parent folders do not + * 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. */ +$agresive_decoding = false; -global $noselect_fix_enable; -$noselect_fix_enable = false; +/*** Tweaks ***/ +/** + * Use experimental DHTML folder listing + */ +$advanced_tree = false; +/** + * Use older way of folder listing + */ +$oldway = false; +/** + * Use icons for message and folder markers + */ +$use_icons = false; +/** + * 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. + */ +$use_php_recode = false; +/** + * 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. + */ +$use_php_iconv = false; /** * 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 */ -global $no_list_for_subscribe; + * displayed allowing users to enter a specific folder name to subscribe to + * + * This option can't be changed by conf.pl + */ $no_list_for_subscribe = false; +/** + * This option is used only by conf.pl script to generate configuration + * menu with some colors and is provided here only as reference. + */ +$config_use_color = 2; + +/** + * This option includes special configuration options + */ +@include SM_PATH . 'config/config_local.php'; + /** * Make sure there are no characters after the PHP closing * tag below (including newline characters and whitespace).