X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=config%2Fconfig_default.php;h=67bcc8f78b38d7af240eef96ae5d501dd01ad526;hb=30460a05016c7e066ad7b28df7788539e4054a99;hp=1cfe25d015b9353dd95b6111004c75b26eeba8c1;hpb=5479d7092f359d69ca0186daf8cf399ef4d12922;p=squirrelmail.git diff --git a/config/config_default.php b/config/config_default.php index 1cfe25d0..67bcc8f7 100644 --- a/config/config_default.php +++ b/config/config_default.php @@ -1,203 +1,1247 @@ -mailing list"; - -// Whether or not to use a special color for special folders. If not, special -// folders will be the same color as the other folders - $use_special_folder_color = true; - -// Many servers store mail in your home directory. With this, they -// store them in a subdirectory: ~/mail or ~/Mail, etc. If your -// server does this, please set this to what the default mail folder -// should be. This is still a user preference, so they can change -// it if it is different for each user. -// -// Example: -// $folder_prefix = "mail/"; -// -- or -- -// $folder_prefix = "Mail/folders/"; -// -// If you do not use this, please set it to "". - $folder_prefix = ""; - -// The following are related to deleting messages. -// $move_to_trash -// - if this is set to "true", when "delete" is pressed, it -// will attempt to move the selected messages to the folder -// named $trash_folder. If it's set to "false", we won't even -// attempt to move the messages, just delete them. -// $trash_folder -// - This is the path to the default trash folder. For Cyrus -// IMAP, it would be "INBOX.Trash", but for UW it would be -// "Trash". We need the full path name here. -// $auto_expunge -// - If this is true, when a message is moved or copied, the -// source mailbox will get expunged, removing all messages -// marked "Deleted". -// $sent_folder -// - This is the path to where Sent messages will be stored. - - $default_move_to_trash = true; - $trash_folder = "INBOX.Trash"; - $auto_expunge = true; - $sent_folder = "INBOX.Sent"; - -// Special Folders are folders that can't be manipulated like normal -// user created folders can. A couple of examples would be -// "INBOX.Trash", "INBOX.Drafts". We have them set to Netscape's -// default mailboxes, but this obviously can be changed. To add one, -// just add a new number to the array. - - $special_folders[0] = "INBOX"; // The first one has to be the inbox (whatever the name is) - $special_folders[1] = $trash_folder; - $special_folders[2] = $sent_folder; - $special_folders[3] = "INBOX.Drafts"; - $special_folders[4] = "INBOX.Templates"; - -// Whether or not to list the special folders first (true/false) - $list_special_folders_first = true; - -// Are all your folders subfolders of INBOX (i.e. cyrus IMAP server) -// If you are not sure, set it to false. - $default_sub_of_inbox = true; - -// Some IMAP daemons (UW) handle folders weird. They only allow a -// folder to contain either messages or other folders, not both at -// the same time. This option controls whether or not to display an -// option during folder creation. The option toggles which type of -// folder it should be. -// -// If this option confuses you, make it "true". You can't hurt -// anything if it's true, but some servers will respond weird if it's -// false. (Cyrus works fine whether it's true OR false). - - $show_contain_subfolders_option = 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. For cyrillic it is best to use KOI8-R, -// since this implementation is faster than the alternatives. - $default_charset = "iso-8859-1"; - -// Whether or not to use META tags and automatically forward after an -// action has been completed. - $auto_forward = true; - -// Path to the data/ directory -// It is a possible security hole to have a writable directory -// under the web server's root directory (ex: /home/httpd/html). -// For this reason, it is possible to put the data directory -// anywhere you would like. The path name can be absolute or -// relative (to the config directory). It doesn't matter. Here are -// two examples: -// -// Absolute: -// $data_dir = "/usr/local/squirrelmail/data/"; -// -// Relative (to the config directory): -// $data_dir = "../data/"; - - $data_dir = "../data/"; - -// Path to directory used for storing attachments while a mail is -// being sent. There are a few security considerations regarding this -// directory: -// - It should have the permission 733 (rwx-wx-wx) to make it -// impossible for a random person with access to the webserver to -// list files in this directory. Confidential data might be laying -// around there -// - Since the webserver is not able to list the files in the content -// is also impossible for the webserver to delete files lying around -// there for too long. -// - It should probably be another directory than data_dir. - - $attachment_dir = $data_dir; - -// This is the default size of the left folder list. Default is 200, -// but you can set it to whatever you wish. - - $default_left_size = 200; - -// Themes -// You can define your own theme and put it in this directory. You must -// call it as the example below. You can name the theme whatever you -// want. For an example of a theme, see the ones included in the config -// directory. -// -// You can download themes from http://squirrelmail.sourceforge.net/index.php3?page=10 -// -// To add a new theme to the options that users can choose from, just add -// a new number to the array at the bottom, and follow the pattern. - - // The first one HAS to be here, and is your system's default theme. - // It can be any theme you want - $theme[0]["PATH"] = "../config/default_theme.php"; - $theme[0]["NAME"] = "Default"; - - $theme[1]["PATH"] = "../config/sandstorm_theme.php"; - $theme[1]["NAME"] = "Sand Storm"; - - $theme[2]["PATH"] = "../config/deepocean_theme.php"; - $theme[2]["NAME"] = "Deep Ocean"; - - $theme[3]["PATH"] = "../config/slashdot_theme.php"; - $theme[3]["NAME"] = "Slashdot"; - - $theme[4]["PATH"] = "../config/purple_theme.php"; - $theme[4]["NAME"] = "Purple"; - - $theme[5]["PATH"] = "../config/forest_theme.php"; - $theme[5]["NAME"] = "Forest"; - - $theme[6]["PATH"] = "../config/ice_theme.php"; - $theme[6]["NAME"] = "Ice"; - - $theme[7]["PATH"] = "../config/seaspray_theme.php"; - $theme[7]["NAME"] = "Sea Spray"; - - -// LDAP server(s) -// -// Array of arrays with LDAP server parameters. See -// functions/abook_ldap_server.php for a list of possible -// parameters - - $ldap_server[0] = Array("host" => "memberdir.netscape.com", - "name" => "Netcenter Member Directory", - "base" => "ou=member_directory,o=netcenter.com"); - - $ldap_server[1] = Array("host" => "ldap.bigfoot.com", - "name" => "Bigfoot Directory", - "base" => "", - "charset" => "iso8859-1"); - -?> +_rpc", as SquirrelMail will assume + * any template sets ending in "_rpc" are intended + * for its RPC interface only) + * + * @global string $templateset_default + * @global string $templateset_fallback + * @global string $rpc_templateset + */ +$templateset_default = 'default'; +$templateset_fallback = 'default'; +$rpc_templateset = 'default_rpc'; + +$aTemplateSet[0]['ID'] = 'default'; +$aTemplateSet[0]['NAME'] = 'Default'; +$aTemplateSet[1]['ID'] = 'default_advanced'; +$aTemplateSet[1]['NAME'] = 'Advanced'; + +/** + * Default interface font size. + * @global string $default_fontsize + * @since 1.5.1 + */ +$default_fontsize = ''; + +/** + * Default font set + * @global string $default_fontset + * @since 1.5.1 + */ +$default_fontset = ''; + +/** + * List of available fontsets. + * @global array $fontsets + * @since 1.5.1 + */ +$fontsets = array(); +$fontsets['serif'] = 'serif'; +$fontsets['sans'] = 'helvetica,arial,sans-serif'; +$fontsets['comicsans'] = 'comic sans ms,sans-serif'; +$fontsets['verasans'] = 'bitstream vera sans,verdana,sans-serif'; +$fontsets['tahoma'] = 'tahoma,sans-serif'; + +/** + * LDAP server(s) + * Array of arrays with LDAP server parameters. See + * functions/abook_ldap_server.php for a list of possible + * parameters + * + * EXAMPLE: + * $ldap_server[0] = Array( + * 'host' => '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. + */ +// 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 'squirrelspell' plugin, you'd put a line like + * the following. + * $plugins[] = 'squirrelspell'; + * $plugins[] = 'listcommands'; + */ +// Add list of enabled plugins here + + +/** + * To disable all plugins regardless of any that are installed + * above, turn on $disable_plugins. To disable them ONLY for + * one user, put that username into $disable_plugins_user. + * @global boolean $disable_plugins + * @global string $disable_plugins_user + * @since 1.5.2 + */ +$disable_plugins = false; +$disable_plugins_user = ''; + + +/*** Database ***/ +/** + * Read the administrator's manual 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 the administrator's manual 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. + * + * NOTE: please see security note at the top of this file when + * entering a password. + */ +$addrbook_dsn = ''; +$addrbook_table = 'address'; +/** + * Database used to store user data + */ +$prefs_dsn = ''; +$prefs_table = 'userprefs'; +/** + * Preference key field + * @global string $prefs_key_field + */ +$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 ***/ +/** + * DSN of global address book database + * @global string $addrbook_global_dsn + * @since 1.5.1 and 1.4.4 + */ +$addrbook_global_dsn = ''; +/** + * Table used for global database address book + * @global string $addrbook_global_table + * @since 1.5.1 and 1.4.4 + */ +$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 ***/ +/** + * 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'; + +/** + * 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'; + +/** + * 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; + +/** + * 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; + +/** + * 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; + +/** + * 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 = ''; + +/*** 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; + +/** + * 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; + +/** + * 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; + +/** + * Output Buffering + * + * In some cases, buffering all output allows more complex functionality, + * especially for plugins that want to add headers on hooks that are beyond + * the point of output having been sent to the browser otherwise (although + * most plugins that need this feature will turn it on automatically by + * themselves). + * + * It is also possible to define a custom output handler as needed by special + * environments. If $buffered_output_handler is non-empty, a function named + * the same as the value of $buffered_output_handler should be defined in + * config_local.php. + * + */ +$buffer_output = false; +$buffered_output_handler = ''; + +/** + * Allow Remote configtest Access + * + * Controls remote configuration checks + * @global boolean $allow_remote_configtest + * @since 1.5.1 + */ +$allow_remote_configtest = false; + +/** + * SquirrelMail Debug Mode + * + * Various debugging levels can be enabled using this setting. + * More than one mode can be used at once by combining them + * with pipes ("|"). See the SM_DEBUG_MODE_* constants in + * include/constants.php + */ +$sm_debug_mode = SM_DEBUG_MODE_OFF; + +/** + * "Secured Configuration" Mode + * + * Enable/disable "Secured Configuration" mode, wherein certain + * security-sensitive configuration settings are made immutable + * by other code. + */ +$secured_config = true; + +/** + * HTTPS Port + * + * This is the HTTPS (SSL-secured HTTP) port. It can be left empty, + * in which case SquirrelMail will assume the standard port 443. + * Make sure to set this correctly when serving HTTPS on a non- + * standard port. + */ +$sq_https_port = 443; + +/** + * Ignore HTTP_X_FORWARDED_* headers? + * + * Whether or not HTTP_X_FORWARDED_* headers are respected by + * SquirrelMail (or plugins). + */ +$sq_ignore_http_x_forwarded_headers = true; + +/** + * 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; + +/** + * Ask User for Personal Information on login + * + * When a user logs in that doesn't have an email address configured, + * redirect him/her to the options page with a request to fill in their + * personal information. + * + * @global bool $ask_user_info + */ +$ask_user_info = true; +