| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * BEFORE EDITING THIS FILE! |
| 5 | * |
| 6 | * Don't edit this file directly. Copy it to config.php before you |
| 7 | * edit it. However, it is best to use the configuration script |
| 8 | * conf.pl if at all possible. That is the easiest and cleanest way |
| 9 | * to configure. |
| 10 | */ |
| 11 | |
| 12 | /* Do not change this value. */ |
| 13 | global $version; |
| 14 | global $config_version; |
| 15 | $config_version = '1.4.0'; |
| 16 | |
| 17 | /*** Organization preferences ***/ |
| 18 | /** |
| 19 | * Organization's name |
| 20 | */ |
| 21 | $org_name = "SquirrelMail"; |
| 22 | |
| 23 | /** |
| 24 | * Organization's logo picture (blank if none) |
| 25 | */ |
| 26 | $org_logo = SM_PATH . 'images/sm_logo.png'; |
| 27 | |
| 28 | /** |
| 29 | * The width of the logo (0 for default) |
| 30 | */ |
| 31 | $org_logo_width = '308'; |
| 32 | |
| 33 | /** |
| 34 | * The height of the logo (0 for default) |
| 35 | */ |
| 36 | $org_logo_height = '111'; |
| 37 | |
| 38 | /** |
| 39 | * Webmail Title |
| 40 | * This is the web page title that appears at the top of the browser window. |
| 41 | */ |
| 42 | $org_title = "SquirrelMail $version"; |
| 43 | |
| 44 | /** |
| 45 | * Rather than going to the signout.php page (which only allows you |
| 46 | * to sign back in), setting signout_page allows you to sign the user |
| 47 | * out and then redirect to whatever page you want. For instance, |
| 48 | * the following would return the user to your home page: |
| 49 | * $signout_page = '/'; |
| 50 | * Set to the empty string to continue to use the default signout page. |
| 51 | */ |
| 52 | $signout_page = ''; |
| 53 | |
| 54 | /** |
| 55 | * By default SquirrelMail takes up the whole browser window, |
| 56 | * this allows you to embed it within sites using frames. Set |
| 57 | * this to the frame you want it to stay in. |
| 58 | */ |
| 59 | $frame_top = '_top'; |
| 60 | |
| 61 | /** |
| 62 | * Here you can set link displayed on the right side of main page. |
| 63 | * $provider_name sets name of link |
| 64 | * $provider_url set address used in the link |
| 65 | * |
| 66 | * Link will be displayed only if you have $hide_sm_attributions |
| 67 | * option set to true. |
| 68 | */ |
| 69 | $provider_name = 'SquirrelMail'; |
| 70 | $provider_uri = 'http://www.squirrelmail.org/'; |
| 71 | |
| 72 | |
| 73 | /*** Server Settings ***/ |
| 74 | /** |
| 75 | * The domain part of local email addresses. |
| 76 | * This is for all messages sent out from this server. |
| 77 | * Reply address is generated by $username@$domain |
| 78 | * Example: In bob@foo.com, foo.com is the domain. |
| 79 | */ |
| 80 | $domain = 'example.com'; |
| 81 | |
| 82 | /** |
| 83 | * If you are running on a machine that doesn't have the tm_gmtoff |
| 84 | * value in your time structure and if you are in a time zone that |
| 85 | * has a negative offset, you need to set this value to 1. This is |
| 86 | * typically people in the US that are running Solaris 7. |
| 87 | */ |
| 88 | $invert_time = false; |
| 89 | |
| 90 | /** |
| 91 | * What should be used when sending email. |
| 92 | * If it is set to false, SquirrelMail will use SMTP server settings. |
| 93 | * If it is set to true, SquirrelMail will use program defined in |
| 94 | * $sendmail_path |
| 95 | */ |
| 96 | $useSendmail = false; |
| 97 | |
| 98 | /** |
| 99 | * Your SMTP server and port number (usually the same as the IMAP server). |
| 100 | */ |
| 101 | $smtpServerAddress = 'localhost'; |
| 102 | $smtpPort = 25; |
| 103 | |
| 104 | /** |
| 105 | * Option can be used to disable Received: headers added by squirrelmail. |
| 106 | * This can increase user's privacy and solve problems with spam filters |
| 107 | * that increase spam marks for dynamic dialup addresses. |
| 108 | * |
| 109 | * If admin enables this setting, system should have some logging facility |
| 110 | * or other tools to control users. SquirrelMail's Received: header provides |
| 111 | * information, that can't be forged by webmail user. |
| 112 | */ |
| 113 | $skip_SM_header = false; |
| 114 | |
| 115 | /** |
| 116 | * Program that should be used when sending email. SquirrelMail expects that |
| 117 | * this program will follow options used by original sendmail |
| 118 | * (http://www.sendmail.org). |
| 119 | */ |
| 120 | $sendmail_path = '/usr/sbin/sendmail'; |
| 121 | |
| 122 | /** |
| 123 | * The dns name (or IP address) and port for your imap server. |
| 124 | */ |
| 125 | $imapServerAddress = 'localhost'; |
| 126 | $imapPort = 143; |
| 127 | |
| 128 | /** |
| 129 | * The type of IMAP server you are running. |
| 130 | * Valid type are the following (case is important): |
| 131 | * courier |
| 132 | * cyrus |
| 133 | * exchange |
| 134 | * uw |
| 135 | * macosx |
| 136 | * mercury32 |
| 137 | * other |
| 138 | * |
| 139 | * Please note that this changes only some of server settings. |
| 140 | * |
| 141 | * In order to set everything correctly, you need to adjust several |
| 142 | * squirrelmail options. These options are listed in doc/presets.txt |
| 143 | */ |
| 144 | $imap_server_type = 'other'; |
| 145 | |
| 146 | /** |
| 147 | * Advanced authentication options |
| 148 | * CRAM-MD5, DIGEST-MD5, Plain, and TLS |
| 149 | * Set reasonable defaults - you'd never know this was there unless you ask for it |
| 150 | */ |
| 151 | $use_imap_tls = false; |
| 152 | $use_smtp_tls = false; |
| 153 | |
| 154 | /** |
| 155 | * auth_mech can be either 'login','plain', 'cram-md5', or 'digest-md5' |
| 156 | * SMTP can also be 'none' |
| 157 | */ |
| 158 | $smtp_auth_mech = 'none'; |
| 159 | $imap_auth_mech = 'login'; |
| 160 | |
| 161 | /** |
| 162 | * This is the delimiter that your IMAP server uses to distinguish between |
| 163 | * folders. For example, Cyrus uses '.' as the delimiter and a complete |
| 164 | * folder would look like 'INBOX.Friends.Bob', while UW uses '/' and would |
| 165 | * look like 'INBOX/Friends/Bob'. Normally this should be left at 'detect' |
| 166 | * but if you are sure you know what delimiter your server uses, you can |
| 167 | * specify it here. |
| 168 | * |
| 169 | * To have it autodetect the delimiter, set it to 'detect'. |
| 170 | */ |
| 171 | $optional_delimiter = 'detect'; |
| 172 | |
| 173 | /** |
| 174 | * Do you wish to use POP3 before SMTP? Your server must |
| 175 | * support this in order for SquirrelMail to work with it. |
| 176 | */ |
| 177 | $pop_before_smtp = false; |
| 178 | |
| 179 | |
| 180 | /*** Folder Settings ***/ |
| 181 | /** |
| 182 | * Many servers store mail in your home directory. With this, they |
| 183 | * store them in a subdirectory: mail/ or Mail/, etc. If your server |
| 184 | * does this, please set this to what the default mail folder should |
| 185 | * be. This is still a user preference, so they can change it if it |
| 186 | * is different for each user. |
| 187 | * |
| 188 | * Example: |
| 189 | * $default_folder_prefix = 'mail/'; |
| 190 | * -- or -- |
| 191 | * $default_folder_prefix = 'Mail/folders/'; |
| 192 | * |
| 193 | * If you do not use this, set it to the empty string. |
| 194 | */ |
| 195 | $default_folder_prefix = ''; |
| 196 | |
| 197 | /** |
| 198 | * If you do not wish to give them the option to change this, set it |
| 199 | * to false. Otherwise, if it is true, they can change the folder prefix |
| 200 | * to be anything. |
| 201 | */ |
| 202 | $show_prefix_option = false; |
| 203 | |
| 204 | /** |
| 205 | * The following are related to deleting messages. |
| 206 | * $default_move_to_trash |
| 207 | * If this is set to 'true', when 'delete' is pressed, it |
| 208 | * will attempt to move the selected messages to the folder |
| 209 | * named $trash_folder. If it's set to 'false', we won't even |
| 210 | * attempt to move the messages, just delete them. |
| 211 | * $default_move_to_sent |
| 212 | * If this is set to 'true', sent messages will be stored in |
| 213 | * $sent_folder by default. |
| 214 | * $default_save_as_draft |
| 215 | * If this is set to 'true', users are able to use $draft_folder |
| 216 | * to store their unfinished messages. |
| 217 | * $trash_folder |
| 218 | * This is the path to the default trash folder. For Cyrus |
| 219 | * IMAP, it would be 'INBOX.Trash', but for UW it would be |
| 220 | * 'Trash'. We need the full path name here. |
| 221 | * $draft_folder |
| 222 | * This is the patch to where Draft messages will be stored. |
| 223 | * $auto_expunge |
| 224 | * If this is true, when a message is moved or copied, the |
| 225 | * source mailbox will get expunged, removing all messages |
| 226 | * marked 'Deleted'. |
| 227 | * $sent_folder |
| 228 | * This is the path to where Sent messages will be stored. |
| 229 | * $delete_folder |
| 230 | * If this is true, when a folder is deleted then it will |
| 231 | * not get moved into the Trash folder. |
| 232 | */ |
| 233 | $default_move_to_trash = true; |
| 234 | $default_move_to_sent = true; |
| 235 | $default_save_as_draft = true; |
| 236 | $trash_folder = 'INBOX.Trash'; |
| 237 | $sent_folder = 'INBOX.Sent'; |
| 238 | $draft_folder = 'INBOX.Drafts'; |
| 239 | $auto_expunge = true; |
| 240 | $delete_folder = false; |
| 241 | |
| 242 | /** |
| 243 | * Whether or not to use a special color for special folders. If not, |
| 244 | * special folders will be the same color as the other folders. |
| 245 | */ |
| 246 | $use_special_folder_color = true; |
| 247 | |
| 248 | /** |
| 249 | * Should I create the Sent and Trash folders automatically for |
| 250 | * a new user that doesn't already have them created? |
| 251 | */ |
| 252 | $auto_create_special = true; |
| 253 | |
| 254 | /* Whether or not to list the special folders first (true/false). */ |
| 255 | $list_special_folders_first = true; |
| 256 | |
| 257 | /** |
| 258 | * Are all your folders subfolders of INBOX (i.e. cyrus IMAP server). |
| 259 | * If you are unsure, set it to false. |
| 260 | */ |
| 261 | $default_sub_of_inbox = true; |
| 262 | |
| 263 | /** |
| 264 | * Some IMAP daemons (UW) handle folders weird. They only allow a |
| 265 | * folder to contain either messages or other folders, not both at |
| 266 | * the same time. This option controls whether or not to display an |
| 267 | * option during folder creation. The option toggles which type of |
| 268 | * folder it should be. |
| 269 | * |
| 270 | * If this option confuses you, just set it to 'true'. You can not hurt |
| 271 | * anything if it's true, but some servers will respond weird if it's |
| 272 | * false. (Cyrus works fine whether it's true OR false). |
| 273 | */ |
| 274 | $show_contain_subfolders_option = false; |
| 275 | |
| 276 | /** |
| 277 | * These next two options set the defaults for the way that the |
| 278 | * users see their folder list. |
| 279 | * $default_unseen_notify |
| 280 | * Specifies whether or not the users will see the number of |
| 281 | * unseen in each folder by default and also which folders to |
| 282 | * do this to. Valid values are: 1=none, 2=inbox, 3=all. |
| 283 | * $default_unseen_type |
| 284 | * Specifies the type of notification to give the users by |
| 285 | * default. Valid choice are: 1=(4), 2=(4,25). |
| 286 | */ |
| 287 | $default_unseen_notify = 2; |
| 288 | $default_unseen_type = 1; |
| 289 | |
| 290 | /** |
| 291 | * This enables the no select fix for Cyrus when subfolders |
| 292 | * exist but parent folders do not |
| 293 | */ |
| 294 | $noselect_fix_enable = false; |
| 295 | |
| 296 | /*** General options ***/ |
| 297 | /** |
| 298 | * Path to the data/ directory |
| 299 | * It is a possible security hole to have a writable directory |
| 300 | * under the web server's root directory (ex: /home/httpd/html). |
| 301 | * For this reason, it is possible to put the data directory |
| 302 | * anywhere you would like. The path name can be absolute or |
| 303 | * relative (to the config directory). It doesn't matter. Here |
| 304 | * are two examples: |
| 305 | * |
| 306 | * Absolute: |
| 307 | * $data_dir = '/usr/local/squirrelmail/data/'; |
| 308 | * |
| 309 | * Relative (to main SM directory): |
| 310 | * $data_dir = SM_PATH . 'data/'; |
| 311 | */ |
| 312 | $data_dir = SM_PATH . 'data/'; |
| 313 | |
| 314 | /** |
| 315 | * Path to directory used for storing attachments while a mail is |
| 316 | * being sent. There are a few security considerations regarding |
| 317 | * this directory: |
| 318 | * + It should have the permission 733 (rwx-wx-wx) to make it |
| 319 | * impossible for a random person with access to the webserver to |
| 320 | * list files in this directory. Confidential data might be laying |
| 321 | * around there. |
| 322 | * + Since the webserver is not able to list the files in the content |
| 323 | * is also impossible for the webserver to delete files lying around |
| 324 | * there for too long. |
| 325 | * + It should probably be another directory than data_dir. |
| 326 | */ |
| 327 | $attachment_dir = $data_dir; |
| 328 | |
| 329 | /** |
| 330 | * Hash level used for data directory. |
| 331 | * |
| 332 | * This option allows spliting file based squirrelmail user |
| 333 | * data storage directory into several subfolders. Number from |
| 334 | * 0 to 4 allows allows having up to four subfolder levels. |
| 335 | * |
| 336 | * Hashing should speed up directory access if you have big number |
| 337 | * of users (500 and more). |
| 338 | */ |
| 339 | $dir_hash_level = 0; |
| 340 | |
| 341 | /** |
| 342 | * This is the default size of the folder list. Default |
| 343 | * is 150, but you can set it to whatever you wish. |
| 344 | */ |
| 345 | $default_left_size = '150'; |
| 346 | |
| 347 | /** |
| 348 | * Some IMAP servers allow a username (like 'bob') to log in if they use |
| 349 | * uppercase in their name (like 'Bob' or 'BOB'). This creates extra |
| 350 | * preference files. Toggling this option to true will transparently |
| 351 | * change all usernames to lowercase. |
| 352 | */ |
| 353 | $force_username_lowercase = false; |
| 354 | |
| 355 | /** |
| 356 | * This option enables use of email priority flags by end users. |
| 357 | */ |
| 358 | $default_use_priority = true; |
| 359 | |
| 360 | /** |
| 361 | * This option disables display of "created by squirrelmail developers" |
| 362 | * strings and provider link |
| 363 | */ |
| 364 | $hide_sm_attributions = false; |
| 365 | |
| 366 | /** |
| 367 | * This option enables use of read/delivery reciepts by end users. |
| 368 | */ |
| 369 | $default_use_mdn = true; |
| 370 | |
| 371 | /** |
| 372 | * If you don't want to allow users to change their email address |
| 373 | * then you can set $edit_identity to false, if you want them to |
| 374 | * not be able to change their full name too then set $edit_name |
| 375 | * to false as well. $edit_name has no effect unless $edit_identity |
| 376 | * is false; |
| 377 | */ |
| 378 | $edit_identity = true; |
| 379 | $edit_name = true; |
| 380 | |
| 381 | /** |
| 382 | * If you want to enable server side thread sorting options |
| 383 | * Your IMAP server must support the THREAD extension for |
| 384 | * this to work. |
| 385 | */ |
| 386 | $allow_thread_sort = false; |
| 387 | |
| 388 | /** |
| 389 | * to use server-side sorting instead of SM client side. |
| 390 | * Your IMAP server must support the SORT extension for this |
| 391 | * to work. |
| 392 | */ |
| 393 | $allow_server_sort = false; |
| 394 | |
| 395 | /** |
| 396 | * This option allows you to choose if SM uses charset search |
| 397 | * Your imap server should support SEARCH CHARSET command for |
| 398 | * this to work. |
| 399 | */ |
| 400 | $allow_charset_search = true; |
| 401 | |
| 402 | /** |
| 403 | * PHP session name. Leave this alone unless you know what you are doing. |
| 404 | */ |
| 405 | $session_name = 'SQMSESSID'; |
| 406 | |
| 407 | |
| 408 | /** |
| 409 | * Themes |
| 410 | * You can define your own theme and put it in this directory. |
| 411 | * You must call it as the example below. You can name the theme |
| 412 | * whatever you want. For an example of a theme, see the ones |
| 413 | * included in the config directory. |
| 414 | * |
| 415 | * To add a new theme to the options that users can choose from, just |
| 416 | * add a new number to the array at the bottom, and follow the pattern. |
| 417 | * |
| 418 | * $theme_default sets theme that will be used by default |
| 419 | * $theme_css sets stylesheet (from theme/css directory) that will be |
| 420 | * used by default. |
| 421 | */ |
| 422 | $theme_default = 0; |
| 423 | $theme_css = ''; |
| 424 | |
| 425 | $theme[0]['PATH'] = SM_PATH . 'themes/default_theme.php'; |
| 426 | $theme[0]['NAME'] = 'Default'; |
| 427 | |
| 428 | $theme[1]['PATH'] = SM_PATH . 'themes/plain_blue_theme.php'; |
| 429 | $theme[1]['NAME'] = 'Plain Blue'; |
| 430 | |
| 431 | $theme[2]['PATH'] = SM_PATH . 'themes/sandstorm_theme.php'; |
| 432 | $theme[2]['NAME'] = 'Sand Storm'; |
| 433 | |
| 434 | $theme[3]['PATH'] = SM_PATH . 'themes/deepocean_theme.php'; |
| 435 | $theme[3]['NAME'] = 'Deep Ocean'; |
| 436 | |
| 437 | $theme[4]['PATH'] = SM_PATH . 'themes/slashdot_theme.php'; |
| 438 | $theme[4]['NAME'] = 'Slashdot'; |
| 439 | |
| 440 | $theme[5]['PATH'] = SM_PATH . 'themes/purple_theme.php'; |
| 441 | $theme[5]['NAME'] = 'Purple'; |
| 442 | |
| 443 | $theme[6]['PATH'] = SM_PATH . 'themes/forest_theme.php'; |
| 444 | $theme[6]['NAME'] = 'Forest'; |
| 445 | |
| 446 | $theme[7]['PATH'] = SM_PATH . 'themes/ice_theme.php'; |
| 447 | $theme[7]['NAME'] = 'Ice'; |
| 448 | |
| 449 | $theme[8]['PATH'] = SM_PATH . 'themes/seaspray_theme.php'; |
| 450 | $theme[8]['NAME'] = 'Sea Spray'; |
| 451 | |
| 452 | $theme[9]['PATH'] = SM_PATH . 'themes/bluesteel_theme.php'; |
| 453 | $theme[9]['NAME'] = 'Blue Steel'; |
| 454 | |
| 455 | $theme[10]['PATH'] = SM_PATH . 'themes/dark_grey_theme.php'; |
| 456 | $theme[10]['NAME'] = 'Dark Grey'; |
| 457 | |
| 458 | $theme[11]['PATH'] = SM_PATH . 'themes/high_contrast_theme.php'; |
| 459 | $theme[11]['NAME'] = 'High Contrast'; |
| 460 | |
| 461 | $theme[12]['PATH'] = SM_PATH . 'themes/black_bean_burrito_theme.php'; |
| 462 | $theme[12]['NAME'] = 'Black Bean Burrito'; |
| 463 | |
| 464 | $theme[13]['PATH'] = SM_PATH . 'themes/servery_theme.php'; |
| 465 | $theme[13]['NAME'] = 'Servery'; |
| 466 | |
| 467 | $theme[14]['PATH'] = SM_PATH . 'themes/maize_theme.php'; |
| 468 | $theme[14]['NAME'] = 'Maize'; |
| 469 | |
| 470 | $theme[15]['PATH'] = SM_PATH . 'themes/bluesnews_theme.php'; |
| 471 | $theme[15]['NAME'] = 'BluesNews'; |
| 472 | |
| 473 | $theme[16]['PATH'] = SM_PATH . 'themes/deepocean2_theme.php'; |
| 474 | $theme[16]['NAME'] = 'Deep Ocean 2'; |
| 475 | |
| 476 | $theme[17]['PATH'] = SM_PATH . 'themes/blue_grey_theme.php'; |
| 477 | $theme[17]['NAME'] = 'Blue Grey'; |
| 478 | |
| 479 | $theme[18]['PATH'] = SM_PATH . 'themes/dompie_theme.php'; |
| 480 | $theme[18]['NAME'] = 'Dompie'; |
| 481 | |
| 482 | $theme[19]['PATH'] = SM_PATH . 'themes/methodical_theme.php'; |
| 483 | $theme[19]['NAME'] = 'Methodical'; |
| 484 | |
| 485 | $theme[20]['PATH'] = SM_PATH . 'themes/greenhouse_effect.php'; |
| 486 | $theme[20]['NAME'] = 'Greenhouse Effect (Changes)'; |
| 487 | |
| 488 | $theme[21]['PATH'] = SM_PATH . 'themes/in_the_pink.php'; |
| 489 | $theme[21]['NAME'] = 'In The Pink (Changes)'; |
| 490 | |
| 491 | $theme[22]['PATH'] = SM_PATH . 'themes/kind_of_blue.php'; |
| 492 | $theme[22]['NAME'] = 'Kind of Blue (Changes)'; |
| 493 | |
| 494 | $theme[23]['PATH'] = SM_PATH . 'themes/monostochastic.php'; |
| 495 | $theme[23]['NAME'] = 'Monostochastic (Changes)'; |
| 496 | |
| 497 | $theme[24]['PATH'] = SM_PATH . 'themes/shades_of_grey.php'; |
| 498 | $theme[24]['NAME'] = 'Shades of Grey (Changes)'; |
| 499 | |
| 500 | $theme[25]['PATH'] = SM_PATH . 'themes/spice_of_life.php'; |
| 501 | $theme[25]['NAME'] = 'Spice of Life (Changes)'; |
| 502 | |
| 503 | $theme[26]['PATH'] = SM_PATH . 'themes/spice_of_life_lite.php'; |
| 504 | $theme[26]['NAME'] = 'Spice of Life - Lite (Changes)'; |
| 505 | |
| 506 | $theme[27]['PATH'] = SM_PATH . 'themes/spice_of_life_dark.php'; |
| 507 | $theme[27]['NAME'] = 'Spice of Life - Dark (Changes)'; |
| 508 | |
| 509 | $theme[28]['PATH'] = SM_PATH . 'themes/christmas.php'; |
| 510 | $theme[28]['NAME'] = 'Holiday - Christmas'; |
| 511 | |
| 512 | $theme[29]['PATH'] = SM_PATH . 'themes/darkness.php'; |
| 513 | $theme[29]['NAME'] = 'Darkness (Changes)'; |
| 514 | |
| 515 | $theme[30]['PATH'] = SM_PATH . 'themes/random.php'; |
| 516 | $theme[30]['NAME'] = 'Random (Changes every login)'; |
| 517 | |
| 518 | $theme[31]['PATH'] = SM_PATH . 'themes/midnight.php'; |
| 519 | $theme[31]['NAME'] = 'Midnight'; |
| 520 | |
| 521 | $theme[32]['PATH'] = SM_PATH . 'themes/alien_glow.php'; |
| 522 | $theme[32]['NAME'] = 'Alien Glow'; |
| 523 | |
| 524 | $theme[33]['PATH'] = SM_PATH . 'themes/dark_green.php'; |
| 525 | $theme[33]['NAME'] = 'Dark Green'; |
| 526 | |
| 527 | $theme[34]['PATH'] = SM_PATH . 'themes/penguin.php'; |
| 528 | $theme[34]['NAME'] = 'Penguin'; |
| 529 | |
| 530 | $theme[35]['PATH'] = SM_PATH . 'themes/minimal_bw.php'; |
| 531 | $theme[35]['NAME'] = 'Minimal BW'; |
| 532 | |
| 533 | $theme[36]['PATH'] = SM_PATH . 'themes/redmond.php'; |
| 534 | $theme[36]['NAME'] = 'Redmond'; |
| 535 | |
| 536 | /** |
| 537 | * LDAP server(s) |
| 538 | * Array of arrays with LDAP server parameters. See |
| 539 | * functions/abook_ldap_server.php for a list of possible |
| 540 | * parameters |
| 541 | * |
| 542 | * EXAMPLE: |
| 543 | * $ldap_server[0] = Array( |
| 544 | * 'host' => 'memberdir.netscape.com', |
| 545 | * 'name' => 'Netcenter Member Directory', |
| 546 | * 'base' => 'ou=member_directory,o=netcenter.com' |
| 547 | * ); |
| 548 | */ |
| 549 | // Add your ldap server options here |
| 550 | |
| 551 | /** |
| 552 | * Users may search their addressbook via either a plain HTML or Javascript |
| 553 | * enhanced user interface. This option allows you to set the default choice. |
| 554 | * Set this default choice as either: |
| 555 | * true = javascript |
| 556 | * false = html |
| 557 | */ |
| 558 | $default_use_javascript_addr_book = false; |
| 559 | |
| 560 | |
| 561 | /** |
| 562 | * MOTD |
| 563 | * This is a message that is displayed immediately after a user logs in. |
| 564 | */ |
| 565 | $motd = ""; |
| 566 | |
| 567 | |
| 568 | /** |
| 569 | * To install plugins, just add elements to this array that have |
| 570 | * the plugin directory name relative to the /plugins/ directory. |
| 571 | * For instance, for the 'sqclock' plugin, you'd put a line like |
| 572 | * the following. |
| 573 | * $plugins[0] = 'sqclock'; |
| 574 | * $plugins[1] = 'attachment_common'; |
| 575 | */ |
| 576 | // Add list of enabled plugins here |
| 577 | |
| 578 | |
| 579 | /*** Database ***/ |
| 580 | /** |
| 581 | * Read doc/database.txt in order to get more information |
| 582 | * about these settings. |
| 583 | */ |
| 584 | /** |
| 585 | * Database-driven private addressbooks |
| 586 | * DSN (Data Source Name) for a database where the private |
| 587 | * addressbooks are stored. See doc/db-backend.txt for more info. |
| 588 | * If it is not set, the addressbooks are stored in files |
| 589 | * in the data dir. |
| 590 | * The DSN is in the format: mysql://user:pass@hostname/dbname |
| 591 | * The table is the name of the table to use within the |
| 592 | * specified database. |
| 593 | */ |
| 594 | $addrbook_dsn = ''; |
| 595 | $addrbook_table = 'address'; |
| 596 | /** |
| 597 | * Database used to store user data |
| 598 | */ |
| 599 | $prefs_dsn = ''; |
| 600 | $prefs_table = 'userprefs'; |
| 601 | $prefs_key_field = 'prefkey'; |
| 602 | $prefs_user_field = 'user'; |
| 603 | $prefs_val_field = 'prefval'; |
| 604 | /** |
| 605 | * Global sql database options |
| 606 | */ |
| 607 | $addrbook_global_dsn = ''; |
| 608 | $addrbook_global_table = 'global_abook'; |
| 609 | $addrbook_global_writeable = false; |
| 610 | $addrbook_global_listing = false; |
| 611 | |
| 612 | /*** Language settings ***/ |
| 613 | /** |
| 614 | * Default language |
| 615 | * This is the default language. It is used as a last resort |
| 616 | * if SquirrelMail can't figure out which language to display. |
| 617 | * Language names usually consist of language code, undercore |
| 618 | * symbol and country code |
| 619 | */ |
| 620 | $squirrelmail_default_language = 'en_US'; |
| 621 | |
| 622 | /** |
| 623 | * This option controls what character set is used when sending mail |
| 624 | * and when sending HTML to the browser. Do not set this to US-ASCII, |
| 625 | * use ISO-8859-1 instead. |
| 626 | * |
| 627 | * You can set this option, only if $squirrelmail_default_language setting |
| 628 | * contains 'en_US' string. In any other case system does not allow |
| 629 | * making mistakes with incorrect language and charset combinations. |
| 630 | */ |
| 631 | $default_charset = 'iso-8859-1'; |
| 632 | |
| 633 | /** |
| 634 | * This option controls number of languages available to end user in |
| 635 | * language selection preferences. You can use space separated list |
| 636 | * of translations installed in locale/ directory or special keys |
| 637 | * 'all' (all languages are available) and 'none' (language selection |
| 638 | * is disabled, interface is set to $squirrelmail_default_language |
| 639 | */ |
| 640 | $available_languages = 'all'; |
| 641 | |
| 642 | /** |
| 643 | * This options allows displaying native language names in language |
| 644 | * selection box. |
| 645 | */ |
| 646 | $show_alternative_names = false; |
| 647 | |
| 648 | /** |
| 649 | * This option enables reading of Eastern multibyte encodings. |
| 650 | * Functions that provide this support are very cpu and memory intensive. |
| 651 | * Don't enable this option unless you really need it. |
| 652 | */ |
| 653 | $agresive_decoding = false; |
| 654 | |
| 655 | /*** Tweaks ***/ |
| 656 | /** |
| 657 | * Use experimental DHTML folder listing |
| 658 | */ |
| 659 | $advanced_tree = false; |
| 660 | /** |
| 661 | * Use older way of folder listing |
| 662 | */ |
| 663 | $oldway = false; |
| 664 | /** |
| 665 | * Use icons for message and folder markers |
| 666 | */ |
| 667 | $use_icons = false; |
| 668 | /** |
| 669 | * Use experimental code with php recode functions when reading messages with |
| 670 | * different encoding. This code is faster that original SM functions, |
| 671 | * but it require php with recode support. |
| 672 | * |
| 673 | * Don't enable this option if you are not sure about availability of |
| 674 | * recode support. |
| 675 | */ |
| 676 | $use_php_recode = false; |
| 677 | /** |
| 678 | * Use experimental code with php iconv functions when reading messages with |
| 679 | * different encoding. This code is faster that original SM functions, |
| 680 | * but it require php with iconv support and works only with some translations. |
| 681 | * |
| 682 | * Don't enable this option if you are not sure about availability of |
| 683 | * iconv support. |
| 684 | */ |
| 685 | $use_php_iconv = false; |
| 686 | |
| 687 | /** |
| 688 | * this disables listing all of the folders on the IMAP Server to |
| 689 | * generate the folder subscribe listbox (this can take a long time |
| 690 | * when you have a lot of folders). Instead, a textbox will be |
| 691 | * displayed allowing users to enter a specific folder name to subscribe to |
| 692 | * |
| 693 | * This option can't be changed by conf.pl |
| 694 | */ |
| 695 | $no_list_for_subscribe = false; |
| 696 | |
| 697 | /** |
| 698 | * This option is used only by conf.pl script to generate configuration |
| 699 | * menu with some colors and is provided here only as reference. |
| 700 | */ |
| 701 | $config_use_color = 2; |
| 702 | |
| 703 | /** |
| 704 | * This option includes special configuration options |
| 705 | */ |
| 706 | @include SM_PATH . 'config/config_local.php'; |
| 707 | |
| 708 | /** |
| 709 | * Make sure there are no characters after the PHP closing |
| 710 | * tag below (including newline characters and whitespace). |
| 711 | * Otherwise, that character will cause the headers to be |
| 712 | * sent and regular output to begin, which will majorly screw |
| 713 | * things up when we try to send more headers later. |
| 714 | */ |
| 715 | ?> |