config_default.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510
  1. <?php
  2. /**
  3. * BEFORE EDITING THIS FILE!
  4. *
  5. * Don't edit this file directly. Copy it to config.php before you
  6. * edit it. However, it is best to use the configuration script
  7. * conf.pl if at all possible. That is the easiest and cleanest way
  8. * to configure.
  9. */
  10. /* Do not change this value. */
  11. global $config_version;
  12. $config_version = '1.2.0';
  13. /* Organization's logo picture (blank if none) */
  14. global $org_logo;
  15. $org_logo = '../images/sm_logo.png';
  16. /* The width of the logo (0 for default) */
  17. $org_logo_width = 308;
  18. /* The height of the logo (0 for default) */
  19. $org_logo_height = 111;
  20. /* Organization's name */
  21. global $org_name;
  22. $org_name = 'SquirrelMail';
  23. /**
  24. * Webmail Title
  25. * This is the web page title that appears at the top of the browser window.
  26. */
  27. global $org_title;
  28. $org_title = "SquirrelMail $version";
  29. /**
  30. * Default language
  31. * This is the default language. It is used as a last resort
  32. * if SquirrelMail can't figure out which language to display.
  33. * Use the two-letter code.
  34. */
  35. global $squirrelmail_default_language;
  36. $squirrelmail_default_language = 'en_US';
  37. /* The dns name and port for your imap server. */
  38. global $imapServerAddress, $imapPort;
  39. $imapServerAddress = 'localhost';
  40. $imapPort = 143;
  41. /**
  42. * The domain part of local email addresses.
  43. * This is for all messages sent out from this server.
  44. * Reply address is generated by $username@$domain
  45. * Example: In bob@foo.com, foo.com is the domain.
  46. */
  47. global $domain;
  48. $domain = 'mydomain.com';
  49. /* Your SMTP server and port number (usually the same as the IMAP server). */
  50. global $smtpServerAddress, $smtpPort;
  51. $smtpServerAddress = 'localhost';
  52. $smtpPort = 25;
  53. /**
  54. * Uncomment this if you want to deliver locally using sendmail
  55. * instead of connecting to a SMTP-server.
  56. */
  57. #global $useSendmail, $sendmail_path;
  58. #$useSendmail = true;
  59. #$sendmail_path = '/usr/sbin/sendmail';
  60. /* This is a message that is displayed immediately after a user logs in. */
  61. global $motd;
  62. $motd = '';
  63. /**
  64. * Whether or not to use a special color for special folders. If not,
  65. * special folders will be the same color as the other folders.
  66. */
  67. global $use_special_folder_color;
  68. $use_special_folder_color = true;
  69. /**
  70. * The type of IMAP server you are running.
  71. * Valid type are the following (case is important):
  72. * courier
  73. * cyrus
  74. * exchange
  75. * uw
  76. * other
  77. */
  78. global $imap_server_type;
  79. $imap_server_type = 'cyrus';
  80. /**
  81. * Rather than going to the signout.php page (which only allows you
  82. * to sign back in), setting signout_page allows you to sign the user
  83. * out and then redirect to whatever page you want. For instance,
  84. * the following would return the user to your home page:
  85. * $signout_page = '/';
  86. * Set to the empty string to continue to use the default signout page.
  87. */
  88. global $signout_page;
  89. $signout_page = '';
  90. /**
  91. * Many servers store mail in your home directory. With this, they
  92. * store them in a subdirectory: mail/ or Mail/, etc. If your server
  93. * does this, please set this to what the default mail folder should
  94. * be. This is still a user preference, so they can change it if it
  95. * is different for each user.
  96. *
  97. * Example:
  98. * $default_folder_prefix = 'mail/';
  99. * -- or --
  100. * $default_folder_prefix = 'Mail/folders/';
  101. *
  102. * If you do not use this, set it to the empty string.
  103. */
  104. global $default_folder_prefix;
  105. $default_folder_prefix = '';
  106. /**
  107. * If you do not wish to give them the option to change this, set it
  108. * to false. Otherwise, if it is true, they can change the folder prefix
  109. * to be anything.
  110. */
  111. global $show_prefix_option;
  112. $show_prefix_option = false;
  113. /**
  114. * The following are related to deleting messages.
  115. * $move_to_trash
  116. * if this is set to 'true', when 'delete' is pressed, it
  117. * will attempt to move the selected messages to the folder
  118. * named $trash_folder. If it's set to 'false', we won't even
  119. * attempt to move the messages, just delete them.
  120. * $trash_folder
  121. * This is the path to the default trash folder. For Cyrus
  122. * IMAP, it would be 'INBOX.Trash', but for UW it would be
  123. * 'Trash'. We need the full path name here.
  124. * $auto_expunge
  125. * If this is true, when a message is moved or copied, the
  126. * source mailbox will get expunged, removing all messages
  127. * marked 'Deleted'.
  128. * $sent_folder
  129. * This is the path to where Sent messages will be stored.
  130. * $delete_folder
  131. * If this is true, when a folder is deleted then it will
  132. * not get moved into the Trash folder.
  133. */
  134. global $default_move_to_trash, $default_move_to_sent, $default_save_as_draft;
  135. global $trash_folder, $sent_folder, $draft_folder, $auto_expunge;
  136. global $delete_folder;
  137. $default_move_to_trash = true;
  138. $default_move_to_sent = true;
  139. $default_save_as_draft = true;
  140. $trash_folder = 'INBOX.Trash';
  141. $sent_folder = 'INBOX.Sent';
  142. $draft_folder = 'INBOX.Drafts';
  143. $auto_expunge = true;
  144. $delete_folder = false;
  145. /**
  146. * Should I create the Sent and Trash folders automatically for
  147. * a new user that doesn't already have them created?
  148. */
  149. global $auto_create_special;
  150. $auto_create_special = true;
  151. /* Whether or not to list the special folders first (true/false). */
  152. global $list_special_folders_first;
  153. $list_special_folders_first = true;
  154. /**
  155. * Are all your folders subfolders of INBOX (i.e. cyrus IMAP server).
  156. * If you are unsure, set it to false.
  157. */
  158. global $default_sub_of_inbox;
  159. $default_sub_of_inbox = true;
  160. /**
  161. * Some IMAP daemons (UW) handle folders weird. They only allow a
  162. * folder to contain either messages or other folders, not both at
  163. * the same time. This option controls whether or not to display an
  164. * option during folder creation. The option toggles which type of
  165. * folder it should be.
  166. *
  167. * If this option confuses you, just set it to 'true'. You can not hurt
  168. * anything if it's true, but some servers will respond weird if it's
  169. * false. (Cyrus works fine whether it's true OR false).
  170. */
  171. global $show_contain_subfolders_option;
  172. $show_contain_subfolders_option = false;
  173. /**
  174. * This option controls what character set is used when sending mail
  175. * and when sending HTMl to the browser. Do not set this to US-ASCII,
  176. * use ISO-8859-1 instead. For cyrillic it is best to use KOI8-R,
  177. * since this implementation is faster than the alternatives.
  178. */
  179. global $default_charset;
  180. $default_charset = 'iso-8859-1';
  181. /**
  182. * Path to the data/ directory
  183. * It is a possible security hole to have a writable directory
  184. * under the web server's root directory (ex: /home/httpd/html).
  185. * For this reason, it is possible to put the data directory
  186. * anywhere you would like. The path name can be absolute or
  187. * relative (to the config directory). It doesn't matter. Here
  188. * are two examples:
  189. *
  190. * Absolute:
  191. * $data_dir = '/usr/local/squirrelmail/data/';
  192. *
  193. * Relative (to the config directory):
  194. * $data_dir = '../data/';
  195. */
  196. global $data_dir;
  197. $data_dir = '../data/';
  198. /**
  199. * Path to directory used for storing attachments while a mail is
  200. * being sent. There are a few security considerations regarding
  201. * this directory:
  202. * + It should have the permission 733 (rwx-wx-wx) to make it
  203. * impossible for a random person with access to the webserver to
  204. * list files in this directory. Confidential data might be laying
  205. * around there.
  206. * + Since the webserver is not able to list the files in the content
  207. * is also impossible for the webserver to delete files lying around
  208. * there for too long.
  209. * + It should probably be another directory than data_dir.
  210. */
  211. global $attachment_dir;
  212. $attachment_dir = "$data_dir";
  213. /* Hash level used for data directory. */
  214. global $dir_hash_level;
  215. $dir_hash_level = 0;
  216. /**
  217. * This is the default size of the folder list. Default
  218. * is 150, but you can set it to whatever you wish.
  219. */
  220. global $default_left_size;
  221. $default_left_size = 150;
  222. /**
  223. * Some IMAP servers allow a username (like 'bob') to log in if they use
  224. * uppercase in their name (like 'Bob' or 'BOB'). This creates extra
  225. * preference files. Toggling this option to true will transparently
  226. * change all usernames to lowercase.
  227. */
  228. global $force_username_lowercase;
  229. $force_username_lowercase = false;
  230. /**
  231. * Themes
  232. * You can define your own theme and put it in this directory.
  233. * You must call it as the example below. You can name the theme
  234. * whatever you want. For an example of a theme, see the ones
  235. * included in the config directory.
  236. *
  237. * To add a new theme to the options that users can choose from, just
  238. * add a new number to the array at the bottom, and follow the pattern.
  239. */
  240. global $theme;
  241. /**
  242. * The first one HAS to be here, and is your system's default
  243. * theme. It can be any theme you want.
  244. */
  245. $theme[0]['PATH'] = '../themes/default_theme.php';
  246. $theme[0]['NAME'] = 'Default';
  247. $theme[1]['PATH'] = '../themes/plain_blue_theme.php';
  248. $theme[1]['NAME'] = 'Plain Blue';
  249. $theme[2]['PATH'] = '../themes/sandstorm_theme.php';
  250. $theme[2]['NAME'] = 'Sand Storm';
  251. $theme[3]['PATH'] = '../themes/deepocean_theme.php';
  252. $theme[3]['NAME'] = 'Deep Ocean';
  253. $theme[4]['PATH'] = '../themes/slashdot_theme.php';
  254. $theme[4]['NAME'] = 'Slashdot';
  255. $theme[5]['PATH'] = '../themes/purple_theme.php';
  256. $theme[5]['NAME'] = 'Purple';
  257. $theme[6]['PATH'] = '../themes/forest_theme.php';
  258. $theme[6]['NAME'] = 'Forest';
  259. $theme[7]['PATH'] = '../themes/ice_theme.php';
  260. $theme[7]['NAME'] = 'Ice';
  261. $theme[8]['PATH'] = '../themes/seaspray_theme.php';
  262. $theme[8]['NAME'] = 'Sea Spray';
  263. $theme[9]['PATH'] = '../themes/bluesteel_theme.php';
  264. $theme[9]['NAME'] = 'Blue Steel';
  265. $theme[10]['PATH'] = '../themes/dark_grey_theme.php';
  266. $theme[10]['NAME'] = 'Dark Grey';
  267. $theme[11]['PATH'] = '../themes/high_contrast_theme.php';
  268. $theme[11]['NAME'] = 'High Contrast';
  269. $theme[12]['PATH'] = '../themes/black_bean_burrito_theme.php';
  270. $theme[12]['NAME'] = 'Black Bean Burrito';
  271. $theme[13]['PATH'] = '../themes/servery_theme.php';
  272. $theme[13]['NAME'] = 'Servery';
  273. $theme[14]['PATH'] = '../themes/maize_theme.php';
  274. $theme[14]['NAME'] = 'Maize';
  275. $theme[15]['PATH'] = '../themes/bluesnews_theme.php';
  276. $theme[15]['NAME'] = 'BluesNews';
  277. $theme[16]['PATH'] = '../themes/deepocean2_theme.php';
  278. $theme[16]['NAME'] = 'Deep Ocean 2';
  279. $theme[17]['PATH'] = '../themes/blue_grey_theme.php';
  280. $theme[17]['NAME'] = 'Blue Grey';
  281. $theme[18]['PATH'] = '../themes/dompie_theme.php';
  282. $theme[18]['NAME'] = 'Dompie';
  283. $theme[19]['PATH'] = '../themes/methodical_theme.php';
  284. $theme[19]['NAME'] = 'Methodical';
  285. $theme[20]['PATH'] = '../themes/greenhouse_effect.php';
  286. $theme[20]['NAME'] = 'Greenhouse Effect (Changes)';
  287. $theme[21]['PATH'] = '../themes/in_the_pink.php';
  288. $theme[21]['NAME'] = 'In The Pink (Changes)';
  289. $theme[22]['PATH'] = '../themes/kind_of_blue.php';
  290. $theme[22]['NAME'] = 'Kind of Blue (Changes)';
  291. $theme[23]['PATH'] = '../themes/monostochastic.php';
  292. $theme[23]['NAME'] = 'Monostochastic (Changes)';
  293. $theme[24]['PATH'] = '../themes/shades_of_grey.php';
  294. $theme[24]['NAME'] = 'Shades of Grey (Changes)';
  295. $theme[25]['PATH'] = '../themes/spice_of_life.php';
  296. $theme[25]['NAME'] = 'Spice of Life (Changes)';
  297. $theme[26]['PATH'] = '../themes/spice_of_life_lite.php';
  298. $theme[26]['NAME'] = 'Spice of Life - Lite (Changes)';
  299. $theme[27]['PATH'] = '../themes/spice_of_life_dark.php';
  300. $theme[27]['NAME'] = 'Spice of Life - Dark (Changes)';
  301. $theme[28]['PATH'] = '../themes/christmas.php';
  302. $theme[28]['NAME'] = 'Holiday - Christmas';
  303. $theme[29]['PATH'] = '../themes/darkness.php';
  304. $theme[29]['NAME'] = 'Darkness (Changes)';
  305. $theme[30]['PATH'] = '../themes/random.php';
  306. $theme[30]['NAME'] = 'Random (Changes every login)';
  307. $theme[31]['PATH'] = '../themes/midnight.php';
  308. $theme[31]['NAME'] = 'Midnight';
  309. $theme[32]['PATH'] = '../themes/alien_glow.php';
  310. $theme[32]['NAME'] = 'Alien Glow';
  311. $theme[33]['PATH'] = '../themes/dark_green.php';
  312. $theme[33]['NAME'] = 'Dark Green';
  313. /**
  314. * LDAP server(s)
  315. * Array of arrays with LDAP server parameters. See
  316. * functions/abook_ldap_server.php for a list of possible
  317. * parameters
  318. *
  319. * EXAMPLE:
  320. * $ldap_server[0] = Array(
  321. * 'host' => 'memberdir.netscape.com',
  322. * 'name' => 'Netcenter Member Directory',
  323. * 'base' => 'ou=member_directory,o=netcenter.com'
  324. * );
  325. */
  326. global $ldap_server;
  327. /**
  328. * Database-driven private addressbooks
  329. * DSN (Data Source Name) for a database where the private
  330. * addressbooks are stored. See doc/db-backend.txt for more info.
  331. * If it is not set, the addressbooks are stored in files
  332. * in the data dir.
  333. * The DSN is in the format: mysql://user:pass@hostname/dbname
  334. * The table is the name of the table to use within the
  335. * specified database.
  336. */
  337. global $addrbook_dsn, $addrbook_table;
  338. $addrbook_dsn = '';
  339. $addrbook_table = 'address';
  340. global $prefs_dsn, $prefs_table;
  341. $prefs_dsn = '';
  342. $prefs_table = 'userprefs';
  343. /**
  344. * Users may search their addressbook via either a plain HTML or Javascript
  345. * enhanced user interface. This option allows you to set the default choice.
  346. * Set this default choice as either:
  347. * true = javascript
  348. * false = html
  349. */
  350. global $default_use_javascript_addr_book;
  351. $default_use_javascript_addr_book = false;
  352. /**
  353. * These next two options set the defaults for the way that the
  354. * users see their folder list.
  355. * $default_unseen_notify
  356. * Specifies whether or not the users will see the number of
  357. * unseen in each folder by default and also which folders to
  358. * do this to. Valid values are: 1=none, 2=inbox, 3=all.
  359. * $default_unseen_type
  360. * Specifies the type of notification to give the users by
  361. * default. Valid choice are: 1=(4), 2=(4,25).
  362. */
  363. global $default_unseen_notify, $default_unseen_type;
  364. $default_unseen_notify = 2;
  365. $default_unseen_type = 1;
  366. /**
  367. * If you are running on a machine that doesn't have the tm_gmtoff
  368. * value in your time structure and if you are in a time zone that
  369. * has a negative offset, you need to set this value to 1. This is
  370. * typically people in the US that are running Solaris 7.
  371. */
  372. global $invert_time;
  373. $invert_time = false;
  374. /**
  375. * By default SquirrelMail takes up the whole browser window,
  376. * this allows you to embed it within sites using frames. Set
  377. * this to the frame you want it to stay in.
  378. */
  379. global $frame_top;
  380. $frame_top = '_top';
  381. global $plugins;
  382. /**
  383. * To install plugins, just add elements to this array that have
  384. * the plugin directory name relative to the /plugins/ directory.
  385. * For instance, for the 'sqclock' plugin, you'd put a line like
  386. * the following.
  387. * $plugins[0] = 'sqclock';
  388. * $plugins[1] = 'attachment_common';
  389. */
  390. /**
  391. * If you don't want to allow users to change their email address
  392. * then you can set $edit_identity to false, if you want them to
  393. * not be able to change their full name too then set $edit_name
  394. * to false as well. $edit_name has no effect unless $edit_identity
  395. * is false;
  396. */
  397. global $edit_identity, $edit_name;
  398. $edit_identity = true;
  399. $edit_name = true;
  400. /**
  401. * If you want to enable server side thread sorting options
  402. * Your IMAP server must support the THREAD extension for
  403. * this to work.
  404. */
  405. global $allow_thread_sort;
  406. $allow_thread_sort = false;
  407. /**
  408. * to use server-side sorting instead of SM client side.
  409. * Your IMAP server must support the SORT extension for this
  410. * to work.
  411. */
  412. global $allow_server_sort;
  413. $allow_server_sort = false;
  414. /**
  415. * This enables the no select fix for Cyrus when subfolders
  416. * exist but parent folders do not
  417. */
  418. global $noselect_fix_enable;
  419. $noselect_fix_enable = false;
  420. /**
  421. * Make sure there are no characters after the PHP closing
  422. * tag below (including newline characters and whitespace).
  423. * Otherwise, that character will cause the headers to be
  424. * sent and regular output to begin, which will majorly screw
  425. * things up when we try to send more headers later.
  426. */
  427. ?>