config_default.php 35 KB

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