X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=config%2Fconfig_default.php;h=a5ae959a7265f7784c5c37062a36b112a8f57dc2;hp=2cc2802a5f40fe58624964b734ca4a9c951dc7a0;hb=52ed2f8826e0497d4683280183feb98f805a78e4;hpb=a1b33f64816980d27b31b02373cd0a31d959ed47 diff --git a/config/config_default.php b/config/config_default.php index 2cc2802a..a5ae959a 100644 --- a/config/config_default.php +++ b/config/config_default.php @@ -1,390 +1,518 @@ 'memberdir.netscape.com', + * 'name' => 'Netcenter Member Directory', + * 'base' => 'ou=member_directory,o=netcenter.com' + * ); + */ global $ldap_server; -// -// EXAMPLE: -// -// $ldap_server[0] = Array( -// "host" => "memberdir.netscape.com", -// "name" => "Netcenter Member Directory", -// "base" => "ou=member_directory,o=netcenter.com"); - -// 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 defined, the addressbooks are stored in files -// in the data dir. -// -// global $addrbook_dsn; -// $addrbook_dsn = 'mysql://user:pass@hostname/dbname'; - - - // you have an option to chose between javascript or html version of - // address book searching. - // 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 alsy which folders to do this to. - // 1=none, 2=inbox, 3=all - // $default_unseen_type specifies the type of notification to give the - // users by default. - // 1=(4), 2=(4,25) - global $default_unseen_notify, $default_unseen_type; - $default_unseen_notify = 2; - $default_unseen_type = 1; + +/** + * 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'; + +/** + * 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 $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; - - 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"; - -// Do not add the closing PHP tag here just because we want to avoid -// the potential for parsing errors if there is a newline added +/** + * 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. + */ + +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. + * For instance, for the 'sqclock' plugin, you'd put a line like + * the following. + * $plugins[0] = 'sqclock'; + * $plugins[1] = 'attachment_common'; + */ + +/** + * 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; + */ + +global $edit_identity, $edit_name; +$edit_identity = true; +$edit_name = true; + + +/** + * If you want to enable server side thread sorting options + * Your IMAP server must support the THREAD extension for + * this to work. + */ + +global $allow_thread_sort; +$allow_thread_sort = false; + +/** + * to use server-side sorting instead of SM client side. + * Your IMAP server must support the SORT extension for this + * to work. + */ + +global $allow_server_sort; +$allow_server_sort = false; + +/** + * This enables the no select fix for Cyrus when subfolders + * exist but parent folders do not + */ + +global $noselect_fix_enable; +$noselect_fix_enable = 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; +$no_list_for_subscribe = 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. + */ +?>