<?php
+
/**
* BEFORE EDITING THIS FILE!
*
/* Do not change this value. */
global $config_version;
-$config_version = '1.2.0';
+$config_version = '1.4.0';
/* Organization's logo picture (blank if none) */
global $org_logo;
-$org_logo = '../images/sm_logo.png';
+$org_logo = SM_PATH . 'images/sm_logo.png';
+
+/* The width of the logo (0 for default) */
+$org_logo_width = 308;
+
+/* The height of the logo (0 for default) */
+$org_logo_height = 111;
+
/* Organization's name */
global $org_name;
* This is the web page title that appears at the top of the browser window.
*/
global $org_title;
-$org_title = 'SquirrelMail $version';
+$org_title = "SquirrelMail $version";
/**
* Default language
* Example: In bob@foo.com, foo.com is the domain.
*/
global $domain;
-$domain = 'mydomain.com';
+$domain = 'example.com';
/* Your SMTP server and port number (usually the same as the IMAP server). */
global $smtpServerAddress, $smtpPort;
* other
*/
global $imap_server_type;
-$imap_server_type = 'cyrus';
+$imap_server_type = 'other';
/**
* Rather than going to the signout.php page (which only allows you
* marked 'Deleted'.
* $sent_folder
* This is the path to where Sent messages will be stored.
+ * $delete_folder
+ * If this is true, when a folder is deleted then it will
+ * not get moved into the Trash folder.
*/
global $default_move_to_trash, $default_move_to_sent, $default_save_as_draft;
global $trash_folder, $sent_folder, $draft_folder, $auto_expunge;
+global $delete_folder;
$default_move_to_trash = true;
$default_move_to_sent = true;
$default_save_as_draft = true;
$sent_folder = 'INBOX.Sent';
$draft_folder = 'INBOX.Drafts';
$auto_expunge = true;
-
-/**
- * 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.
- */
-global $special_folders;
-$special_folders[0] = 'INBOX'; /* The first special folder should always */
- /* be the inbox (whatever it is named). */
-$special_folders[1] = $trash_folder;
-$special_folders[2] = $sent_folder;
-$special_folders[3] = $draft_folder;
-$special_folders[4] = 'INBOX.Templates';
+$delete_folder = false;
/**
* Should I create the Sent and Trash folders automatically for
* $data_dir = '/usr/local/squirrelmail/data/';
*
* Relative (to the config directory):
- * $data_dir = '../data/';
+ * $data_dir = SM_PATH . 'data/';
*/
global $data_dir;
-$data_dir = '../data/';
+$data_dir = SM_PATH . 'data/';
/**
* Path to directory used for storing attachments while a mail is
* 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.
*/
+
+$theme_default = 0;
+
global $theme;
-/**
- * The first one HAS to be here, and is your system's default
- * theme. It can be any theme you want.
- */
-$theme[0]['PATH'] = '../themes/default_theme.php';
+$theme[0]['PATH'] = SM_PATH . 'themes/default_theme.php';
$theme[0]['NAME'] = 'Default';
-$theme[1]['PATH'] = '../themes/plain_blue_theme.php';
+$theme[1]['PATH'] = SM_PATH . 'themes/plain_blue_theme.php';
$theme[1]['NAME'] = 'Plain Blue';
-$theme[2]['PATH'] = '../themes/sandstorm_theme.php';
+$theme[2]['PATH'] = SM_PATH . 'themes/sandstorm_theme.php';
$theme[2]['NAME'] = 'Sand Storm';
-$theme[3]['PATH'] = '../themes/deepocean_theme.php';
+$theme[3]['PATH'] = SM_PATH . 'themes/deepocean_theme.php';
$theme[3]['NAME'] = 'Deep Ocean';
-$theme[4]['PATH'] = '../themes/slashdot_theme.php';
+$theme[4]['PATH'] = SM_PATH . 'themes/slashdot_theme.php';
$theme[4]['NAME'] = 'Slashdot';
-$theme[5]['PATH'] = '../themes/purple_theme.php';
+$theme[5]['PATH'] = SM_PATH . 'themes/purple_theme.php';
$theme[5]['NAME'] = 'Purple';
-$theme[6]['PATH'] = '../themes/forest_theme.php';
+$theme[6]['PATH'] = SM_PATH . 'themes/forest_theme.php';
$theme[6]['NAME'] = 'Forest';
-$theme[7]['PATH'] = '../themes/ice_theme.php';
+$theme[7]['PATH'] = SM_PATH . 'themes/ice_theme.php';
$theme[7]['NAME'] = 'Ice';
-$theme[8]['PATH'] = '../themes/seaspray_theme.php';
+$theme[8]['PATH'] = SM_PATH . 'themes/seaspray_theme.php';
$theme[8]['NAME'] = 'Sea Spray';
-$theme[9]['PATH'] = '../themes/bluesteel_theme.php';
+$theme[9]['PATH'] = SM_PATH . 'themes/bluesteel_theme.php';
$theme[9]['NAME'] = 'Blue Steel';
-$theme[10]['PATH'] = '../themes/dark_grey_theme.php';
+$theme[10]['PATH'] = SM_PATH . 'themes/dark_grey_theme.php';
$theme[10]['NAME'] = 'Dark Grey';
-$theme[11]['PATH'] = '../themes/high_contrast_theme.php';
+$theme[11]['PATH'] = SM_PATH . 'themes/high_contrast_theme.php';
$theme[11]['NAME'] = 'High Contrast';
-$theme[12]['PATH'] = '../themes/black_bean_burrito_theme.php';
+$theme[12]['PATH'] = SM_PATH . 'themes/black_bean_burrito_theme.php';
$theme[12]['NAME'] = 'Black Bean Burrito';
-$theme[13]['PATH'] = '../themes/servery_theme.php';
+$theme[13]['PATH'] = SM_PATH . 'themes/servery_theme.php';
$theme[13]['NAME'] = 'Servery';
-$theme[14]['PATH'] = '../themes/maize_theme.php';
+$theme[14]['PATH'] = SM_PATH . 'themes/maize_theme.php';
$theme[14]['NAME'] = 'Maize';
-$theme[15]['PATH'] = '../themes/bluesnews_theme.php';
+$theme[15]['PATH'] = SM_PATH . 'themes/bluesnews_theme.php';
$theme[15]['NAME'] = 'BluesNews';
-$theme[16]['PATH'] = '../themes/deepocean2_theme.php';
+$theme[16]['PATH'] = SM_PATH . 'themes/deepocean2_theme.php';
$theme[16]['NAME'] = 'Deep Ocean 2';
-$theme[17]['PATH'] = '../themes/blue_grey_theme.php';
+$theme[17]['PATH'] = SM_PATH . 'themes/blue_grey_theme.php';
$theme[17]['NAME'] = 'Blue Grey';
-$theme[18]['PATH'] = '../themes/dompie_theme.php';
+$theme[18]['PATH'] = SM_PATH . 'themes/dompie_theme.php';
$theme[18]['NAME'] = 'Dompie';
-$theme[19]['PATH'] = '../themes/methodical_theme.php';
+$theme[19]['PATH'] = SM_PATH . 'themes/methodical_theme.php';
$theme[19]['NAME'] = 'Methodical';
-$theme[20]['PATH'] = '../themes/greenhouse_effect.php';
+$theme[20]['PATH'] = SM_PATH . 'themes/greenhouse_effect.php';
$theme[20]['NAME'] = 'Greenhouse Effect (Changes)';
-$theme[21]['PATH'] = '../themes/in_the_pink.php';
+$theme[21]['PATH'] = SM_PATH . 'themes/in_the_pink.php';
$theme[21]['NAME'] = 'In The Pink (Changes)';
-$theme[22]['PATH'] = '../themes/kind_of_blue.php';
+$theme[22]['PATH'] = SM_PATH . 'themes/kind_of_blue.php';
$theme[22]['NAME'] = 'Kind of Blue (Changes)';
-$theme[23]['PATH'] = '../themes/monostochastic.php';
+$theme[23]['PATH'] = SM_PATH . 'themes/monostochastic.php';
$theme[23]['NAME'] = 'Monostochastic (Changes)';
-$theme[24]['PATH'] = '../themes/shades_of_grey.php';
+$theme[24]['PATH'] = SM_PATH . 'themes/shades_of_grey.php';
$theme[24]['NAME'] = 'Shades of Grey (Changes)';
-$theme[25]['PATH'] = '../themes/spice_of_life.php';
+$theme[25]['PATH'] = SM_PATH . 'themes/spice_of_life.php';
$theme[25]['NAME'] = 'Spice of Life (Changes)';
-$theme[26]['PATH'] = '../themes/spice_of_life_lite.php';
+$theme[26]['PATH'] = SM_PATH . 'themes/spice_of_life_lite.php';
$theme[26]['NAME'] = 'Spice of Life - Lite (Changes)';
-$theme[27]['PATH'] = '../themes/spice_of_life_dark.php';
+$theme[27]['PATH'] = SM_PATH . 'themes/spice_of_life_dark.php';
$theme[27]['NAME'] = 'Spice of Life - Dark (Changes)';
-$theme[28]['PATH'] = '../themes/christmas.php';
+$theme[28]['PATH'] = SM_PATH . 'themes/christmas.php';
$theme[28]['NAME'] = 'Holiday - Christmas';
-$theme[29]['PATH'] = '../themes/darkness.php';
+$theme[29]['PATH'] = SM_PATH . 'themes/darkness.php';
$theme[29]['NAME'] = 'Darkness (Changes)';
-$theme[30]['PATH'] = '../themes/random.php';
+$theme[30]['PATH'] = SM_PATH . 'themes/random.php';
$theme[30]['NAME'] = 'Random (Changes every login)';
-$theme[31]['PATH'] = '../themes/midnight.php';
+$theme[31]['PATH'] = SM_PATH . 'themes/midnight.php';
$theme[31]['NAME'] = 'Midnight';
+$theme[32]['PATH'] = SM_PATH . 'themes/alien_glow.php';
+$theme[32]['NAME'] = 'Alien Glow';
+
+$theme[33]['PATH'] = SM_PATH . 'themes/dark_green.php';
+$theme[33]['NAME'] = 'Dark Green';
+
+$theme[34]['PATH'] = SM_PATH . 'themes/penguin.php';
+$theme[34]['NAME'] = 'Penguin';
+
+$theme[35]['PATH'] = SM_PATH . 'themes/minimal_bw.php';
+$theme[35]['NAME'] = 'Minimal BW';
+
+
/**
* LDAP server(s)
* Array of arrays with LDAP server parameters. See
* 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
+ * 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_dsn = 'mysql://user:pass@hostname/dbname';
+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
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
* $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;
+
+/**
+ * Advanced authentication options
+ * CRAM-MD5, DIGEST-MD5, Plain, and TLS
+ * Set reasonable defaults - you'd never know this was there unless you ask for it
+ */
+global $use_imap_tls;
+global $use_smtp_tls;
+$use_imap_tls = false;
+$use_smtp_tls = false;
+
+/* auth_mech can be either 'login','plain', 'cram-md5', or 'digest-md5'
+ SMTP can also be 'none'
+*/
+global $smtp_auth_mech;
+global $imap_auth_mech;
+$smtp_auth_mech = 'none';
+$imap_auth_mech = 'login';
+
+/* PHP session name. Leave this alone unless you know what you are doing. */
+global $session_name;
+$session_name = 'SQMSESSID';
+
/**
* Make sure there are no characters after the PHP closing
* tag below (including newline characters and whitespace).