config_default.php 14 KB

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