Correct handling of default user themes.
[squirrelmail.git] / config / config_default.php
CommitLineData
59177427 1<?php
716fa276 2
a3439b27 3/**
2d896bbf 4 * Default SquirrelMail configuration file
5 *
a3439b27 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.
2d896bbf 12 *
223cc0f5 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 *
47ccfad4 18 * @copyright &copy; 2000-2006 The SquirrelMail Project Team
4b4abf93 19 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
20 * @version $Id$
2d896bbf 21 * @package squirrelmail
22 * @subpackage config
a3439b27 23 */
24
25/* Do not change this value. */
f6cfbdac 26global $version;
a3439b27 27global $config_version;
76911253 28$config_version = '1.4.0';
a3439b27 29
f6cfbdac 30/*** Organization preferences ***/
31/**
32 * Organization's name
2d896bbf 33 * @global string $org_name
f6cfbdac 34 */
35$org_name = "SquirrelMail";
b6e0c3b6 36
f6cfbdac 37/**
38 * Organization's logo picture (blank if none)
2d896bbf 39 * @global string $org_logo
f6cfbdac 40 */
41$org_logo = SM_PATH . 'images/sm_logo.png';
b6e0c3b6 42
f6cfbdac 43/**
44 * The width of the logo (0 for default)
2d896bbf 45 * @global string $org_logo_width
f6cfbdac 46 */
47$org_logo_width = '308';
b6e0c3b6 48
f6cfbdac 49/**
50 * The height of the logo (0 for default)
2d896bbf 51 * @global string $org_logo_height
f6cfbdac 52 */
53$org_logo_height = '111';
a3439b27 54
55/**
56 * Webmail Title
2d896bbf 57 *
58 * This is the web page title that appears at the top of the browser window.
59 * @global string $org_title
a3439b27 60 */
8b5c49cd 61$org_title = "SquirrelMail";
f6cfbdac 62
a3439b27 63/**
2d896bbf 64 * Signout page
65 *
f6cfbdac 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.
2d896bbf 72 * @global string $signout_page
a3439b27 73 */
f6cfbdac 74$signout_page = '';
a3439b27 75
f6cfbdac 76/**
2d896bbf 77 * Top frame
78 *
f6cfbdac 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.
2d896bbf 82 * @global string $frame_top
f6cfbdac 83 */
84$frame_top = '_top';
a3439b27 85
86/**
2d896bbf 87 * Provider name
88 *
89 * Here you can set name of the link displayed on the right side of main page.
f6cfbdac 90 *
91e0dccc 91 * Link will be displayed only if you have $hide_sm_attributions
f6cfbdac 92 * option set to true.
2d896bbf 93 * @global string $provider_name
f6cfbdac 94 */
95$provider_name = 'SquirrelMail';
f6cfbdac 96
2d896bbf 97/**
98 * Provider URI
99 *
100 * Here you can set URL of the link displayed on the right side of main page.
8b5c49cd 101 * When empty, this refers to the SquirrelMail About page.
91e0dccc 102 * Link will be displayed only if you have $hide_sm_attributions
2d896bbf 103 * option set to true.
104 * @global string $provider_uri
105 */
8b5c49cd 106$provider_uri = '';
f6cfbdac 107
108/*** Server Settings ***/
109/**
2d896bbf 110 * Default Domain
111 *
a3439b27 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
5d28b77e 115 * Example: In bob@example.com, example.com is the domain.
2d896bbf 116 * @global string $domain
a3439b27 117 */
884eba1e 118$domain = 'example.com';
a3439b27 119
f6cfbdac 120/**
2d896bbf 121 * Time offset inversion
122 *
f6cfbdac 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.
2d896bbf 127 * @global bool $invert_time
f6cfbdac 128 */
129$invert_time = false;
a3439b27 130
131/**
2d896bbf 132 * Default send transport
133 *
f6cfbdac 134 * What should be used when sending email.
135 * If it is set to false, SquirrelMail will use SMTP server settings.
91e0dccc 136 * If it is set to true, SquirrelMail will use program defined in
f6cfbdac 137 * $sendmail_path
2d896bbf 138 * @global bool $useSendmail
a3439b27 139 */
f6cfbdac 140$useSendmail = false;
a3439b27 141
f6cfbdac 142/**
2d896bbf 143 * Your SMTP server (usually the same as the IMAP server).
144 * @global string $smtpServerAddress
f6cfbdac 145 */
146$smtpServerAddress = 'localhost';
2d896bbf 147/**
148 * Your SMTP port number (usually 25).
149 * @global integer $smtpPort
150 */
f6cfbdac 151$smtpPort = 25;
a3439b27 152
153/**
432db2fc 154 * SquirrelMail header encryption
2d896bbf 155 *
432db2fc 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.
cba7675e 160 *
432db2fc 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
94511d23 168 * @since 1.5.1 and 1.4.5
cba7675e 169 */
432db2fc 170$encode_header_key = '';
cba7675e 171
172/**
2d896bbf 173 * Path to Sendmail
174 *
f6cfbdac 175 * Program that should be used when sending email. SquirrelMail expects that
91e0dccc 176 * this program will follow options used by original sendmail
fd7ab795 177 * (http://www.sendmail.org). Support of -f argument is required.
2d896bbf 178 * @global string $sendmail_path
a3439b27 179 */
f6cfbdac 180$sendmail_path = '/usr/sbin/sendmail';
91e0dccc 181
f6cfbdac 182/**
fd7ab795 183 * Extra sendmail command arguments.
85bacb8f 184 *
185 * Sets additional sendmail command arguments. Make sure that arguments are
fd7ab795 186 * supported by your sendmail program. -f argument is added automatically by
85bacb8f 187 * SquirrelMail scripts. Variable defaults to standard /usr/sbin/sendmail
fd7ab795 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
85bacb8f 190 * or use arguments suitable for your mailer.
fd7ab795 191 * @global string $sendmail_args
5e68a08e 192 * @since 1.5.1 and 1.4.8
fd7ab795 193 */
194$sendmail_args = '-i -t';
195
196/**
2d896bbf 197 * IMAP server address
198 *
199 * The dns name (or IP address) for your imap server.
200 * @global string $imapServerAddress
f6cfbdac 201 */
202$imapServerAddress = 'localhost';
2d896bbf 203
204/**
205 * IMAP server port
206 *
207 * Port used by your imap server. (Usually 143)
208 * @global integer $imapPort
209 */
f6cfbdac 210$imapPort = 143;
a3439b27 211
212/**
2d896bbf 213 * IMAP server type
214 *
a3439b27 215 * The type of IMAP server you are running.
216 * Valid type are the following (case is important):
e498ebbd 217 * bincimap
a3439b27 218 * courier
219 * cyrus
e498ebbd 220 * dovecot
a3439b27 221 * exchange
b39825f0 222 * hmailserver
e498ebbd 223 * macosx
f6cfbdac 224 * mercury32
e498ebbd 225 * uw
a3439b27 226 * other
f6cfbdac 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
598294a7 231 * SquirrelMail options. These options are listed in doc/presets.txt
2d896bbf 232 * @global string $imap_server_type
a3439b27 233 */
884eba1e 234$imap_server_type = 'other';
a3439b27 235
236/**
a15f9d93 237 * Secure IMAP connection controls
2d896bbf 238 *
a15f9d93 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
a3439b27 246 */
a15f9d93 247$use_imap_tls = 0;
2d896bbf 248
249/**
a15f9d93 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).
2d896bbf 255 *
a15f9d93 256 * Was boolean before 1.5.1.
257 * @global integer $use_smtp_tls
258 * @since 1.4.0
2d896bbf 259 */
a15f9d93 260$use_smtp_tls = 0;
a3439b27 261
262/**
2d896bbf 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
f6cfbdac 267 */
268$smtp_auth_mech = 'none';
2d896bbf 269
270/**
029d1fc2 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/**
2d896bbf 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 */
f6cfbdac 298$imap_auth_mech = 'login';
299
300/**
2d896bbf 301 * IMAP folder delimiter
302 *
f6cfbdac 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'.
2d896bbf 311 * @global string $optional_delimiter
f6cfbdac 312 */
313$optional_delimiter = 'detect';
314
315/**
2d896bbf 316 * POP before SMTP setting
317 *
f6cfbdac 318 * Do you wish to use POP3 before SMTP? Your server must
319 * support this in order for SquirrelMail to work with it.
2d896bbf 320 * @global bool $pop_before_smtp
f6cfbdac 321 */
322$pop_before_smtp = false;
323
324
325/*** Folder Settings ***/
326/**
2d896bbf 327 * Default IMAP folder prefix
328 *
a3439b27 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.
2d896bbf 341 * @global string $default_folder_prefix
a3439b27 342 */
a3439b27 343$default_folder_prefix = '';
344
345/**
2d896bbf 346 * User level prefix control
347 *
a3439b27 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.
2d896bbf 351 * @global bool $show_prefix_option
a3439b27 352 */
a3439b27 353$show_prefix_option = false;
354
355/**
356 * The following are related to deleting messages.
f6cfbdac 357 * $default_move_to_trash
358 * If this is set to 'true', when 'delete' is pressed, it
a3439b27 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.
f6cfbdac 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.
a3439b27 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.
f6cfbdac 372 * $draft_folder
373 * This is the patch to where Draft messages will be stored.
a3439b27 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.
4e85a37f 380 * $delete_folder
381 * If this is true, when a folder is deleted then it will
382 * not get moved into the Trash folder.
2d896bbf 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
a3439b27 391 */
a3439b27 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;
4e85a37f 399$delete_folder = false;
a3439b27 400
401/**
2d896bbf 402 * Special Folder Color Control
403 *
f6cfbdac 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.
2d896bbf 406 * @global bool $use_special_folder_color
f6cfbdac 407 */
408$use_special_folder_color = true;
409
410/**
2d896bbf 411 * Create Special Folders Control
412 *
a3439b27 413 * Should I create the Sent and Trash folders automatically for
414 * a new user that doesn't already have them created?
2d896bbf 415 * @global bool $auto_create_special
a3439b27 416 */
a3439b27 417$auto_create_special = true;
418
2d896bbf 419/**
420 * List Special Folders First Control
421 *
422 * Whether or not to list the special folders first (true/false).
91e0dccc 423 * @global bool $list_special_folders_first
2d896bbf 424 */
a3439b27 425$list_special_folders_first = true;
426
427/**
2d896bbf 428 * Subfolder Layout Control
429 *
a3439b27 430 * Are all your folders subfolders of INBOX (i.e. cyrus IMAP server).
431 * If you are unsure, set it to false.
2d896bbf 432 * @global bool $default_sub_of_inbox
a3439b27 433 */
a3439b27 434$default_sub_of_inbox = true;
435
436/**
2d896bbf 437 * Subfolder Format Control
438 *
a3439b27 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 *
91e0dccc 445 * If this option confuses you, just set it to 'true'. You can not hurt
a3439b27 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).
2d896bbf 448 * @global bool $show_contain_subfolders_option
a3439b27 449 */
a3439b27 450$show_contain_subfolders_option = false;
451
452/**
f6cfbdac 453 * These next two options set the defaults for the way that the
454 * users see their folder list.
455 * $default_unseen_notify
91e0dccc 456 * Specifies whether or not the users will see the number of
f6cfbdac 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).
2d896bbf 462 * @global integer $default_unseen_notify
463 * @global integer $default_unseen_type
a3439b27 464 */
f6cfbdac 465$default_unseen_notify = 2;
466$default_unseen_type = 1;
a3439b27 467
468/**
2d896bbf 469 * NoSelect Fix Control
470 *
f6cfbdac 471 * This enables the no select fix for Cyrus when subfolders
472 * exist but parent folders do not
2d896bbf 473 * @global bool $noselect_fix_enable
f6cfbdac 474 */
475$noselect_fix_enable = false;
476
477/*** General options ***/
478/**
a3439b27 479 * Path to the data/ directory
2d896bbf 480 *
368ab966 481 * You need to create this directory yourself (see INSTALL).
482 *
a3439b27 483 * It is a possible security hole to have a writable directory
484 * under the web server's root directory (ex: /home/httpd/html).
368ab966 485 * The path name can be absolute or relative (to the config directory).
ff6d5db0 486 * If path is relative, it must use SM_PATH constant.
368ab966 487 * Here are two examples:
a3439b27 488 *
489 * Absolute:
368ab966 490 * $data_dir = '/var/local/squirrelmail/data/';
a3439b27 491 *
f6cfbdac 492 * Relative (to main SM directory):
884eba1e 493 * $data_dir = SM_PATH . 'data/';
368ab966 494 * (NOT recommended: you need to secure apache to make sure these
495 * files are not world readable)
496 *
2d896bbf 497 * @global string $data_dir
a3439b27 498 */
aabfe164 499$data_dir = '/var/local/squirrelmail/data/';
a3439b27 500
501/**
2d896bbf 502 * Attachments directory
503 *
a3439b27 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
368ab966 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.
a3439b27 515 * + It should probably be another directory than data_dir.
2d896bbf 516 * @global string $attachment_dir
a3439b27 517 */
aabfe164 518$attachment_dir = '/var/local/squirrelmail/attach/';
a3439b27 519
f6cfbdac 520/**
521 * Hash level used for data directory.
91e0dccc 522 *
598294a7 523 * This option allows spliting file based SquirrelMail user
f6cfbdac 524 * data storage directory into several subfolders. Number from
525 * 0 to 4 allows allows having up to four subfolder levels.
526 *
91e0dccc 527 * Hashing should speed up directory access if you have big number
f6cfbdac 528 * of users (500 and more).
2d896bbf 529 * @global integer $dir_hash_level
f6cfbdac 530 */
a3439b27 531$dir_hash_level = 0;
532
533/**
2d896bbf 534 * Default Size of Folder List
535 *
a3439b27 536 * This is the default size of the folder list. Default
537 * is 150, but you can set it to whatever you wish.
2d896bbf 538 * @global string $default_left_size
a3439b27 539 */
f6cfbdac 540$default_left_size = '150';
a3439b27 541
542/**
2d896bbf 543 * Username Case Control
544 *
a3439b27 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.
2d896bbf 549 * @global bool $force_username_lowercase
a3439b27 550 */
a3439b27 551$force_username_lowercase = false;
552
553/**
2d896bbf 554 * Email Priority Control
555 *
f6cfbdac 556 * This option enables use of email priority flags by end users.
2d896bbf 557 * @global bool $default_use_priority
f6cfbdac 558 */
559$default_use_priority = true;
560
561/**
2d896bbf 562 * SquirrelMail Attributions Control
563 *
598294a7 564 * This option disables display of "created by SquirrelMail developers"
f6cfbdac 565 * strings and provider link
2d896bbf 566 * @global bool $hide_sm_attributions
beebd508 567 * @since 1.2.0
f6cfbdac 568 */
569$hide_sm_attributions = false;
570
571/**
2d896bbf 572 * Delivery Receipts Control
573 *
574 * This option enables use of read/delivery receipts by end users.
575 * @global bool $default_use_mdn
f6cfbdac 576 */
577$default_use_mdn = true;
578
579/**
2d896bbf 580 * Identity Controls
581 *
f6cfbdac 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;
2d896bbf 587 * @global bool $edit_identity
588 * @global bool $edit_name
f6cfbdac 589 */
590$edit_identity = true;
591$edit_name = true;
592
593/**
432db2fc 594 * SquirrelMail adds username information to every sent email.
85bacb8f 595 * It is done in order to prevent possible sender forging when
596 * end users are allowed to change their email and name
432db2fc 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
94511d23 605 * @since 1.5.1 and 1.4.5
432db2fc 606 */
607$hide_auth_header = false;
608
609/**
2d896bbf 610 * Server Side Threading Control
611 *
e7650b35 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.
11e00010 617 * @global bool $disable_thread_sort
e7650b35 618 * @since 1.5.1
f6cfbdac 619 */
11e00010 620$disable_thread_sort = false;
f6cfbdac 621
2d896bbf 622/**
623 * Server Side Sorting Control
624 *
e7650b35 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
f6cfbdac 633 */
11e00010 634$disable_server_sort = false;
f6cfbdac 635
636/**
2d896bbf 637 * IMAP Charset Use Control
638 *
f6cfbdac 639 * This option allows you to choose if SM uses charset search
91e0dccc 640 * Your imap server should support SEARCH CHARSET command for
f6cfbdac 641 * this to work.
2d896bbf 642 * @global bool $allow_charset_search
f6cfbdac 643 */
644$allow_charset_search = true;
645
646/**
fdefb2e7 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/**
2d896bbf 657 * PHP session name.
658 *
659 * Leave this alone unless you know what you are doing.
660 * @global string $session_name
f6cfbdac 661 */
662$session_name = 'SQMSESSID';
663
664
665/**
82351c82 666 * User Themes
a3439b27 667 * You can define your own theme and put it in this directory.
668 * You must call it as the example below. You can name the theme
669 * whatever you want. For an example of a theme, see the ones
670 * included in the config directory.
671 *
672 * To add a new theme to the options that users can choose from, just
673 * add a new number to the array at the bottom, and follow the pattern.
91e0dccc 674 *
82351c82 675 * $user_theme_default sets theme that will be used by default
f6cfbdac 676 * used by default.
82351c82 677 * @global integer $user_theme_default
a3439b27 678 */
82351c82 679$user_theme_default = 0;
a3439b27 680
2d896bbf 681/**
682 * Listing of installed themes
82351c82 683 * @global array $user_themes
2d896bbf 684 */
82351c82 685$user_themes[0]['PATH'] = 'none';
686$user_themes[0]['NAME'] = 'Default';
48adf5d6 687
a3439b27 688/**
85bacb8f 689 * Templates
5e78e498 690 * You can define your own template and put it in a new directory
691 * under SM_PATH/templates. The ID must match the name of
692 * the template directory as the example below. You can name the
693 * template whatever you want. For an example of a template, see
694 * the ones included in the SM_PATH/templates directory.
85bacb8f 695 *
696 * To add a new template to the options that users can choose from, just
697 * add a new number to the array at the bottom, and follow the pattern.
698 *
5e78e498 699 * $templateset_default sets theme that will be used by default.
700 *
85bacb8f 701 * @global integer $templateset_default
702 */
703$templateset_default = 0;
3838173b 704$templateset_fallback = 0;
85bacb8f 705
5e78e498 706$aTemplateSet[0]['ID'] = 'default';
707$aTemplateSet[0]['NAME'] = 'Default';
708$aTemplateSet[1]['ID'] = 'default_advanced';
709$aTemplateSet[1]['NAME'] = 'Advanced';
85bacb8f 710
711/**
81132de8 712 * Default interface font size.
713 * @global string $default_fontsize
714 * @since 1.5.1
715 */
716$default_fontsize = '';
717
718/**
719 * Default font set
720 * @global string $default_fontset
721 * @since 1.5.1
722 */
723$default_fontset = '';
724
725/**
726 * List of available fontsets.
727 * @global array $fontsets
728 * @since 1.5.1
729 */
730$fontsets = array();
731$fontsets['serif'] = 'serif';
732$fontsets['sans'] = 'helvetica,arial,sans-serif';
733$fontsets['comicsans'] = 'comic sans ms,sans-serif';
734$fontsets['verasans'] = 'bitstream vera sans,verdana,sans-serif';
735$fontsets['tahoma'] = 'tahoma,sans-serif';
736
737/**
a3439b27 738 * LDAP server(s)
739 * Array of arrays with LDAP server parameters. See
740 * functions/abook_ldap_server.php for a list of possible
741 * parameters
742 *
743 * EXAMPLE:
744 * $ldap_server[0] = Array(
745 * 'host' => 'memberdir.netscape.com',
746 * 'name' => 'Netcenter Member Directory',
747 * 'base' => 'ou=member_directory,o=netcenter.com'
91e0dccc 748 * );
223cc0f5 749 *
750 * NOTE: please see security note at the top of this file when
751 * entering a password.
a3439b27 752 */
f6cfbdac 753// Add your ldap server options here
3499f99f 754
a3439b27 755/**
2d896bbf 756 * Javascript in Addressbook Control
757 *
a3439b27 758 * Users may search their addressbook via either a plain HTML or Javascript
759 * enhanced user interface. This option allows you to set the default choice.
760 * Set this default choice as either:
761 * true = javascript
762 * false = html
2d896bbf 763 * @global bool $default_use_javascript_addr_book
a3439b27 764 */
a3439b27 765$default_use_javascript_addr_book = false;
766
4272758c 767/**
768 * Shared filebased address book
769 * @global string $abook_global_file
71d3f882 770 * @since 1.5.1 and 1.4.4
4272758c 771 */
772$abook_global_file = '';
773
774/**
775 * Writing into shared address book control
776 * @global bool $abook_global_file_writeable
71d3f882 777 * @since 1.5.1 and 1.4.4
4272758c 778 */
779$abook_global_file_writeable = false;
a3439b27 780
80e86e94 781/**
71d3f882 782 * Listing of shared address book control
783 * @global bool $abook_global_file_listing
784 * @since 1.5.1
785 */
786$abook_global_file_listing = true;
787
788/**
7311c377 789 * Controls file based address book entry size
790 *
791 * This setting controls space allocated to file based address book records.
792 * End users will be unable to save address book entry, if total entry size
793 * (quoted address book fields + 4 delimiters + linefeed) exceeds allowed
794 * address book length size.
795 *
796 * Same setting is applied to personal and global file based address books.
797 *
798 * It is strongly recommended to keep default setting value. Change it only
799 * if you really want to store address book entries that are bigger than two
800 * kilobytes (2048).
801 * @global integer $abook_file_line_length
802 * @since 1.5.2
803 */
804$abook_file_line_length = 2048;
805
806/**
f6cfbdac 807 * MOTD
2d896bbf 808 *
91e0dccc 809 * This is a message that is displayed immediately after a user logs in.
2d896bbf 810 * @global string $motd
80e86e94 811 */
f6cfbdac 812$motd = "";
80e86e94 813
80e86e94 814
a3439b27 815/**
816 * To install plugins, just add elements to this array that have
817 * the plugin directory name relative to the /plugins/ directory.
818 * For instance, for the 'sqclock' plugin, you'd put a line like
819 * the following.
a1b036d6 820 * $plugins[] = 'sqclock';
821 * $plugins[] = 'attachment_common';
a3439b27 822 */
f6cfbdac 823// Add list of enabled plugins here
a3439b27 824
f6cfbdac 825
826/*** Database ***/
a3439b27 827/**
91e0dccc 828 * Read doc/database.txt in order to get more information
f6cfbdac 829 * about these settings.
8a7d0669 830 */
f6cfbdac 831/**
832 * Database-driven private addressbooks
833 * DSN (Data Source Name) for a database where the private
834 * addressbooks are stored. See doc/db-backend.txt for more info.
835 * If it is not set, the addressbooks are stored in files
836 * in the data dir.
837 * The DSN is in the format: mysql://user:pass@hostname/dbname
838 * The table is the name of the table to use within the
839 * specified database.
223cc0f5 840 *
841 * NOTE: please see security note at the top of this file when
842 * entering a password.
f6cfbdac 843 */
844$addrbook_dsn = '';
845$addrbook_table = 'address';
846/**
847 * Database used to store user data
848 */
849$prefs_dsn = '';
850$prefs_table = 'userprefs';
06316c07 851/**
85bacb8f 852 * Preference key field
06316c07 853 * @global string $prefs_key_field
854 */
f6cfbdac 855$prefs_key_field = 'prefkey';
06316c07 856/**
857 * Size of preference key field
858 * @global integer $prefs_key_size
859 * @since 1.5.1
860 */
861$prefs_key_size = 64;
862/**
85bacb8f 863 * Preference owner field
06316c07 864 * @global string $prefs_user_field
865 */
f6cfbdac 866$prefs_user_field = 'user';
06316c07 867/**
868 * Size of preference owner field
869 * @global integer $prefs_user_size
870 * @since 1.5.1
871 */
872$prefs_user_size = 128;
873/**
85bacb8f 874 * Preference value field
06316c07 875 * @global string $prefs_val_field
876 */
f6cfbdac 877$prefs_val_field = 'prefval';
06316c07 878/**
879 * Size of preference key field
880 * @global integer $prefs_val_size
881 * @since 1.5.1
882 */
883$prefs_val_size = 65536;
71d3f882 884
885/*** Global sql database options ***/
30e9932c 886/**
71d3f882 887 * DSN of global address book database
888 * @global string $addrbook_global_dsn
f0a4a973 889 * @since 1.5.1 and 1.4.4
30e9932c 890 */
891$addrbook_global_dsn = '';
71d3f882 892/**
893 * Table used for global database address book
894 * @global string $addrbook_global_table
f0a4a973 895 * @since 1.5.1 and 1.4.4
71d3f882 896 */
30e9932c 897$addrbook_global_table = 'global_abook';
71d3f882 898/**
899 * Control writing into global database address book
900 * @global boolean $addrbook_global_writeable
f0a4a973 901 * @since 1.5.1 and 1.4.4
71d3f882 902 */
30e9932c 903$addrbook_global_writeable = false;
71d3f882 904/**
905 * Control listing of global database address book
906 * @global boolean $addrbook_global_listing
f0a4a973 907 * @since 1.5.1 and 1.4.4
71d3f882 908 */
30e9932c 909$addrbook_global_listing = false;
7c612fdd 910
f6cfbdac 911/*** Language settings ***/
7c612fdd 912/**
f6cfbdac 913 * Default language
2d896bbf 914 *
f6cfbdac 915 * This is the default language. It is used as a last resort
916 * if SquirrelMail can't figure out which language to display.
91e0dccc 917 * Language names usually consist of language code, undercore
f6cfbdac 918 * symbol and country code
2d896bbf 919 * @global string $squirrelmail_default_language
aa0da530 920 */
f6cfbdac 921$squirrelmail_default_language = 'en_US';
7c612fdd 922
f6cfbdac 923/**
2d896bbf 924 * Default Charset
925 *
fe48c808 926 * This option controls what character set is used when sending
927 * mail and when sending HTML to the browser. Option works only
928 * with US English (en_US) translation. Other translations use
867fed37 929 * charsets that are set in translation settings.
fe48c808 930 *
2d896bbf 931 * @global string $default_charset
f6cfbdac 932 */
933$default_charset = 'iso-8859-1';
7c612fdd 934
f6cfbdac 935/**
2d896bbf 936 * Alternative Language Names Control
937 *
91e0dccc 938 * This options allows displaying native language names in language
f6cfbdac 939 * selection box.
2d896bbf 940 * @global bool $show_alternative_names
f03f6ee7 941 * @since 1.5.0
f6cfbdac 942 */
943$show_alternative_names = false;
aa0da530 944
8a7d0669 945/**
f03f6ee7 946 * Aggressive Decoding Control
2d896bbf 947 *
91e0dccc 948 * This option enables reading of Eastern multibyte encodings.
f6cfbdac 949 * Functions that provide this support are very cpu and memory intensive.
950 * Don't enable this option unless you really need it.
f03f6ee7 951 * @global bool $aggressive_decoding
952 * @since 1.5.1
ca85aabe 953 */
f03f6ee7 954$aggressive_decoding = false;
955
956/**
6d3689f5 957 * Lossy Encoding Control
f03f6ee7 958 *
91e0dccc 959 * This option allows charset conversions when output charset does not support
960 * all symbols used in original charset. Symbols unsupported by output charset
f03f6ee7 961 * will be replaced with question marks.
6d3689f5 962 * @global bool $lossy_encoding
f03f6ee7 963 * @since 1.5.1
964 */
6d3689f5 965$lossy_encoding = false;
ca85aabe 966
4766fd60 967/**
968 * Controls use of time zone libraries
969 *
970 * Possible values:
971 * <ul>
972 * <li>0 - default, SquirrelMail uses GNU C timezone names in
973 * TZ environment variables
974 * <li>1 - strict, SquirrelMail uses 'TZ' subkey values in TZ
975 * environment variables
976 * <li>2 - custom, SquirrelMail loads time zone data from
977 * config/timezones.php and uses time zone array keys in
978 * TZ enviroment variables
979 * <li>3 - custom strict, SquirrelMail loads time zone data from
980 * config/timezones.php and uses TZ subkey values in
981 * TZ enviroment variables
982 * </ul>
983 * Use of any other value switches to default SquirrelMail time zone
984 * handling ($time_zone_type).
985 * @global integer $time_zone_type
986 * @since 1.5.1
987 */
988$time_zone_type = 0;
989
74530cf4 990/**
991 * Location base
992 *
993 * This is used to build the URL to the SquirrelMail location.
994 * It should contain only the protocol and hostname/port parts
995 * of the URL; the full path will be appended automatically.
996 *
997 * If not specified or empty, it will be autodetected.
998 *
999 * Examples:
1000 * http://webmail.example.org
1001 * http://webmail.example.com:8080
1002 * https://webmail.example.com:6691
1003 *
1004 * To be clear: do not include any of the path elements, so if
1005 * SquirrelMail is at http://www.example.net/web/mail/src/login.php, you
1006 * write: http://www.example.net
1007 *
05a7e5b4 1008 * @global string $config_location_base
1009 * @since 1.5.2 and 1.4.8
74530cf4 1010 */
1011$config_location_base = '';
1012
f6cfbdac 1013/*** Tweaks ***/
1014/**
74d6a0d9 1015 * Iframe sandbox code control
1016 *
1017 * Use iframe to render html emails
1018 * (temp option used during debuging of new code)
1019 * @global bool $use_iframe
1020 * @since 1.5.1
1021 */
1022$use_iframe = false;
1023
1024/**
2d896bbf 1025 * Message Icons control
1026 *
6395c46d 1027 * Use icons for message and folder markers
2d896bbf 1028 * @global bool $use_icons
71d3f882 1029 * @since 1.5.1
6395c46d 1030 */
1031$use_icons = false;
2d896bbf 1032
6395c46d 1033/**
2d896bbf 1034 * PHP recode functions control
1035 *
f6cfbdac 1036 * Use experimental code with php recode functions when reading messages with
1037 * different encoding. This code is faster that original SM functions,
1038 * but it require php with recode support.
91e0dccc 1039 *
1040 * Don't enable this option if you are not sure about availability of
f6cfbdac 1041 * recode support.
2d896bbf 1042 * @global bool $use_php_recode
f03f6ee7 1043 * @since 1.5.0
f6cfbdac 1044 */
1045$use_php_recode = false;
f03f6ee7 1046
f6cfbdac 1047/**
2d896bbf 1048 * PHP iconv functions control
1049 *
f6cfbdac 1050 * Use experimental code with php iconv functions when reading messages with
1051 * different encoding. This code is faster that original SM functions,
1052 * but it require php with iconv support and works only with some translations.
91e0dccc 1053 *
1054 * Don't enable this option if you are not sure about availability of
f6cfbdac 1055 * iconv support.
2d896bbf 1056 * @global bool $use_php_iconv
f03f6ee7 1057 * @since 1.5.0
f6cfbdac 1058 */
1059$use_php_iconv = false;
ca85aabe 1060
1061/**
71d3f882 1062 * Controls remote configuration checks
1063 * @global boolean $allow_remote_configtest
1064 * @since 1.5.1
1065 */
1066$allow_remote_configtest = false;
1067
1068/**
2d896bbf 1069 * Subscribe Listing Control
1070 *
52ed2f88 1071 * this disables listing all of the folders on the IMAP Server to
1072 * generate the folder subscribe listbox (this can take a long time
1073 * when you have a lot of folders). Instead, a textbox will be
f6cfbdac 1074 * displayed allowing users to enter a specific folder name to subscribe to
91e0dccc 1075 *
f6cfbdac 1076 * This option can't be changed by conf.pl
2d896bbf 1077 * @global bool $no_list_for_subscribe
f6cfbdac 1078 */
52ed2f88 1079$no_list_for_subscribe = false;
1080
1081/**
2d896bbf 1082 * Color in config control
1083 *
f6cfbdac 1084 * This option is used only by conf.pl script to generate configuration
91e0dccc 1085 * menu with some colors and is provided here only as reference.
2d896bbf 1086 * @global integer $config_use_color
47a29326 1087 */
f6cfbdac 1088$config_use_color = 2;