config_default.php 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164
  1. <?php
  2. /**
  3. * Default SquirrelMail configuration file
  4. *
  5. * BEFORE EDITING THIS FILE!
  6. *
  7. * Don't edit this file directly. Copy it to config.php before you
  8. * edit it. However, it is best to use the configuration script
  9. * conf.pl if at all possible. That is the easiest and cleanest way
  10. * to configure.
  11. *
  12. * Note on SECURITY: some options require putting a password in this file.
  13. * Please make sure that you adapt its permissions appropriately to avoid
  14. * passwords being leaked to e.g. other system users. Take extra care when
  15. * the webserver is shared with untrusted users.
  16. *
  17. * @copyright &copy; 2000-2007 The SquirrelMail Project Team
  18. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  19. * @version $Id$
  20. * @package squirrelmail
  21. * @subpackage config
  22. */
  23. /* Do not change this value. */
  24. global $config_version;
  25. $config_version = '1.5.0';
  26. /*** Organization preferences ***/
  27. /**
  28. * Organization's name
  29. * @global string $org_name
  30. */
  31. $org_name = "SquirrelMail";
  32. /**
  33. * Organization's logo picture (blank if none)
  34. * @global string $org_logo
  35. */
  36. $org_logo = SM_PATH . 'images/sm_logo.png';
  37. /**
  38. * The width of the logo (0 for default)
  39. * @global string $org_logo_width
  40. */
  41. $org_logo_width = '308';
  42. /**
  43. * The height of the logo (0 for default)
  44. * @global string $org_logo_height
  45. */
  46. $org_logo_height = '111';
  47. /**
  48. * Webmail Title
  49. *
  50. * This is the web page title that appears at the top of the browser window.
  51. * @global string $org_title
  52. */
  53. $org_title = "SquirrelMail";
  54. /**
  55. * Signout page
  56. *
  57. * Rather than going to the signout.php page (which only allows you
  58. * to sign back in), setting signout_page allows you to sign the user
  59. * out and then redirect to whatever page you want. For instance,
  60. * the following would return the user to your home page:
  61. * $signout_page = '/';
  62. * Set to the empty string to continue to use the default signout page.
  63. * @global string $signout_page
  64. */
  65. $signout_page = '';
  66. /**
  67. * Top frame
  68. *
  69. * By default SquirrelMail takes up the whole browser window,
  70. * this allows you to embed it within sites using frames. Set
  71. * this to the frame you want it to stay in.
  72. * @global string $frame_top
  73. */
  74. $frame_top = '_top';
  75. /**
  76. * Provider name
  77. *
  78. * Here you can set the text of the link displayed on the top-right
  79. * of the message list.
  80. *
  81. * Defaults to empty (no link).
  82. *
  83. * @global string $provider_name
  84. */
  85. $provider_name = '';
  86. /**
  87. * Provider URI
  88. *
  89. * Here you can set URL of the link displayed on the top-right of
  90. * the message list.
  91. *
  92. * Defaults to empty (no link).
  93. *
  94. * @global string $provider_uri
  95. */
  96. $provider_uri = '';
  97. /*** Server Settings ***/
  98. /**
  99. * Default Domain
  100. *
  101. * The domain part of local email addresses.
  102. * This is for all messages sent out from this server.
  103. * Reply address is generated by $username@$domain
  104. * Example: In bob@example.com, example.com is the domain.
  105. * @global string $domain
  106. */
  107. $domain = 'example.com';
  108. /**
  109. * Time offset inversion
  110. *
  111. * If you are running on a machine that doesn't have the tm_gmtoff
  112. * value in your time structure and if you are in a time zone that
  113. * has a negative offset, you need to set this value to 1. This is
  114. * typically people in the US that are running Solaris 7.
  115. * @global bool $invert_time
  116. */
  117. $invert_time = false;
  118. /**
  119. * Default send transport
  120. *
  121. * What should be used when sending email.
  122. * If it is set to false, SquirrelMail will use SMTP server settings.
  123. * If it is set to true, SquirrelMail will use program defined in
  124. * $sendmail_path
  125. * @global bool $useSendmail
  126. */
  127. $useSendmail = false;
  128. /**
  129. * Your SMTP server (usually the same as the IMAP server).
  130. * @global string $smtpServerAddress
  131. */
  132. $smtpServerAddress = 'localhost';
  133. /**
  134. * Your SMTP port number (usually 25).
  135. * @global integer $smtpPort
  136. */
  137. $smtpPort = 25;
  138. /**
  139. * SquirrelMail header encryption
  140. *
  141. * Encryption key allows to hide SquirrelMail Received: headers
  142. * in outbound messages. Interface uses encryption key to encode
  143. * username, remote address and proxied address, then stores encoded
  144. * information in X-Squirrel-* headers.
  145. *
  146. * Warning: used encryption function is not bulletproof. When used
  147. * with static encryption keys, it provides only minimal security
  148. * measures and information can be decoded quickly.
  149. *
  150. * Encoded information can be decoded with decrypt_headers.php script
  151. * from SquirrelMail contrib/ directory.
  152. * @global string $encode_header_key
  153. * @since 1.5.1 and 1.4.5
  154. */
  155. $encode_header_key = '';
  156. /**
  157. * Path to Sendmail
  158. *
  159. * Program that should be used when sending email. SquirrelMail expects that
  160. * this program will follow options used by original sendmail
  161. * (http://www.sendmail.org). Support of -f argument is required.
  162. * @global string $sendmail_path
  163. */
  164. $sendmail_path = '/usr/sbin/sendmail';
  165. /**
  166. * Extra sendmail command arguments.
  167. *
  168. * Sets additional sendmail command arguments. Make sure that arguments are
  169. * supported by your sendmail program. -f argument is added automatically by
  170. * SquirrelMail scripts. Variable defaults to standard /usr/sbin/sendmail
  171. * arguments. If you use qmail-inject, nbsmtp or any other sendmail wrapper,
  172. * which does not support -t and -i arguments, set variable to empty string
  173. * or use arguments suitable for your mailer.
  174. * @global string $sendmail_args
  175. * @since 1.5.1 and 1.4.8
  176. */
  177. $sendmail_args = '-i -t';
  178. /**
  179. * IMAP server address
  180. *
  181. * The dns name (or IP address) for your imap server.
  182. * @global string $imapServerAddress
  183. */
  184. $imapServerAddress = 'localhost';
  185. /**
  186. * IMAP server port
  187. *
  188. * Port used by your imap server. (Usually 143)
  189. * @global integer $imapPort
  190. */
  191. $imapPort = 143;
  192. /**
  193. * IMAP server type
  194. *
  195. * The type of IMAP server you are running.
  196. * Valid type are the following (case is important):
  197. * bincimap
  198. * courier
  199. * cyrus
  200. * dovecot
  201. * exchange
  202. * hmailserver
  203. * macosx
  204. * mercury32
  205. * uw
  206. * other
  207. *
  208. * Please note that this changes only some of server settings.
  209. *
  210. * In order to set everything correctly, you need to adjust several
  211. * SquirrelMail options. These options are listed in doc/presets.txt
  212. * @global string $imap_server_type
  213. */
  214. $imap_server_type = 'other';
  215. /**
  216. * Secure IMAP connection controls
  217. *
  218. * 0 - use plain text connection,
  219. * 1 - use imaps (adds tls:// prefix to hostname),
  220. * 2 - use IMAP STARTTLS extension (rfc2595).
  221. *
  222. * Was boolean before 1.5.1.
  223. * @global integer $use_imap_tls
  224. * @since 1.4.0
  225. */
  226. $use_imap_tls = 0;
  227. /**
  228. * Secure SMTP connection controls
  229. *
  230. * 0 - use plain text connection,
  231. * 1 - use ssmtp (adds tls:// prefix to hostname),
  232. * 2 - use SMTP STARTTLS extension (rfc2487).
  233. *
  234. * Was boolean before 1.5.1.
  235. * @global integer $use_smtp_tls
  236. * @since 1.4.0
  237. */
  238. $use_smtp_tls = 0;
  239. /**
  240. * SMTP authentication mechanism
  241. *
  242. * auth_mech can be either 'none', 'login','plain', 'cram-md5', or 'digest-md5'
  243. * @global string $smtp_auth_mech
  244. */
  245. $smtp_auth_mech = 'none';
  246. /**
  247. * Custom SMTP authentication username
  248. *
  249. * IMAP username is used if variable is set to empty string.
  250. * Variable is included in main configuration file only from 1.5.2 version.
  251. * Older versions stored it in config_local.php.
  252. * @global string $smtp_sitewide_user
  253. * @since 1.5.0
  254. */
  255. $smtp_sitewide_user = '';
  256. /**
  257. * Custom SMTP authentication password
  258. *
  259. * IMAP password is used if $smtp_sitewide_user global is set to empty string.
  260. * Variable is included in main configuration file only from 1.5.2 version.
  261. * Older versions stored it in config_local.php.
  262. * @global string $smtp_sitewide_pass
  263. * @since 1.5.0
  264. */
  265. $smtp_sitewide_pass = '';
  266. /**
  267. * IMAP authentication mechanism
  268. *
  269. * auth_mech can be either 'login','plain', 'cram-md5', or 'digest-md5'
  270. * @global string $imap_auth_mech
  271. */
  272. $imap_auth_mech = 'login';
  273. /**
  274. * IMAP folder delimiter
  275. *
  276. * This is the delimiter that your IMAP server uses to distinguish between
  277. * folders. For example, Cyrus uses '.' as the delimiter and a complete
  278. * folder would look like 'INBOX.Friends.Bob', while UW uses '/' and would
  279. * look like 'INBOX/Friends/Bob'. Normally this should be left at 'detect'
  280. * but if you are sure you know what delimiter your server uses, you can
  281. * specify it here.
  282. *
  283. * To have it autodetect the delimiter, set it to 'detect'.
  284. * @global string $optional_delimiter
  285. */
  286. $optional_delimiter = 'detect';
  287. /**
  288. * POP before SMTP setting
  289. *
  290. * Do you wish to use POP3 before SMTP? Your server must
  291. * support this in order for SquirrelMail to work with it.
  292. * @global bool $pop_before_smtp
  293. */
  294. $pop_before_smtp = false;
  295. /*** Folder Settings ***/
  296. /**
  297. * Default IMAP folder prefix
  298. *
  299. * Many servers store mail in your home directory. With this, they
  300. * store them in a subdirectory: mail/ or Mail/, etc. If your server
  301. * does this, please set this to what the default mail folder should
  302. * be. This is still a user preference, so they can change it if it
  303. * is different for each user.
  304. *
  305. * Example:
  306. * $default_folder_prefix = 'mail/';
  307. * -- or --
  308. * $default_folder_prefix = 'Mail/folders/';
  309. *
  310. * If you do not use this, set it to the empty string.
  311. * @global string $default_folder_prefix
  312. */
  313. $default_folder_prefix = '';
  314. /**
  315. * User level prefix control
  316. *
  317. * If you do not wish to give them the option to change this, set it
  318. * to false. Otherwise, if it is true, they can change the folder prefix
  319. * to be anything.
  320. * @global bool $show_prefix_option
  321. */
  322. $show_prefix_option = false;
  323. /**
  324. * The following are related to deleting messages.
  325. * $default_move_to_trash
  326. * If this is set to 'true', when 'delete' is pressed, it
  327. * will attempt to move the selected messages to the folder
  328. * named $trash_folder. If it's set to 'false', we won't even
  329. * attempt to move the messages, just delete them.
  330. * $default_move_to_sent
  331. * If this is set to 'true', sent messages will be stored in
  332. * $sent_folder by default.
  333. * $default_save_as_draft
  334. * If this is set to 'true', users are able to use $draft_folder
  335. * to store their unfinished messages.
  336. * $trash_folder
  337. * This is the path to the default trash folder. For Cyrus
  338. * IMAP, it would be 'INBOX.Trash', but for UW it would be
  339. * 'Trash'. We need the full path name here.
  340. * $draft_folder
  341. * This is the patch to where Draft messages will be stored.
  342. * $auto_expunge
  343. * If this is true, when a message is moved or copied, the
  344. * source mailbox will get expunged, removing all messages
  345. * marked 'Deleted'.
  346. * $sent_folder
  347. * This is the path to where Sent messages will be stored.
  348. * $delete_folder
  349. * If this is true, when a folder is deleted then it will
  350. * not get moved into the Trash folder.
  351. * @global bool $default_move_to_trash
  352. * @global bool $default_move_to_sent
  353. * @global bool $default_save_as_draft
  354. * @global string $trash_folder
  355. * @global string $sent_folder
  356. * @global string $draft_folder
  357. * @global bool $auto_expunge
  358. * @global bool $delete_folder
  359. */
  360. $default_move_to_trash = true;
  361. $default_move_to_sent = true;
  362. $default_save_as_draft = true;
  363. $trash_folder = 'INBOX.Trash';
  364. $sent_folder = 'INBOX.Sent';
  365. $draft_folder = 'INBOX.Drafts';
  366. $auto_expunge = true;
  367. $delete_folder = false;
  368. /**
  369. * Special Folder Color Control
  370. *
  371. * Whether or not to use a special color for special folders. If not,
  372. * special folders will be the same color as the other folders.
  373. * @global bool $use_special_folder_color
  374. */
  375. $use_special_folder_color = true;
  376. /**
  377. * Create Special Folders Control
  378. *
  379. * Should I create the Sent and Trash folders automatically for
  380. * a new user that doesn't already have them created?
  381. * @global bool $auto_create_special
  382. */
  383. $auto_create_special = true;
  384. /**
  385. * List Special Folders First Control
  386. *
  387. * Whether or not to list the special folders first (true/false).
  388. * @global bool $list_special_folders_first
  389. */
  390. $list_special_folders_first = true;
  391. /**
  392. * Subfolder Layout Control
  393. *
  394. * Are all your folders subfolders of INBOX (i.e. cyrus IMAP server).
  395. * If you are unsure, set it to false.
  396. * @global bool $default_sub_of_inbox
  397. */
  398. $default_sub_of_inbox = true;
  399. /**
  400. * Subfolder Format Control
  401. *
  402. * Some IMAP daemons (UW) handle folders weird. They only allow a
  403. * folder to contain either messages or other folders, not both at
  404. * the same time. This option controls whether or not to display an
  405. * option during folder creation. The option toggles which type of
  406. * folder it should be.
  407. *
  408. * If this option confuses you, just set it to 'true'. You can not hurt
  409. * anything if it's true, but some servers will respond weird if it's
  410. * false. (Cyrus works fine whether it's true OR false).
  411. * @global bool $show_contain_subfolders_option
  412. */
  413. $show_contain_subfolders_option = false;
  414. /**
  415. * These next two options set the defaults for the way that the
  416. * users see their folder list.
  417. * $default_unseen_notify
  418. * Specifies whether or not the users will see the number of
  419. * unseen in each folder by default and also which folders to
  420. * do this to. Valid values are: 1=none, 2=inbox, 3=all.
  421. * $default_unseen_type
  422. * Specifies the type of notification to give the users by
  423. * default. Valid choice are: 1=(4), 2=(4,25).
  424. * @global integer $default_unseen_notify
  425. * @global integer $default_unseen_type
  426. */
  427. $default_unseen_notify = 2;
  428. $default_unseen_type = 1;
  429. /**
  430. * NoSelect Fix Control
  431. *
  432. * This enables the no select fix for Cyrus when subfolders
  433. * exist but parent folders do not
  434. * @global bool $noselect_fix_enable
  435. */
  436. $noselect_fix_enable = false;
  437. /*** General options ***/
  438. /**
  439. * Path to the data/ directory
  440. *
  441. * You need to create this directory yourself (see INSTALL).
  442. *
  443. * It is a possible security hole to have a writable directory
  444. * under the web server's root directory (ex: /home/httpd/html).
  445. * The path name can be absolute or relative (to the config directory).
  446. * If path is relative, it must use SM_PATH constant.
  447. * Here are two examples:
  448. *
  449. * Absolute:
  450. * $data_dir = '/var/local/squirrelmail/data/';
  451. *
  452. * Relative (to main SM directory):
  453. * $data_dir = SM_PATH . 'data/';
  454. * (NOT recommended: you need to secure apache to make sure these
  455. * files are not world readable)
  456. *
  457. * @global string $data_dir
  458. */
  459. $data_dir = '/var/local/squirrelmail/data/';
  460. /**
  461. * Attachments directory
  462. *
  463. * Path to directory used for storing attachments while a mail is
  464. * being sent. There are a few security considerations regarding
  465. * this directory:
  466. * + It should have the permission 733 (rwx-wx-wx) to make it
  467. * impossible for a random person with access to the webserver to
  468. * list files in this directory. Confidential data might be laying
  469. * around there.
  470. * + Since the webserver is not able to list the files in the content
  471. * is also impossible for the webserver to delete files lying around
  472. * there for too long. You should have some script that deletes
  473. * left over temp files.
  474. * + It should probably be another directory than data_dir.
  475. * @global string $attachment_dir
  476. */
  477. $attachment_dir = '/var/local/squirrelmail/attach/';
  478. /**
  479. * Hash level used for data directory.
  480. *
  481. * This option allows spliting file based SquirrelMail user
  482. * data storage directory into several subfolders. Number from
  483. * 0 to 4 allows allows having up to four subfolder levels.
  484. *
  485. * Hashing should speed up directory access if you have big number
  486. * of users (500 and more).
  487. * @global integer $dir_hash_level
  488. */
  489. $dir_hash_level = 0;
  490. /**
  491. * Default Size of Folder List
  492. *
  493. * This is the default size of the folder list. Default
  494. * is 150, but you can set it to whatever you wish.
  495. * @global string $default_left_size
  496. */
  497. $default_left_size = '150';
  498. /**
  499. * Username Case Control
  500. *
  501. * Some IMAP servers allow a username (like 'bob') to log in if they use
  502. * uppercase in their name (like 'Bob' or 'BOB'). This creates extra
  503. * preference files. Toggling this option to true will transparently
  504. * change all usernames to lowercase.
  505. * @global bool $force_username_lowercase
  506. */
  507. $force_username_lowercase = false;
  508. /**
  509. * Email Priority Control
  510. *
  511. * This option enables use of email priority flags by end users.
  512. * @global bool $default_use_priority
  513. */
  514. $default_use_priority = true;
  515. /**
  516. * SquirrelMail Attributions Control
  517. *
  518. * This option disables display of "created by SquirrelMail developers"
  519. * strings and links.
  520. * @global bool $hide_sm_attributions
  521. * @since 1.2.0
  522. */
  523. $hide_sm_attributions = false;
  524. /**
  525. * Delivery Receipts Control
  526. *
  527. * This option enables use of read/delivery receipts by end users.
  528. * @global bool $default_use_mdn
  529. */
  530. $default_use_mdn = true;
  531. /**
  532. * Identity Controls
  533. *
  534. * If you don't want to allow users to change their email address
  535. * then you can set $edit_identity to false, if you want them to
  536. * not be able to change their full name too then set $edit_name
  537. * to false as well. $edit_name has no effect unless $edit_identity
  538. * is false;
  539. * @global bool $edit_identity
  540. * @global bool $edit_name
  541. */
  542. $edit_identity = true;
  543. $edit_name = true;
  544. /**
  545. * SquirrelMail adds username information to every sent email.
  546. * It is done in order to prevent possible sender forging when
  547. * end users are allowed to change their email and name
  548. * information.
  549. *
  550. * You can disable this header, if you think that it violates
  551. * user's privacy or security. Please note, that setting will
  552. * work only when users are not allowed to change their identity.
  553. *
  554. * See SquirrelMail bug tracker #847107 for more details about it.
  555. * @global bool $hide_auth_header
  556. * @since 1.5.1 and 1.4.5
  557. */
  558. $hide_auth_header = false;
  559. /**
  560. * Server Side Threading Control
  561. *
  562. * Set it to true, if you want to disable server side thread
  563. * sorting options. Your IMAP server must support the THREAD
  564. * extension for this to have any effect.
  565. *
  566. * Older SquirrelMail versions used $allow_thread_sort option.
  567. * @global bool $disable_thread_sort
  568. * @since 1.5.1
  569. */
  570. $disable_thread_sort = false;
  571. /**
  572. * Server Side Sorting Control
  573. *
  574. * Set it to true, if you want to disable server side sorting
  575. * and use SM client side sorting instead (client side sorting
  576. * can be slow). Your IMAP server must support the SORT extension
  577. * for this to have any effect.
  578. *
  579. * Older SquirrelMail versions used $allow_server_sort option.
  580. * @global bool $disable_server_sort
  581. * @since 1.5.1
  582. */
  583. $disable_server_sort = false;
  584. /**
  585. * IMAP Charset Use Control
  586. *
  587. * This option allows you to choose if SM uses charset search
  588. * Your imap server should support SEARCH CHARSET command for
  589. * this to work.
  590. * @global bool $allow_charset_search
  591. */
  592. $allow_charset_search = true;
  593. /**
  594. * Search functions control
  595. *
  596. * This option allows you to control the use of advanced search form.
  597. * Set to 0 to enable basic search only, 1 to enable advanced search only
  598. * or 2 to enable both.
  599. * @global integer $allow_advanced_search
  600. */
  601. $allow_advanced_search = 0;
  602. /**
  603. * PHP session name.
  604. *
  605. * Leave this alone unless you know what you are doing.
  606. * @global string $session_name
  607. */
  608. $session_name = 'SQMSESSID';
  609. /**
  610. * User Themes
  611. * You can define your own theme and put it in directory in SM_PATH/css/.
  612. * You must call it as the example below. You can name the theme
  613. * whatever you want.
  614. *
  615. * To add a new theme to the options that users can choose from, just
  616. * add a new number to the array at the bottom, and follow the pattern.
  617. *
  618. * $user_theme_default sets theme that will be used by default
  619. *
  620. * @global integer $user_theme_default
  621. * @since 1.5.2
  622. */
  623. $user_theme_default = 0;
  624. /**
  625. * Listing of installed themes
  626. * @global array $user_themes
  627. * @since 1.5.2
  628. */
  629. $user_themes[0]['PATH'] = 'none';
  630. $user_themes[0]['NAME'] = 'Default';
  631. $user_themes[1]['PATH'] = '../css/blue_gradient/';
  632. $user_themes[1]['NAME'] = 'Blue Options';
  633. /**
  634. * Message Icons control
  635. *
  636. * Use icons for message and folder markers
  637. * @global bool $use_icons
  638. * @since 1.5.1
  639. */
  640. $use_icons = true;
  641. /**
  642. * Icon Themes
  643. * You can create your own icon themes and put them in a directory in
  644. * SM_PATH/images/themes/. Your users will be able to choose whatever
  645. * icon themes are listed below.
  646. *
  647. * To add a new theme to the list of available icon themes, just add a new
  648. * number to the array below and follow the pattern
  649. *
  650. * $icon_theme_default sets the theme that will be used by default.
  651. * $icon_theme_fallback specifies which theme will be used if an icon is
  652. * not found in the selected theme
  653. *
  654. * @global integer $icon_theme_def
  655. * @global integer $icon_theme_fallback
  656. * @since 1.5.2
  657. */
  658. $icon_theme_def = 1;
  659. $icon_theme_fallback = 3;
  660. /**
  661. * Listing of installed icon themes
  662. * @global array $icon_themes
  663. * @since 1.5.2
  664. */
  665. $icon_themes[0]['PATH'] = 'none';
  666. $icon_themes[0]['NAME'] = 'No Icons';
  667. $icon_themes[1]['PATH'] = 'template';
  668. $icon_themes[1]['NAME'] = 'Template Default Icons';
  669. $icon_themes[2]['PATH'] = '../images/themes/default/';
  670. $icon_themes[2]['NAME'] = 'Default Icon Set';
  671. $icon_themes[3]['PATH'] = '../images/themes/xp/';
  672. $icon_themes[3]['NAME'] = 'XP Style Icons';
  673. /**
  674. * Templates
  675. * You can define your own template set (skin) and put it in a new
  676. * directory under SM_PATH/templates. The ID must match the name of
  677. * the template directory as the example below. You can name the
  678. * template whatever you want. For an example of a template, see
  679. * the ones included in the SM_PATH/templates directory.
  680. *
  681. * To add a new template to the options that users can choose from, just
  682. * add a new number to the array at the bottom, and follow the pattern.
  683. *
  684. * $templateset_default sets the skin that will be used by default
  685. * when a user doesn't have a skin selection
  686. * in their preferences. (Must be the "ID" of
  687. * the desired template set)
  688. *
  689. * $templateset_fallback tells SquirrelMail which template set (skin)
  690. * to use when looking for a file that is not
  691. * contained within whatever skin is currently
  692. * being used. (Must be the "ID" of the desired
  693. * template set)
  694. *
  695. * @global string $templateset_default
  696. * @global string $templateset_fallback
  697. */
  698. $templateset_default = 'default';
  699. $templateset_fallback = 'default';
  700. $aTemplateSet[0]['ID'] = 'default';
  701. $aTemplateSet[0]['NAME'] = 'Default';
  702. $aTemplateSet[1]['ID'] = 'default_advanced';
  703. $aTemplateSet[1]['NAME'] = 'Advanced';
  704. /**
  705. * Default interface font size.
  706. * @global string $default_fontsize
  707. * @since 1.5.1
  708. */
  709. $default_fontsize = '';
  710. /**
  711. * Default font set
  712. * @global string $default_fontset
  713. * @since 1.5.1
  714. */
  715. $default_fontset = '';
  716. /**
  717. * List of available fontsets.
  718. * @global array $fontsets
  719. * @since 1.5.1
  720. */
  721. $fontsets = array();
  722. $fontsets['serif'] = 'serif';
  723. $fontsets['sans'] = 'helvetica,arial,sans-serif';
  724. $fontsets['comicsans'] = 'comic sans ms,sans-serif';
  725. $fontsets['verasans'] = 'bitstream vera sans,verdana,sans-serif';
  726. $fontsets['tahoma'] = 'tahoma,sans-serif';
  727. /**
  728. * LDAP server(s)
  729. * Array of arrays with LDAP server parameters. See
  730. * functions/abook_ldap_server.php for a list of possible
  731. * parameters
  732. *
  733. * EXAMPLE:
  734. * $ldap_server[0] = Array(
  735. * 'host' => 'memberdir.netscape.com',
  736. * 'name' => 'Netcenter Member Directory',
  737. * 'base' => 'ou=member_directory,o=netcenter.com'
  738. * );
  739. *
  740. * NOTE: please see security note at the top of this file when
  741. * entering a password.
  742. */
  743. // Add your ldap server options here
  744. /**
  745. * Javascript in Addressbook Control
  746. *
  747. * Users may search their addressbook via either a plain HTML or Javascript
  748. * enhanced user interface. This option allows you to set the default choice.
  749. * Set this default choice as either:
  750. * true = javascript
  751. * false = html
  752. * @global bool $default_use_javascript_addr_book
  753. */
  754. $default_use_javascript_addr_book = false;
  755. /**
  756. * Shared filebased address book
  757. * @global string $abook_global_file
  758. * @since 1.5.1 and 1.4.4
  759. */
  760. $abook_global_file = '';
  761. /**
  762. * Writing into shared address book control
  763. * @global bool $abook_global_file_writeable
  764. * @since 1.5.1 and 1.4.4
  765. */
  766. $abook_global_file_writeable = false;
  767. /**
  768. * Listing of shared address book control
  769. * @global bool $abook_global_file_listing
  770. * @since 1.5.1
  771. */
  772. $abook_global_file_listing = true;
  773. /**
  774. * Controls file based address book entry size
  775. *
  776. * This setting controls space allocated to file based address book records.
  777. * End users will be unable to save address book entry, if total entry size
  778. * (quoted address book fields + 4 delimiters + linefeed) exceeds allowed
  779. * address book length size.
  780. *
  781. * Same setting is applied to personal and global file based address books.
  782. *
  783. * It is strongly recommended to keep default setting value. Change it only
  784. * if you really want to store address book entries that are bigger than two
  785. * kilobytes (2048).
  786. * @global integer $abook_file_line_length
  787. * @since 1.5.2
  788. */
  789. $abook_file_line_length = 2048;
  790. /**
  791. * MOTD
  792. *
  793. * This is a message that is displayed immediately after a user logs in.
  794. * @global string $motd
  795. */
  796. $motd = "";
  797. /**
  798. * To install plugins, just add elements to this array that have
  799. * the plugin directory name relative to the /plugins/ directory.
  800. * For instance, for the 'squirrelspell' plugin, you'd put a line like
  801. * the following.
  802. * $plugins[] = 'squirrelspell';
  803. * $plugins[] = 'listcommands';
  804. */
  805. // Add list of enabled plugins here
  806. /**
  807. * To disable all plugins regardless of any that are installed
  808. * above, turn on $disable_plugins. To disable them ONLY for
  809. * one user, put that username into $disable_plugins_user.
  810. * @global boolean $disable_plugins
  811. * @global string $disable_plugins_user
  812. * @since 1.5.2
  813. */
  814. $disable_plugins = false;
  815. $disable_plugins_user = '';
  816. /*** Database ***/
  817. /**
  818. * Read the administrator's manual in order to get more information
  819. * about these settings.
  820. */
  821. /**
  822. * Database-driven private addressbooks
  823. * DSN (Data Source Name) for a database where the private
  824. * addressbooks are stored. See the administrator's manual for more info.
  825. * If it is not set, the addressbooks are stored in files
  826. * in the data dir.
  827. * The DSN is in the format: mysql://user:pass@hostname/dbname
  828. * The table is the name of the table to use within the
  829. * specified database.
  830. *
  831. * NOTE: please see security note at the top of this file when
  832. * entering a password.
  833. */
  834. $addrbook_dsn = '';
  835. $addrbook_table = 'address';
  836. /**
  837. * Database used to store user data
  838. */
  839. $prefs_dsn = '';
  840. $prefs_table = 'userprefs';
  841. /**
  842. * Preference key field
  843. * @global string $prefs_key_field
  844. */
  845. $prefs_key_field = 'prefkey';
  846. /**
  847. * Size of preference key field
  848. * @global integer $prefs_key_size
  849. * @since 1.5.1
  850. */
  851. $prefs_key_size = 64;
  852. /**
  853. * Preference owner field
  854. * @global string $prefs_user_field
  855. */
  856. $prefs_user_field = 'user';
  857. /**
  858. * Size of preference owner field
  859. * @global integer $prefs_user_size
  860. * @since 1.5.1
  861. */
  862. $prefs_user_size = 128;
  863. /**
  864. * Preference value field
  865. * @global string $prefs_val_field
  866. */
  867. $prefs_val_field = 'prefval';
  868. /**
  869. * Size of preference key field
  870. * @global integer $prefs_val_size
  871. * @since 1.5.1
  872. */
  873. $prefs_val_size = 65536;
  874. /*** Global sql database options ***/
  875. /**
  876. * DSN of global address book database
  877. * @global string $addrbook_global_dsn
  878. * @since 1.5.1 and 1.4.4
  879. */
  880. $addrbook_global_dsn = '';
  881. /**
  882. * Table used for global database address book
  883. * @global string $addrbook_global_table
  884. * @since 1.5.1 and 1.4.4
  885. */
  886. $addrbook_global_table = 'global_abook';
  887. /**
  888. * Control writing into global database address book
  889. * @global boolean $addrbook_global_writeable
  890. * @since 1.5.1 and 1.4.4
  891. */
  892. $addrbook_global_writeable = false;
  893. /**
  894. * Control listing of global database address book
  895. * @global boolean $addrbook_global_listing
  896. * @since 1.5.1 and 1.4.4
  897. */
  898. $addrbook_global_listing = false;
  899. /*** Language settings ***/
  900. /**
  901. * Default language
  902. *
  903. * This is the default language. It is used as a last resort
  904. * if SquirrelMail can't figure out which language to display.
  905. * Language names usually consist of language code, undercore
  906. * symbol and country code
  907. * @global string $squirrelmail_default_language
  908. */
  909. $squirrelmail_default_language = 'en_US';
  910. /**
  911. * Default Charset
  912. *
  913. * This option controls what character set is used when sending
  914. * mail and when sending HTML to the browser. Option works only
  915. * with US English (en_US) translation. Other translations use
  916. * charsets that are set in translation settings.
  917. *
  918. * @global string $default_charset
  919. */
  920. $default_charset = 'iso-8859-1';
  921. /**
  922. * Alternative Language Names Control
  923. *
  924. * This options allows displaying native language names in language
  925. * selection box.
  926. * @global bool $show_alternative_names
  927. * @since 1.5.0
  928. */
  929. $show_alternative_names = false;
  930. /**
  931. * Aggressive Decoding Control
  932. *
  933. * This option enables reading of Eastern multibyte encodings.
  934. * Functions that provide this support are very cpu and memory intensive.
  935. * Don't enable this option unless you really need it.
  936. * @global bool $aggressive_decoding
  937. * @since 1.5.1
  938. */
  939. $aggressive_decoding = false;
  940. /**
  941. * Lossy Encoding Control
  942. *
  943. * This option allows charset conversions when output charset does not support
  944. * all symbols used in original charset. Symbols unsupported by output charset
  945. * will be replaced with question marks.
  946. * @global bool $lossy_encoding
  947. * @since 1.5.1
  948. */
  949. $lossy_encoding = false;
  950. /**
  951. * Controls use of time zone libraries
  952. *
  953. * Possible values:
  954. * <ul>
  955. * <li>0 - default, SquirrelMail uses GNU C timezone names in
  956. * TZ environment variables
  957. * <li>1 - strict, SquirrelMail uses 'TZ' subkey values in TZ
  958. * environment variables
  959. * <li>2 - custom, SquirrelMail loads time zone data from
  960. * config/timezones.php and uses time zone array keys in
  961. * TZ enviroment variables
  962. * <li>3 - custom strict, SquirrelMail loads time zone data from
  963. * config/timezones.php and uses TZ subkey values in
  964. * TZ enviroment variables
  965. * </ul>
  966. * Use of any other value switches to default SquirrelMail time zone
  967. * handling ($time_zone_type).
  968. * @global integer $time_zone_type
  969. * @since 1.5.1
  970. */
  971. $time_zone_type = 0;
  972. /**
  973. * Location base
  974. *
  975. * This is used to build the URL to the SquirrelMail location.
  976. * It should contain only the protocol and hostname/port parts
  977. * of the URL; the full path will be appended automatically.
  978. *
  979. * If not specified or empty, it will be autodetected.
  980. *
  981. * Examples:
  982. * http://webmail.example.org
  983. * http://webmail.example.com:8080
  984. * https://webmail.example.com:6691
  985. *
  986. * To be clear: do not include any of the path elements, so if
  987. * SquirrelMail is at http://www.example.net/web/mail/src/login.php, you
  988. * write: http://www.example.net
  989. *
  990. * @global string $config_location_base
  991. * @since 1.5.2 and 1.4.8
  992. */
  993. $config_location_base = '';
  994. /*** Tweaks ***/
  995. /**
  996. * Iframe sandbox code control
  997. *
  998. * Use iframe to render html emails
  999. * (temp option used during debuging of new code)
  1000. * @global bool $use_iframe
  1001. * @since 1.5.1
  1002. */
  1003. $use_iframe = false;
  1004. /**
  1005. * PHP recode functions control
  1006. *
  1007. * Use experimental code with php recode functions when reading messages with
  1008. * different encoding. This code is faster that original SM functions,
  1009. * but it require php with recode support.
  1010. *
  1011. * Don't enable this option if you are not sure about availability of
  1012. * recode support.
  1013. * @global bool $use_php_recode
  1014. * @since 1.5.0
  1015. */
  1016. $use_php_recode = false;
  1017. /**
  1018. * PHP iconv functions control
  1019. *
  1020. * Use experimental code with php iconv functions when reading messages with
  1021. * different encoding. This code is faster that original SM functions,
  1022. * but it require php with iconv support and works only with some translations.
  1023. *
  1024. * Don't enable this option if you are not sure about availability of
  1025. * iconv support.
  1026. * @global bool $use_php_iconv
  1027. * @since 1.5.0
  1028. */
  1029. $use_php_iconv = false;
  1030. /**
  1031. * Controls remote configuration checks
  1032. * @global boolean $allow_remote_configtest
  1033. * @since 1.5.1
  1034. */
  1035. $allow_remote_configtest = false;
  1036. /**
  1037. * Subscribe Listing Control
  1038. *
  1039. * this disables listing all of the folders on the IMAP Server to
  1040. * generate the folder subscribe listbox (this can take a long time
  1041. * when you have a lot of folders). Instead, a textbox will be
  1042. * displayed allowing users to enter a specific folder name to subscribe to
  1043. *
  1044. * This option can't be changed by conf.pl
  1045. * @global bool $no_list_for_subscribe
  1046. */
  1047. $no_list_for_subscribe = false;
  1048. /**
  1049. * Color in config control
  1050. *
  1051. * This option is used only by conf.pl script to generate configuration
  1052. * menu with some colors and is provided here only as reference.
  1053. * @global integer $config_use_color
  1054. */
  1055. $config_use_color = 2;
  1056. /**
  1057. * Ask User for Personal Information on login
  1058. *
  1059. * When a user logs in that doesn't have an email address configured,
  1060. * redirect him/her to the options page with a request to fill in their
  1061. * personal information.
  1062. *
  1063. * @global bool $ask_user_info
  1064. */
  1065. $ask_user_info = true;