config_default.php 32 KB

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