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